Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 500932 - bootstrap on darwin: app-shells/bash-4.2_p45-r1 Undefined symbols: "_enable_hostname_completion", referenced from: _shopt_enable_hostname_completion in libbuiltins.a(shopt.o)
Summary: bootstrap on darwin: app-shells/bash-4.2_p45-r1 Undefined symbols: "_enable_h...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 OS X
: Normal critical (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-10 20:59 UTC by sritchie
Modified: 2014-02-16 17:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,162.19 KB, text/plain)
2014-02-10 21:06 UTC, sritchie
Details
ebuild environment file (environment,94.95 KB, text/plain)
2014-02-10 21:07 UTC, sritchie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sritchie 2014-02-10 20:59:02 UTC
* 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
Comment 1 sritchie 2014-02-10 21:06:44 UTC
Created attachment 370092 [details]
build log
Comment 2 sritchie 2014-02-10 21:07:53 UTC
Created attachment 370094 [details]
ebuild environment file
Comment 3 sritchie 2014-02-10 21:11:21 UTC
$ /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
Comment 4 sritchie 2014-02-10 21:13:20 UTC
$ /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.
Comment 5 Fabian Groffen gentoo-dev 2014-02-11 19:38:25 UTC
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).
Comment 6 sritchie 2014-02-14 17:32:01 UTC
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
Comment 7 sritchie 2014-02-14 18:44:48 UTC
Forgot to mention, despite issues with bootstrapping bash via bootstrap-prefix.sh, no issues bootstrapping bash via bootstrap-bash.sh.
Comment 8 Fabian Groffen gentoo-dev 2014-02-14 19:56:23 UTC
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.
Comment 9 sritchie 2014-02-14 20:56:13 UTC
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
Comment 10 Fabian Groffen gentoo-dev 2014-02-15 08:40:26 UTC
(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.
Comment 11 Fabian Groffen gentoo-dev 2014-02-15 09:23:48 UTC
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.
Comment 12 Fabian Groffen gentoo-dev 2014-02-15 10:02:53 UTC
Currently testing all fixes on Darwin 10
Comment 13 Fabian Groffen gentoo-dev 2014-02-15 11:55:39 UTC
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.
Comment 14 Fabian Groffen gentoo-dev 2014-02-16 07:45:12 UTC
I got success
Comment 15 sritchie 2014-02-16 17:10:17 UTC
Using LATEST_TREE_YES=1, confirmed OS X 10.5.8 bootstrapped to completion.  Many thanks, Fabian!