OpenSolaris
Collectives
Discussions
Documentation
Download
Source Browser
Free CD
Log-in
|
en
Project sfwnv
:
Documents
>
Build Instructions
Top Menu
Show
:
Comments
Attachments
History
Information
Print
:
Print
Print preview
Export as PDF
Export as RTF
Export as HTML
Export as XAR
Wiki code for
Build Instructions
Hide Line numbers
1: == SFW Buildable Source for OpenSolaris 2: 3: This delivery of SFW buildable source for OpenSolaris consists of a single archive: 4: 5: 1. source tarball (sfw-src-b#-DATE.tar.bz2) 6: 7: === General Prerequisites 8: 9: Building SFW is similar to building the Operating System/Networking (ON) consolidation from source. If you are not familiar with building ON from opensolaris.org, please read the [[instructions>>Community Group on.WebHome]] and the [[detailed documentation>>Community Group on.devref_toc]] before starting your build. You will also need the following shared build/install-time tools: 10: 11: 1. compiler: Sun Studio 12 with patches as delivered for ON 12: 1. compiler: gcc 3.4.3 with patches as delivered with Solaris Express build 22 or later, or SFW build 22 or later. 13: 1. ON build tools package (SUNWonbld-DATE.PLATFORM.tar.bz2) from ON 14: 15: Unlike ON, SFW does not use BFU or BFU archives. There are no closed binaries; the entire consolidation is Open Source. 16: 17: You can generally build the SFW consolidation on any OpenSolaris distribution compatible with the Solaris Express release two builds older than the SFW sources. Consult your vendor’s documentation for more information about compatibility with Solaris Express. For example, to build SFW sources for build 58, your distribution must be compatible with Solaris Express build 56 or later. These release notes will always contain information about new or additional build environment requirements that may arise from time to time. 18: 19: SFW requires the same compilers and support tools as ON. Be sure you have installed a recent SUNWonbld package. Note that, unlike ON, SFW does not contain these build tools, so you must install them in advance rather than relying on nightly’s ’t’ option. In general, your build tools must be no more than 2 builds old. You can obtain the latest [[SUNWonbld package>>downloads.on]] from the ON download site. The required Studio compilers can be obtained from [[ the Tools community>>Community Group tools.sun_studio_tools]]. You must also have the standard Solaris gcc (from Nevada build 22 or later) installed. Note that compilers other than these specific versions have not been tested and may fail to build SFW correctly. 20: 21: The buildable source may contain source for high key-strength crypto. Please note that certain countries restrict the redistribution of high key-strength crypto. If you live in one of these countries, it is your responsibility to ensure that you are complying with your country’s laws in this area. 22: 23: === Special Requirements 24: 25: Up to build 103: Use Studio 11 compilers for SFW starting with build 49. These are the same compilers used for ON starting with build 48. 26: 27: Starting with build 104, Use Studio 12. 28: 29: === Known Issues 30: 31: 1. Fixes do not always take into account that they should link against the proto area first, so you may need to have certain bits installed on the build machine to build. This is a good reason to be running bits very close to what you are building. 32: 1. Building SFW on a machine which has the Companion installed in /opt/sfw is not recommended. The SFW build uses "configure" which may find things in /opt/sfw. A known incident is that the apache2 build found /opt/sfw/bin/gsed and the resulting SUNWapch2r package required /opt/sfw/bin/gsed. Note that this also applies to other well-known locations like /usr/local. 33: 1. The package builds may fail on large ZFS file systems (6459131 and 6558284). 34: 1. If you are building x86 binaries, you must use a 64-bit build machine running the 64 bit kernel (6401063). 35: 1. Incremental builds may or may not work, as they are not tested as often and may fail trying to overwrite files in the proto area that have scrict permissions. Work was done in build 112 to address this via bugid 6765731, but subsequent changes may at least temporarily cause trouble and there are also concerns in the bug about incrementals as well. 36: 1. The build might fail if your umask is not 022. This can manifest as execute permission being stripped from files by teamware, or permissions becoming wrong in the proto area (missing chmods). Note also that a strict umask can affect sccs/teamware and make it hard for others to look at your workspace or even temporarily break the gate. 37: 1. If builds by hand work, but nightly seems to think there’s an error even though make didn’t fail, see if there’s some form of the string ’error:’ in the build output. nightly detects build failure by looking for that (as it uses ’make -k’ to try to catch any errors introduced by separate putbacks) so you may have to filter non-error messages that contain that out. Be very specific in what you filter out, we don’t want to miss anything. 38: 1. If you have a strange failure from msgmerge, perhaps like this: 39: 40: {{{ 41: /usr/bin/msgmerge: error while opening "scalab.sfbay.sun.com.pot" for reading: No such file or directory 42: }}} 43: 44: check and see if the filename is related to something in the environment. For example, ’scalab.sfbay.sun.com.pot’ is quite interesting as the NIS domain that machine is in is ’scalab.sfbay.sun.com’. So perhaps you have that in your environment in a variable like DOMAIN. 45: 1. If you get a failure like this: 46: 47: {{{ 48: ==== Build errors (non-DEBUG) ==== 49: dmake: defaulting to parallel mode. 50: }}} 51: 52: That generally means that you ran dmake, either directly or via $(MAKE), but didn’t tell dmake to be parallel. nightly/bldenv force parallel mode by setting 53: 54: {{{ 55: DMAKE_MODE=parallel 56: }}} 57: 58: in the environment, so this means you also cleared that. Unfortunately that causes this message which nightly interprets as an error and thinks the build failed. 59: This can be caused if you used ’env -[i]’ in your Makefile.sfw and then ran $(MAKE). Since most things may not like dmake anyway, this likely means you really wanted to run $(GMAKE) or $(CCSMAKE) to force the use of GNU make or serial make. Note also that if you do that you need to set $(MAKE) in the environment to the same make or sub-Makefiles may use the wrong make. 60: 1. With 6442434 in ON now (103) these bugs have appeared and break the sfw build: 61: 62: {{{ 63: 6753917 lftp defines-out "const", breaks AF_LOCAL & friends putback 64: 6753918 bind in sfw can’t compile if AF_LOCAL is defined. Bad variable name 65: }}} 66: 67: 1. the build of stdcxx4 fails if your workspace variables (like SRC) go through a link (say you have SRC set to /builds/foo/usr/src but /builds is a link to /builds1). Other bits of the build can be affected too but weren’t fatal. So don’t do that. 68: 1. the build of freeipmi requires /usr/include/sys/bmc_intf.h, which first appeared in build 121. 69: 1. The build of guile/autogen may require the new SUNWltdl with 64-bit libraries to be installed. 70: 1. The build of quilt may require gawk to be installed. 71: 1. The 117 SUNWaconf package may break the sfw build. 72: 1. ocaml and lablgtk are now required. on 115 or so lablgtk may fail to build: 73: 74: {{{ 75: 6841228 lablgtk does not build on latest gnome 76: }}} 77: 78: 1. the recent addition of /usr/include/ncurses (103?) breaks the gdb build. Fixed in 106: 79: 80: {{{ 81: 6781910 sfwnv nightly is broken due to ncurses 82: }}} 83: 84: However as of 115 the ncurses headers appear to have moved again, which breaks gdb/iftop. 85: 86: {{{ 87: 6842390 ncurses headers moved again in 115 and it hurts 88: }}} 89: 90: 1. on build 116 postgresql 8.2/8.3 may fail to build because of a header change in ON. 91: 92: {{{ 93: 6845982 gcc4 cleanup breaks postgresql build 94: }}} 95: 96: 1. In 106, the build of mpfr fails like this on amd64: 97: 98: {{{ 99: configure: error: please configure with ~--disable-thread-safe 100: }}} 101: 102: This is: 103: 104: {{{ 105: 6792906 ld -z nopartial fix breaks TLS 106: }}} 107: 108: 1. It seems that if you set SRC to /net/<somemachine>/... but then actually build on <somemachine> the build of libmcrypt fails. 109: 1. The minimal system requirements for building SFW are being bumped up to Nevada build 109 as Python 2.6 is needed. 110: 111: === For Further Information 112: 113: General questions on the SFW consolidation should be directed to the discussion list at sfwnv-discuss@opensolaris.org. Please note that the mailing lists are configured to only allow posts from list subscribers or via the web forum interface. To subscribe, see the [[SFW Nevada project home>>Project sfwnv.WebHome]]. 114: 115: === Installing from Source 116: 117: Once you have downloaded the SFW source, follow these steps to build it. Suppose you are using /export/sfwnv as your workspace. 118: 119: 1. If your build machine is already configured for building ON, skip ahead to step 2. Otherwise, follow the compiler and onbld installation instructions in the ON README. These are steps 2, 3, and 4 in the onnv_36 README. 120: 1. Be sure that your installed copy of gcc is up to date: 121: 122: {{{ 123: $ /usr/sfw/bin/gcc ~--version 124: gcc (GCC) 3.4.3 (csl-sol210-3_4-20050802) 125: }}} 126: 127: 1. Be sure that your installed copy of cc is up to date. If you’ve followed the above instructions, you should see: 128: 129: {{{ 130: $ /opt/SUNWspro/bin/cc -V 131: }}} 132: 133: Correct output is architecture-dependent: 134: 135: {{{ 136: cc: Sun C 5.8 Patch 121015-04 2007/01/10 (sparc/SS11) 137: cc: Sun C 5.8 Patch 121016-05 2007/01/10 (x86/SS11) 138: cc: Sun C 5.9 SunOS_sparc Patch 124867-08 2008/10/07 (sparc/SS12) 139: cc: Sun C 5.9 SunOS_i386 Patch 124868-07 2008/10/07 (x86/SS12) 140: }}} 141: 142: 1. Create an environment file to guide tools like nightly(1) and bldenv(1). 143: 144: {{{ 145: }}} 146: 147: 1. change GATE to the name of the top-level directory (e.g.,"sfwnv") 148: 1. change CODEMGR_WS to the top-level path (e.g.,"/export/sfwnv"). 149: 1. change STAFFER to your login. 150: 1. Do NOT set VERSION; this will break your build! 151: 1. The default options are recommended. Using other options may cause your build to fail or contain unnecessary noise. 152: 1. To build a complete set of archives, cd to /export/sfwnv, utter 153: 154: {{{ 155: # /opt/onbld/bin/nightly ./sfw-opensolaris.sh & 156: }}} 157: 158: and find something else to work on for a few hours. You can monitor the build’s progress using ptree(1). nightly(1) will send mail to $MAILTO when it has finished. 159: The results mail from nightly(1) will have an overview of the build results. A copy of the mail text and a more detailed log file will be available in the workspace (/export/sfwnv/log/log.DATE). Pieces of the detailed log are also available under usr/src. For example, usr/src/install-nd-i386.out will have the log from the x86 "make install" part of the build. 160: By default nightly(1) will do a "clobber" build, which includes a "make clobber" and blowing away any files that earlier builds installed into $ROOT (/export/sfwnv/proto/root_PLATFORM). To bypass these steps, do an incremental build with "nightly -i ./sfw-opensolaris.sh &". Be aware that incremental builds are not performed as often as in ON and do tend to break more frequently though. 161: 1. To build a specific component, first use bldenv(1) to set up various environment variables: 162: 163: {{{ 164: # cd /export/sfwnv 165: # bldenv ./sfw-opensolaris.sh 166: [status information from bldenv] 167: }}} 168: 169: Next, you must create and partially populate the proto area: 170: 171: {{{ 172: # cd $SRC 173: # make setup 174: }}} 175: 176: Finally, cd into the directory containing the component you wish to build, and run make: 177: 178: {{{ 179: # make -f Makefile.sfw install 180: }}} 181: 182: Note that all sub-makefiles are called Makefile.sfw to avoid possible collisions with the component’s Makefile (if the tarball method is not chosen).
Search
Collectives
Community Group
Academic and Research
Accessibility
Advocacy
Appliances
Approachability
Architecture Process and Tools
BrandZ
Chinese Users
Community Advisory Board
Databases
Desktop
Device Drivers
Distribution
Documentation
DTrace
Emerging Platforms
Fault Management
Games on OpenSolaris
HA Clusters
HPC Developer
Installation and Packaging
Internationalization and Localization
Laptop
Logical Domains
Modular Debugger (MDB)
Networking
NFS
Observability
OpenSolaris Governing Board (OGB)
OpenSolaris Printing
OS/Net (ON)
Performance
Power Management
PowerPC
Security
Service Management Facility (smf(5))
Software Porters
Solaris Volume Manager
Storage
Systems Administration Community Group
Testing
Tools Home
Unix File Systems (UFS)
Website Community
X Window System
Xen
ZFS
Zones
Project
ADSL Modem Enhancement
ARC Process Definition
ARM Platform Port
Automatic Data Migration
BIND Update
Bluetooth Stack & Drivers
Brocade FC HBA - Initiator
Brocade FC HBA - Target
Brussels - unified network link configuration
Caiman, Solaris Install Revisited
Celeste
Český portál
Chime Visualization Tool for DTrace
CIFS client for Solaris
CIFS Server
Clearview: Network Interface Coherence
Cluster Agent: Informix Dynamic Server
Cluster Agent: OpenSolaris Container
Cluster Agent: OpenSolaris xVM
Cluster Agent: Oracle E-Business Suite
Cluster agent: PostgreSQL
Cluster Agent: Samba
Cluster Agent: Tomcat
CMT
Coarse Data Flow Parallelism
Colorado: Open HA Cluster on OpenSolaris
Command Assistant
Common Array Manager
Companion - /opt/sfw: Free and Open Source software
COMSTAR: Common Multiprotocol SCSI Target
Content
Contest
CPU Observability
Credentials Process Groups
Crossbow: Network Virtualization and Resource Control
Crypto KMS Agent Toolkit
Cryptographic Framework
Data Migration Manager
Data Tethers
Deutsches Portal
Device Detection Tool
Device Driver Utility
Device Manager
Device Mapper
Direct Rendering Infrastructure & 3D drivers
DTrace Guide
Duckwater: Simplified name services management
Easy Tools
Emancipation
Emulex Fibre Channel Device Driver
Emulex Advanced Ethernet Device Driver
Enable/Enhance Solaris support for Intel Platform
Enhance the support of USB webcams
Enhanced SMF Profiles
Enhancements for AMD-based Platforms
Erlang DTrace Integration
Ethernet bridge module for Solaris
Evaluate Conary
Events Registry
Ext3 file system support
F/OSS Package Base
Facilitation
Fibre Channel over Ethernet
Fine Grained Access Policy (FGAP)
Fingerprint Authentication
Flexible Mandatory Access Control
Forensic Tools
Fully Open X Project
Fuse on Solaris
gcore
Generic Machine Check Architecture Improvements
Google SOC
HA-JBoss
HA-MySQL
Hadoop Live CD
Hitachi
HoneyComb Fixed Content Storage
HPC Stack
Image Packaging System
Improved Performance MIB
Indiana
Innovation Awards
Input Method
Intel Graphics
Internet Key Exchange, version 2
Interrupt Resource Management
IP Datapath Refactoring
IP over Infiniband
IPsec Tunnel Reform
iSCSI Extensions for Remote DMA (iSER)
iSNS Server
JeOS - Just enough Operating System
JKstat - a java binding for libkstat
Journaled File System (JFS)
K Desktop Environment
Kerberos
Kernel Sockets
Kernel SSL Enhancements
Key Management Framework
Korn Shell 93 integration/migration project
Labeled IPsec
LatencyTOP
Layer 2 Filtering
LDoms Manager
Lending
libMicro - portable microbenchmarks
Link Layer Discovery
Live Media: Technologies for distributions running from CD and other media
Locale Data
lofi compression and cryptography support
lx64 brand
Media Management System
Mega_sas
Mexico
MilaX minimal Live Distribution
MIPS Platform Port
Mozilla DTrace
MRSL.NONsharedDevice
Multi-lingual Glossary
Multi-pathing software (MPxIO)
Multiple disk sector size support
Multiple DOI
Muskoka: An open repository for OpenSolaris technical content
Navigator
Nemo: A Framework for High-Performance Networking
Network Auto-Magic
Network Data Management Protocol
Network MIBs
Network Storage
Network Time Protocol (NTP)
Nevada Globalization
New Design of 4over6 Mechanism Based on OpenSolaris
NFS RDMA transport update and performance analysis
NFS Server in non-Global Zones
NFS version 4.1 pNFS
NFSv4 namespace extensions
Nightingale: Port Songbird to OpenSolaris
NPort ID Virtualization (NPIV)
NUMA
Object Storage Device (OSD) support for Solaris
OHACGE Script Based Plug-in
ON/Nevada (ONNV) Project
Open Development Infrastructure
Open HA Cluster Utilities
Open Sound System
OpenGrok
OpenPegasus CIM Server
OpenRTI
OpenSolaris Busybox
OpenSolaris Desktop
OpenSolaris Hispano
OpenSolaris Security Audit
OpenSolaris support for the QEMU processor emulator: host and guest
PEF: Packet Event Framework
Performance Wrappers
Pkgfactory
Polski Portal
Portail Francophone
Portal Brasil
Portals
Power Management Usability Interfaces
Presto: Automatic Printing Configuration
Printable Many Page Solaris Manuals
Promise SuperTrak RAID HBA Driver
QLogic Converged Network Adapter GLDv3 NIC Driver
Quagga Routing Protocol Suite Integration
RAID Configuration Utility
RBridge (IETF TRILL) support
RDMA Offload Framework
Reno: Login Process Enhancements for Interop
Resource Management
s10brand
SAM/QFS
SCM Migration Project
SCSI RDMA Protocol
SDcard Drivers
Sensor Abstraction Layer
Session Initiation Protocol
SFW
Shell: bourne shell, korn shell, C shell, etc.
Sierra: Intel WiFi Chipsets Support
Simple Panels
SM-HBA Based SAS HBA Management
SMF Documentation
Solaris iSCSI Target
Solaris PowerPC Port
SourceJuicer
Sparks: name service switch/nscd enhancements
Squashfs
Star integration/migration project
Starfish
Starter Kit
Storage Power Management
Sun Security Toolkit
Sun StorageTek Availability Suite
Support for OpenFabrics User Verbs / API on OpenSolaris OS
Support gcc4/GCCfss in Solaris
Suspend/Resume
SVR4 Packaging
Systemz
Tamarack: Removable Media Enhancements in Solaris
Tesla: OpenSolaris Enhanced Power Management
Test Development
Tickless Kernel Architecture
TIPC
Trademarks
Trusted networking interface policy database for Trusted Extensions
Trusted Platform Module support
Use Case
Validated Execution Project
Virtual Console
Virtual Network Machines
Visual Panels
Visualization for HPC
Volo
VRRP: Virtual Router Redundancy Protocol Implementation
VSCAN service
Web Stack
Website
Winchester: Schema mapping and ID mapping for AD Interoperability
Wireless USB Support
Wireless Wide Area Network
X Consolidation
x86 Generic FMA Topology Enumerator
Xen Gate
Xfce: A lightweight desktop environment
ZFS Boot and Install
ZFS on disk encryption support
Zone Manager
Zone Statistics
Русский портал
البوابة العربية
भारतीय पोर्टल
中国门户
日本ポータル
한국 포탈
User Group
Adelaide
Argentina
Arizona
Atlanta
Baltimore-Washington
Bangalore
Bangkok
Bangladesh
Beijing
Bélem
Berlin
Bhimavaram
Bloomington
Campus Ambassadors
Capital Region
Cardiff
Charlotte
Chengdu
Chennai
Chihuahua
Chile
Cleveland
Colombia
Columbus
Connecticut
Cracow
Czech
Dallas/Ft. Worth
Danish
Delaware
Edinburgh
Egypt
Finland
Florida
Front Range
FuZhou
Great Lakes
Greece
Hangzhou
Hawaii
HeFei
Houston
Hyderabad
Indonesia
Irish
Israel
Italian
Jinan
Kabul
Kansas City
Latvia
London
Madurai
Manchester
Mato Grosso
Melbourne
Minas Gerais
Minnesota
Montreal
Moscow
Mumbai
Munich
NEA
Netherlands
New England
New York City
New Zealand
NIT Hamirpur
Noroeste
Oklahoma City
Osnabrück
Peru
Philadelphia
Piaski
Pittsburgh
Porto Alegre
Puget Sound
Pune
Queensland
Research Triangle Park
Romania
Russia
San Antonio
San Diego
San Francisco
São Paulo
Scottish
Serbia
Shanghai
Shenzhen
Silicon Valley
Singapore
Slovak
South African
Southern Connecticut
St. Louis
Sweden
Switzerland
Sydney
Szczecin
Taiwan
Tecum
Thames Valley
Tokyo
Toronto
Trondheim
Tulsa
Turkey
Ukraine
University of Melbourne
Vale do Paraíba
Vancouver
Venezuela
Welsh - Cymru
Wisconsin
Xi'an
Subsites
Code Reviews
Code Repositories
Package Search
Bugster
Bugzilla
Test Machines
Planet
Mailing Lists
Elections & Polls
ARC Case Logs
Source Juicer
Package Factory
User Authentication
Project sfwnv Pages
Documents
Software build engine policy
Build Instructions
Files