[OmniOS-discuss] trouble compiling OmniOS

Eric Sproul esproul at omniti.com
Fri Feb 22 15:29:48 EST 2013


buildctl has rather bit-rotted-- we don't really use it much
internally.  Nevertheless, what buildctl expects for names is the
package FMRI, e.g. "developer/build/autoconf", because it has scraped
those from the PKG variable in each build.sh file.  So what you might
do is 'for i in $(./buildctl list) ; do ./buildctl $i ; done'

Eric

On Fri, Feb 22, 2013 at 11:29 AM, Kent Watsen <kent at watsen.net> wrote:
>
>
>
> On 2/22/13 9:27 AM, Theo Schlossnagle wrote:
>
> You have two choices and both should work equally well:
>
> If you want to run latest stable (that happens to be r151004) you'll need to
> use the r151004 branch of omnios-build: git clone -b r151004
> anon at src.omniti.com:~omnios/core/omnios-build
>
>
>
> Rerunning the instructions using the stable repo got me much further!  (now
> I'm stuck on `./buildctl build`)
>
> This is on a fresh zone:
>
> root at compiler:~# git clone -b r151004
> anon at src.omniti.com:~omnios/core/omnios-build
>
> -bash: git: command not found
> root at compiler:~# pkg install pkg:/developer/versioning/git (Add an
> instruction to install git?)
>            Packages to install:  1
>        Create boot environment: No
> Create backup boot environment: No
>
> DOWNLOAD                                  PKGS       FILES    XFER (MB)
> Completed                                  1/1     353/353    10.4/10.4$<3>
>
> PHASE                                        ACTIONS
> Install Phase                                635/635
>
> PHASE                                          ITEMS
> Package State Update Phase                       1/1
> Image State Update Phase                         2/2
> root at compiler:~# git clone -b r151004
> anon at src.omniti.com:~omnios/core/omnios-build
>
> Cloning into 'omnios-build'...
> The authenticity of host 'src.omniti.com (199.15.226.39)' can't be
> established.
> RSA key fingerprint is 51:bb:7a:4a:3a:de:ff:dc:0a:87:8b:4f:d4:63:b0:d2.
> Are you sure you want to continue connecting (yes/no)? yes
> Warning: Permanently added 'src.omniti.com,199.15.226.39' (RSA) to the list
> of known hosts.
> remote: Counting objects: 6243, done.
> remote: Compressing objects: 100% (5116/5116), done.
> remote: Total 6243 (delta 2929), reused 1444 (delta 679)
> Receiving objects: 100% (6243/6243), 25.81 MiB | 1.66 MiB/s, done.
> Resolving deltas: 100% (2929/2929), done.
> root at compiler:~# cd omnios-build/build
>
> root at compiler:~/omnios-build/build# ./buildctl list
> You appear to be missing some basic build requirements.
> To fix this run:
>
>   sudo pkg install developer/gcc46 developer/object-file
> developer/build/gnu-make system/header system/library/math/header-math
>
>
> An Error occured in the build. Do you wish to continue anyway? (y/n) n
> ===== Build aborted =====
> root at compiler:~/omnios-build/build# pkg install developer/gcc46
> developer/object-file developer/build/gnu-make system/header
> system/library/math/header-math
> Creating Plan
>            Packages to install:  9
>        Create boot environment: No
> Create backup boot environment: No
>
> DOWNLOAD                                  PKGS       FILES    XFER (MB)
> Completed                                  9/9   2732/2732    99.3/99.3$<3>
>
> PHASE                                        ACTIONS
> Install Phase                              3204/3204
>
> PHASE                                          ITEMS
> Package State Update Phase                       9/9
> Image State Update Phase                         2/2
> root at compiler:~/omnios-build/build# ./buildctl build
> --- You cannot run this as root  (Add an instruction to install git?)
> An Error occured in the build. Do you wish to continue anyway? (y/n) n
> ===== Build aborted =====
> root at compiler:~/omnios-build/build# svcadm disable autofs
> root at compiler:~/omnios-build/build# useradd -m -b /home  -c "Kent Watsen"
> kent
> 64 blocks
> root at compiler:~/omnios-build/build# passwd kent
> New Password:
> Re-enter new Password:
> passwd: password successfully changed for kent
>
>
> Logging in again as "kent":
>
> kent at compiler:/home/kent$ git clone -b r151004
> anon at src.omniti.com:~omnios/core/omnios-build
>
> Cloning into 'omnios-build'...
> The authenticity of host 'src.omniti.com (199.15.226.39)' can't be
> established.
> RSA key fingerprint is 51:bb:7a:4a:3a:de:ff:dc:0a:87:8b:4f:d4:63:b0:d2.
> Are you sure you want to continue connecting (yes/no)? yes
> Warning: Permanently added 'src.omniti.com,199.15.226.39' (RSA) to the list
> of known hosts.
> remote: Counting objects: 6243, done.
> remote: Compressing objects: 100% (5116/5116), done.
> remote: Total 6243 (delta 2929), reused 1441 (delta Receiving objects679)
> Receiving objects: 100% (6243/6243), 25.83 MiB | 1.34 MiB/s, done.
> Resolving deltas: 100% (2929/2929), done.
> kent at compiler:/home/kent$ cd omnios-build/build
> kent at compiler:/home/kent/omnios-build/build$ ./buildctl list
>  * archiver/gnu-tar
>  * caiman
>  * compress/bzip2
>  * compress/gzip
>  * compress/p7zip
>  * compress/unzip
>  * compress/xz
>  * compress/zip
>  * data/iso-codes
>  * database/sqlite-3
>  * developer/build/autoconf
>  * developer/build/automake-111
>  * developer/build/automake-19
>  * developer/build/gnu-make
>  * developer/build/libtool
>  * developer/build/make
>  * developer/dtrace/toolkit
>  * developer/gcc44
>  * developer/gcc44/libgmp-gcc44
>  * developer/gcc44/libmpc-gcc44
>  * developer/gcc44/libmpfr-gcc44
>  * developer/gcc46
>  * developer/gcc46/libgmp-gcc46
>  * developer/gcc46/libmpc-gcc46
>  * developer/gcc46/libmpfr-gcc46
>  * developer/gnu-binutils
>  * developer/lexer/flex
>  * developer/macro/cpp
>  * developer/macro/gnu-m4
>  * developer/parser/bison
>  * developer/solstudio12.2
>  * developer/sunstudio12.1
>  * developer/swig
>  * developer/versioning/git
>  * developer/versioning/mercurial
>  * driver/virtualization/kvm
>  * editor/vim
>  * entire
>  * file/gnu-coreutils
>  * file/gnu-findutils
>  * illumos-gate
>  * incorporation/jeos/illumos-gate
>  * incorporation/jeos/omnios-userland
>  * libgcc_s
>  * library/c++/sigcpp
>  * library/expat
>  * library/glib2
>  * library/gmp
>  * library/gnutls
>  * library/idnkit
>  * library/idnkit/header-idnkit
>  * library/libffi
>  * library/libidn
>  * library/libtasn1
>  * library/libtool/libltdl
>  * library/libxml2
>  * library/libxslt
>  * library/ncurses
>  * library/nspr
>  * library/nspr/header-nspr
>  * library/pcre
>  * library/perl-5/xml-parser
>  * library/popt
>  * library/python-2/cherrypy
>  * library/python-2/lxml-26
>  * library/python-2/m2crypto
>  * library/python-2/mako
>  * library/python-2/numpy-26
>  * library/python-2/ply
>  * library/python-2/pybonjour
>  * library/python-2/pycurl
>  * library/python-2/pyopenssl-26
>  * library/python-2/pyrex-26
>  * library/python-2/python-extra-26
>  * library/python-2/setuptools-26
>  * library/python-2/simplejson-26
>  * library/readline
>  * library/security/libgpg-error
>  * library/security/nettle
>  * library/security/openssl
>  * library/security/trousers
>  * library/unixodbc
>  * library/zlib
>  * libstdc++
>  * media/cdrtools
>  * network/dns/bind
>  * network/dns/idnconv
>  * network/rsync
>  * package/pkg
>  * release/name
>  * release/notices
>  * runtime/perl-$NODOTVER
>  * runtime/perl-$NODOTVER-64
>  * runtime/perl-$NODOTVER/manual
>  * runtime/python-26
>  * security/sudo
>  * service/network/ntp
>  * shell/bash
>  * shell/pipe-viewer
>  * shell/tcsh
>  * shell/which
>  * shell/zsh
>  * system/install/kayak
>  * system/install/kayak-kernel
>  * system/install/locale
>  * system/kvm
>  * system/library/c++/sunpro
>  * system/library/dbus
>  * system/library/g++-4-runtime
>  * system/library/gcc-4-runtime
>  * system/library/iconv/extra
>  * system/library/iconv/unicode
>  * system/library/iconv/utf-8
>  * system/library/iconv/utf-8/manual
>  * system/library/iconv/xsh4/latin
>  * system/library/libdbus
>  * system/library/libdbus-glib
>  * system/library/math
>  * system/library/math/header-math
>  * system/library/mozilla-nss
>  * system/library/mozilla-nss/header-nss
>  * system/library/pcap
>  * system/library/security/libgcrypt
>  * system/management/ec2-api-tools
>  * system/management/ec2-credential
>  * system/management/ipmitool
>  * system/management/snmp/net-snmp
>  * system/pciutils
>  * system/pciutils/pci.ids
>  * system/prerequisite/gnu
>  * system/zones/brand/ipkg
>  * terminal/screen
>  * terminal/tmux
>  * text/auto_ef
>  * text/gawk
>  * text/gnu-diffutils
>  * text/gnu-gettext
>  * text/gnu-grep
>  * text/gnu-patch
>  * text/gnu-sed
>  * text/groff
>  * text/less
>  * text/texinfo
>  * web/ca-bundle
>  * web/curl
>  * web/wget
> kent at compiler:/home/kent/omnios-build/build$ ./buildctl build
> kent at compiler:/home/kent/omnios-build/build$   (nothing happened?)
>
> OK, let's pass a list of packages in...
>
> kent at compiler:/home/kent/omnios-build/build$ for i in *; do
>> echo $i
>> ./buildctl build $i
>> done
> autoconf
> Unknown package: autoconf
> automake-111
> Unknown package: automake-111
> automake-19
> Unknown package: automake-19
> bash
> Unknown package: bash
> bind
> Unknown package: bind
> binutils
> Unknown package: binutils
> bison
> Unknown package: bison
> buildctl
> Unknown package: buildctl
> bzip2
> Unknown package: bzip2
> ca-bundle
> Unknown package: ca-bundle
> caiman
> ^C
>
> No dice either.  I've examined the buildctl script and it seems that the way
> it builds up its "targets" variable is incompatible with the comparison that
> happens later:
>
>     if [[ -z "${targets[$1]}" ]]; then
>         bail "Unknown package: $1"
>     fi
>
>
> Or am I doing something wrong?
>
> Thanks again,
> Kent
>
>
>
>
> _______________________________________________
> OmniOS-discuss mailing list
> OmniOS-discuss at lists.omniti.com
> http://lists.omniti.com/mailman/listinfo/omnios-discuss
>


More information about the OmniOS-discuss mailing list