OpenSolaris
Collectives
Discussions
Documentation
Download
Source Browser
Free CD
Log-in
|
en
Project companion
:
Contributor Guidelines
>
BuildCCD
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
BuildCCD
Hide Line numbers
1: == Companion (CCD) Buildable Source for OpenSolaris 2: 3: There are 2 ways to obtain buildable source for the CCD for OpenSolaris: 4: 5: 1. Downloading a source tarball (ccd-src-DATE.tar.bz2) 6: 1. Checking out code from the CCD subversion wokspace. 7: % svn co svn+ssh://anon at svn dot opensolaris dot org/svn/companion/core/usr 8: [[ SVN Help.>>Community Group tools.svn_help]] 9: === General Prerequisites 10: Building the CCD is similar to building the SFW and Operating System/Networking (ON) consolidations from source. If you are not familiar with building SFW or ON from opensolaris.org, please read the [[build instructions for ON>>http://dlc.sun.com/osol/on/downloads/current/README.opensolaris]] and [[SFW>>Project sfwnv.install_quickstart]] and the [[detailed documentation>>Community Group on.devref_toc]] before starting your build. You will also need the following shared build/install-time tools: 11: 11. compiler: Sun Studio 11 with patches which can be obtained from [[the Tools community>>Community Group tools.sun_studio_11_tools]]. 12: 11. compiler: gcc 3.4.3 with patches as delivered with Solaris Express build 22 or later, or packages from SFW build 22 or later. 13: 11. ON build tools package (SUNWonbld-DATE.PLATFORM.tar.bz2) [[SUNWonbld package>>http://dlc.sun.com/osol/on/downloads/current/]] from the ON download site. 14: Like SFW, the CCD does not use BFU or BFU archives. There are no closed binaries; the entire consolidation is Open Source. 15: Build the CCD consolidation on any OpenSolaris distribution compatible with the Solaris Express release no more than two builds older than the CCD sources. For example, to build CCD sources for build 78, your distribution must be compatible with Solaris Express build 76 or later. Consult your vendor’s documentation for information about compatibility with Solaris Express. This latest CCD version builds best on build 76 or later. 16: You must also have installed the full set of CCD packages that are no less than two builds old. This requirement exists because of the way some components reference binaries and headers during the build. Ocaml and emacs are the most noticeable, but other components may also have this requirement. If you are building only a subset of CCD components, it may be possible to skip installing the entire CCD. However, this is not recommended. 17: The release notes will always contain information about new or additional build environment requirements that may arise from time to time. 18: 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. 19: 11. It is no longer necessary to build as root. The fix for bug 6418795 is now in the Companion SVN repository on opensolaris.org. The current sourcetarball and corresponding packages, 20080131, are based on build 76. 20: === For Further Information 21: General questions on the CCD consolidation should be directed to the discussion list at companion-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 [[Companion project home>>Project companion.WebHome]]. 22: === Installing from Source 23: Once you have downloaded the CCD source, follow these steps to build it. Suppose you are using /export/companion as your workspace. 24: 11. If your build machine is already configured for building ON and/or SFW, 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_41 README. 25: 111. Be sure that your installed copy of gcc is up to date: 26: 27: {{{ 28: $ /usr/sfw/bin/gcc ~--version | grep GCC 29: gcc (GCC) 3.4.3 (csl-sol210-3_4-20050802) 30: }}} 31: 32: 11. Be sure that your installed copy of cc is up to date. If you’ve followed the above instructions, you should see: 33: 34: {{{ 35: $ /opt/SUNWspro/bin/cc -V 36: }}} 37: 38: Correct output is architecture-dependent: 39: 40: {{{ 41: cc: Sun C 5.8 Patch 121015-02 2006/03/29 (sparc) 42: cc: Sun C 5.8 Patch 121016-02 2006/03/31 (x86) 43: }}} 44: 45: NOTE: BOTH COMPILERS are REQUIRED and must be at the correct revisions! 46: 47: 11. cd to /export/companion and unpack the source into your build area, e.g. 48: 49: {{{ 50: $ bzcat ccd-src-DATE.tar.bz2 | tar xf - 51: }}} 52: 53: The sources will unpack into "usr/src." Note that CCD does not require any closed binaries. You can use any convenient location instead of /export/companion, but these instructions will assume you’ve unpacked the source there. 54: 11. Create an environment file to guide tools like nightly(1) and bldenv(1). You CANNOT use the same env file you use to build ON or any other consolidation! Copy /export/companion/usr/src/tools/env/freeware-devloper.sh to /export/companion. It doesn’t have to go in /export/companion, but that’s a convenient place to put it. Nor do you have to keep the name freeware-developer.sh, but that’s the name we’ll use in these notes. Then make the following changes in your freeware-developer.sh: 55: 11* change GATE to the name of the top-level directory (e.g., "companion"). 56: 11* change CODEMGR_WS to the top-level path (e.g., "/export/companion"). 57: 11* change STAFFER to your login. 58: 11* change MAILTO to your email address. 59: 11* Do NOT set VERSION; this will break your build! 60: 11* The default options are recommended. Using other options may cause your build to fail or contain unnecessary noise. 61: 11. To build a complete set of archives, cd to /export/companion, and utter 62: 63: {{{ 64: $ su - root 65: # nohup 66: # /opt/onbld/bin/nightly ./freeware-developer.sh & 67: }}} 68: 69: 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. 70: 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/companion/log/log.). Pieces of the detailed log are also available under usr/src. For example, usr/src/install-i386.out will have the log from the x86 "make install" part of the build. 71: 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/companion/proto/root_PLATFORM). To bypass these steps, do an incremental build with "nightly -i ./ccd-opensolaris.sh &". 72: 11. To build a specific component, first use bldenv(1) to set up various environment variables: 73: 74: {{{ 75: # cd /export/companion 76: # bldenv ./freeware-developer.sh 77: [status information from bldenv] 78: }}} 79: 80: Next, you must create and partially populate the proto area: 81: 82: {{{ 83: # cd $SRC 84: # dmake rootdirs 85: # dmake tools 86: # dmake headers 87: }}} 88: 89: Finally, cd into the directory containing the component you wish to build, and run make: 90: 91: {{{ 92: # dmake -f Makefile.sfw 93: }}} 94: 95: Note that all sub-makefiles are called Makefile.sfw.
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 companion Pages
Contributor Guidelines
BuildCCD
Checklist
Companion Content
Downloads