* ERROR: app-shells/bash-4.2_p45-r1::gentoo_prefix failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 93: Called src_compile * environment, line 2373: Called die * The specific snippet of code: * emake || die; Reproducible: Always Steps to Reproduce: 1. Download bootstrap-prefix.sh to OS X 10.5.8 2. chmod 755 script, execute 3. See error Actual Results: Undefined symbols: "_enable_hostname_completion", referenced from: _shopt_enable_hostname_completion in libbuiltins.a(shopt.o) ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [bash] Error 1 emake failed * ERROR: app-shells/bash-4.2_p45-r1::gentoo_prefix failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 93: Called src_compile * environment, line 2373: Called die * The specific snippet of code: * emake || die; * * If you need support, post the output of `emerge --info '=app-shells/bash-4.2_p45-r1::gentoo_prefix'`, * the complete build log and the output of `emerge -pqv '=app-shells/bash-4.2_p45-r1::gentoo_prefix'`. * The complete build log is located at '/Users/soundminer/Gentoo/var/tmp/portage/app-shells/bash-4.2_p45-r1/temp/build.log'. * The ebuild environment file is located at '/Users/soundminer/Gentoo/var/tmp/portage/app-shells/bash-4.2_p45-r1/temp/environment'. * Working directory: '/Users/soundminer/Gentoo/var/tmp/portage/app-shells/bash-4.2_p45-r1/work/bash-4.2' * S: '/Users/soundminer/Gentoo/var/tmp/portage/app-shells/bash-4.2_p45-r1/work/bash-4.2' >>> Failed to emerge app-shells/bash-4.2_p45-r1, Log file: >>> '/Users/soundminer/Gentoo/var/tmp/portage/app-shells/bash-4.2_p45-r1/temp/build.log' * Messages for package app-shells/bash-4.2_p45-r1: * ERROR: app-shells/bash-4.2_p45-r1::gentoo_prefix failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 93: Called src_compile * environment, line 2373: Called die * The specific snippet of code: * emake || die; * * If you need support, post the output of `emerge --info '=app-shells/bash-4.2_p45-r1::gentoo_prefix'`, * the complete build log and the output of `emerge -pqv '=app-shells/bash-4.2_p45-r1::gentoo_prefix'`. * The complete build log is located at '/Users/soundminer/Gentoo/var/tmp/portage/app-shells/bash-4.2_p45-r1/temp/build.log'. * The ebuild environment file is located at '/Users/soundminer/Gentoo/var/tmp/portage/app-shells/bash-4.2_p45-r1/temp/environment'. * Working directory: '/Users/soundminer/Gentoo/var/tmp/portage/app-shells/bash-4.2_p45-r1/work/bash-4.2' * S: '/Users/soundminer/Gentoo/var/tmp/portage/app-shells/bash-4.2_p45-r1/work/bash-4.2' Hmmmm, I was already afraid of this to happen. Running /Users/soundminer/Gentoo/bin/bash ./bootstrap-prefix.sh "/Users/soundminer/Gentoo" stage3 somewhere failed :( Details might be found in the build log: /Users/soundminer/Gentoo/var/tmp/portage/app-shells/bash-4.2_p45-r1/temp/build.log I have no clue, really. Please find friendly folks in #gentoo-prefix on irc.gentoo.org, gentoo-alt@lists.gentoo.org mailing list, or file a bug at bugs.gentoo.org under Gentoo/Alt, Prefix Support. This is most inconvenient, and it crushed my ego. Sorry, I give up. Expected Results: Emerge XServe 2,1 with 2x Quad-Core Intel Xeon CPU, OS X 10.5.8
Created attachment 370092 [details] build log
Created attachment 370094 [details] ebuild environment file
$ /Users/soundminer/Gentoo/lib/portage/bin/emerge --info '=app-shells/bash-4.2_p45-r1::gentoo_prefix' Portage 2.2.8-prefix (prefix/darwin/macos/10.5/x86, gcc-4.0.1, unavailable, 9.8.0 i386) ================================================================= System Settings ================================================================= System uname: Darwin-9.8.0-i386-32bit Timestamp of tree: Fri, 07 Feb 2014 23:05:58 +0000 distcc 2.18.5-Apple.1 i386-apple-darwin9.0 (protocols 1 and 2) (default port 3632) [disabled] Repositories: gentoo_prefix ACCEPT_KEYWORDS="~x86-macos" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-apple-darwin9" CFLAGS="-march=prescott" CHOST="i686-apple-darwin9" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf" CXXFLAGS="" DISTDIR="/Users/soundminer/Gentoo/usr/portage/distfiles" FCFLAGS="" FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-dead_strip_dylibs" PKGDIR="/Users/soundminer/Gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/Users/soundminer/Gentoo/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/Users/soundminer/Gentoo/var/tmp" PORTDIR="/Users/soundminer/Gentoo/usr/portage" PORTDIR_OVERLAY="" USE="aqua coreaudio cracklib cxx ipv6 mmx mmxext modules ncurses objc objc++ prefix readline sse sse2 ssl x86-macos zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="Darwin" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
$ /Users/soundminer/Gentoo/lib/portage/bin/emerge -pqv '=app-shells/bash-4.2_p45-r1::gentoo_prefix' [ebuild N ] app-shells/bash-4.2_p45-r1 USE="net (readline) -afs -bashlogger -examples -mem-scramble -nls -plugins -vanilla" 0 kB [ebuild N ] virtual/yacc-0 0 kB [ebuild N ] sys-devel/bison-2.7.1 USE="-nls -static" 1,740 kB [ebuild N ] sys-devel/flex-2.5.37 USE="-nls -static {-test}" 1,273 kB [ebuild N ] sys-devel/m4-1.4.17 USE="-examples" 1,123 kB [nomerge ] sys-devel/bison-2.7.1 USE="-nls -static" [nomerge ] sys-devel/m4-1.4.17 USE="-examples" [nomerge ] app-arch/xz-utils-5.0.5-r1 USE="threads -nls -static-libs" [ebuild N ] sys-apps/coreutils-8.22 USE="(-acl) (-caps) -gmp -nls (-selinux) -static -vanilla -xattr" 5,259 kB [ebuild N ] app-arch/xz-utils-5.0.5-r1 USE="threads -nls -static-libs" 1,276 kB Total: 7 packages (7 new), Size of downloads: 10,668 kB * Error: circular dependencies: (sys-apps/coreutils-8.22::gentoo_prefix, ebuild scheduled for merge) depends on (app-arch/xz-utils-5.0.5-r1::gentoo_prefix, ebuild scheduled for merge) (buildtime) (sys-apps/coreutils-8.22::gentoo_prefix, ebuild scheduled for merge) (buildtime) * Note that circular dependencies can often be avoided by temporarily * disabling USE flags that trigger optional dependencies. * IMPORTANT: 3 news items need reading for repository 'gentoo_prefix'. * Use eselect news to read news items.
I've fixed this in the bootstrap script, but it requires a newer tree, which will be available tomorrow only. I'll continue the bootstrap and hopefully succeed so I bump the snapshot (and fix this bug).
Hi Fabian, Thanks for looking into this. Do you have a procedure where I can test using the latest tree? Following a suggestion in the #gentoo-prefix chat, I ran the latest bootstrap script using `LATEST_TREE_YES=1 ./bootstrap-prefix.sh`, but still can't get past emerge bash: ./mkbuiltins -D . complete.def i686-apple-darwin9-gcc -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DMACOSX -I/Users/soundminer/Gentoo/usr/include -I/Users/soundminer/Gentoo/tmp/usr/include -DNO_LARGEFILE_SOURCE -DDEFAULT_PATH_VALUE='"/Users/soundminer/Gentoo/usr/sbin:/Users/soundminer/Gentoo/usr/bin:/Users/soundminer/Gentoo/sbin:/Users/soundminer/Gentoo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"' -DSTANDARD_UTILS_PATH='"/Users/soundminer/Gentoo/bin:/Users/soundminer/Gentoo/usr/bin:/Users/soundminer/Gentoo/sbin:/Users/soundminer/Gentoo/usr/sbin:/bin:/usr/bin:/sbin:/usr/sbin"' -DSYS_BASHRC='"/Users/soundminer/Gentoo/etc/bash/bashrc"' -DSYS_BASH_LOGOUT='"/Users/soundminer/Gentoo/etc/bash/bash_logout"' -DNON_INTERACTIVE_LOGIN_SHELLS -DSSH_SOURCE_BASHRC -march=prescott complete.c || ( rm -f complete.c ; exit 1 ) /Users/soundminer/Gentoo/bin/bash ./psize.sh > pipesize.h rm -f shopt.c rm -f printf.c ./complete.def: In function 'compgen_builtin': ./complete.def:730: error: 'rl_filename_completion_function' undeclared (first use in this function) ./complete.def:730: error: (Each undeclared identifier is reported only once ./complete.def:730: error: for each function it appears in.) ./complete.def:730: warning: assignment makes pointer from integer without a cast ./complete.def: In function 'compopt_builtin': ./complete.def:824: error: 'RL_STATE_COMPLETING' undeclared (first use in this function) Makefile:113: recipe for target 'complete.o' failed make[1]: *** [complete.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/Users/soundminer/Gentoo/var/tmp/portage/app-shells/bash-4.1_p11/work/bash-4.1/builtins' Makefile:669: recipe for target 'builtins/libbuiltins.a' failed make: *** [builtins/libbuiltins.a] Error 1 * ERROR: app-shells/bash-4.1_p11::gentoo_prefix failed (compile phase): * emake failed Thanks, Stafford
Forgot to mention, despite issues with bootstrapping bash via bootstrap-prefix.sh, no issues bootstrapping bash via bootstrap-bash.sh.
Thanks! I didn't do much because indeed it tries to install bash-4.1 for some reason, but I ran out of time when I was investigating why. I fixed 4.2, but not 4.1. Though I don't see a good reason (yet) why 4.1 should be installed.
Hi Fabian, When I run simply `./bootstrap-prefix.sh`, bootstrap fails in stage 3 for app-shells/bash-4.2_p45-r1. When I run `LATEST_TREE_YES=1 ./bootstrap-prefix.sh`, bootstrap fails in stage 3 for app-shells/bash-4.1_p11. Know of a way I can get the bootstrap to complete? Thanks, Stafford
(In reply to sritchie from comment #9) > Hi Fabian, > > When I run simply `./bootstrap-prefix.sh`, bootstrap fails in stage 3 for > app-shells/bash-4.2_p45-r1. > > When I run `LATEST_TREE_YES=1 ./bootstrap-prefix.sh`, bootstrap fails in > stage 3 for app-shells/bash-4.1_p11. > > Know of a way I can get the bootstrap to complete? If you resume, you hit annother bug introduced when the bootstrap script was reorganised. I'm planning to continue with this today.
Ok, CHOST mismatch problem found, was introduced by http://prefix.gentooexperimental.org/hg/prefix-tree/rev/99308ac1e85c. Fixed again now. Doesn't mean bootstrap on Darwin is fixed yet.
Currently testing all fixes on Darwin 10
Please redownload bootstrap-prefix.sh and try again. I haven't finished completely myself, but I got up to the emerge -e system stage which usually is hopeful in terms of completing the bootstrap.
I got success
Using LATEST_TREE_YES=1, confirmed OS X 10.5.8 bootstrapped to completion. Many thanks, Fabian!