When trying to bootstrap Gentoo prefix on OS X 10.10.3, the process fails on the xz-utils package. Reproducible: Always Steps to Reproduce: 1. Download bootstrap-prefix.sh 2. Run with defaults Actual Results: Bootstrap fails on xz-utils since it fails to apply darwin patches. Expected Results: The bootstrap process to succeed. >>> Failed to emerge app-arch/xz-utils-5.2.1-r1, Log file: >>> '/Users/jmulesa/Gentoo/var/tmp/portage/app-arch/xz-utils-5.2.1-r1/temp/build.log' * Messages for package app-arch/xz-utils-5.2.1-r1: * Darwin patch set 'darwin-conf' failed to apply! * Darwin patch set 'darwin-conf' failed to apply! * ERROR: app-arch/xz-utils-5.2.1-r1::gentoo_prefix failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 93: Called __call-ebuildshell 'src_configure' * environment, line 245: Called src_configure * environment, line 2824: Called multilib-minimal_src_configure * environment, line 2105: Called multilib_foreach_abi 'multilib-minimal_abi_src_configure' * environment, line 2312: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 2036: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 2034: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure' * environment, line 416: Called multilib-minimal_abi_src_configure * environment, line 2099: Called multilib_src_configure * environment, line 2528: Called econf '--enable-nls' '--enable-threads' '--disable-static' * phase-helpers.sh, line 584: Called die * The specific snippet of code: * die "econf failed" * * If you need support, post the output of `emerge --info '=app-arch/xz-utils-5.2.1-r1::gentoo_prefix'`, * the complete build log and the output of `emerge -pqv '=app-arch/xz-utils-5.2.1-r1::gentoo_prefix'`. * The complete build log is located at '/Users/jmulesa/Gentoo/var/tmp/portage/app-arch/xz-utils-5.2.1-r1/temp/build.log'. * The ebuild environment file is located at '/Users/jmulesa/Gentoo/var/tmp/portage/app-arch/xz-utils-5.2.1-r1/temp/environment'. * Working directory: '/Users/jmulesa/Gentoo/var/tmp/portage/app-arch/xz-utils-5.2.1-r1/work/xz-5.2.1-.amd64' * S: '/Users/jmulesa/Gentoo/var/tmp/portage/app-arch/xz-utils-5.2.1-r1/work/xz-5.2.1' Hmmmm, I was already afraid of this to happen. Running /Users/jmulesa/Gentoo/bin/bash ./bootstrap-prefix.sh "/Users/jmulesa/Gentoo" stage3 somewhere failed :( Details might be found in the build log: /Users/jmulesa/Gentoo/var/tmp/portage/app-arch/xz-utils-5.2.1-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. Should you want to give it a try, there is /Users/jmulesa/Gentoo/stage3.log
cat /Users/jmulesa/Gentoo/var/tmp/portage/app-arch/xz-utils-5.2.1-r1/temp/build.log * Package: app-arch/xz-utils-5.2.1-r1 * Repository: gentoo_prefix * Maintainer: base-system@gentoo.org * USE: cpu_flags_x86_mmx cpu_flags_x86_mmxext cpu_flags_x86_sse cpu_flags_x86_sse2 elibc_Darwin kernel_Darwin nls prefix prefix-guest threads userland_GNU x64-macos * FEATURES: nostrip preserve-libs userpriv usersandbox >>> Unpacking source... >>> Unpacking xz-5.2.1.tar.gz to /Users/jmulesa/Gentoo/var/tmp/portage/app-arch/xz-utils-5.2.1-r1/work >>> Source unpacked in /Users/jmulesa/Gentoo/var/tmp/portage/app-arch/xz-utils-5.2.1-r1/work >>> Preparing source in /Users/jmulesa/Gentoo/var/tmp/portage/app-arch/xz-utils-5.2.1-r1/work/xz-5.2.1 ... * Running elibtoolize in: xz-5.2.1/ * Darwin patch set 'darwin-conf' failed to apply! * Running elibtoolize in: xz-5.2.1/build-aux/ * Applying portage/1.2.0 patch ... * Applying sed/1.5.6 patch ... * Darwin patch set 'darwin-conf' failed to apply! >>> Source prepared. >>> Configuring source in /Users/jmulesa/Gentoo/var/tmp/portage/app-arch/xz-utils-5.2.1-r1/work/xz-5.2.1 ... * .amd64: running multilib-minimal_abi_src_configure * econf: updating xz-5.2.1/build-aux/config.guess with /Users/jmulesa/Gentoo/usr/share/gnuconfig/config.guess * econf: updating xz-5.2.1/build-aux/config.sub with /Users/jmulesa/Gentoo/usr/share/gnuconfig/config.sub /Users/jmulesa/Gentoo/var/tmp/portage/app-arch/xz-utils-5.2.1-r1/work/xz-5.2.1/configure --prefix=/Users/jmulesa/Gentoo/usr --build=x86_64-apple-darwin14 --host=x86_64-apple-darwin14 --mandir=/Users/jmulesa/Gentoo/usr/share/man --infodir=/Users/jmulesa/Gentoo/usr/share/info --datadir=/Users/jmulesa/Gentoo/usr/share --sysconfdir=/Users/jmulesa/Gentoo/etc --localstatedir=/Users/jmulesa/Gentoo/var/lib --disable-dependency-tracking --libdir=/Users/jmulesa/Gentoo/usr/lib --enable-nls --enable-threads --disable-static XZ Utils 5.2.1 System type: checking build system type... x86_64-apple-darwin14 checking host system type... x86_64-apple-darwin14 Configure options: checking if debugging code should be compiled... no checking which encoders to build... lzma1 lzma2 delta x86 powerpc ia64 arm armthumb sparc checking which decoders to build... lzma1 lzma2 delta x86 powerpc ia64 arm armthumb sparc checking which match finders to build... hc3 hc4 bt2 bt3 bt4 checking which integrity checks to build... crc32 crc64 sha256 checking if assembler optimizations should be used... no checking if small size is preferred over speed... no checking if threading support is wanted... yes, posix checking how much RAM to assume if the real amount is unknown... 128 MiB checking if library symbol versioning should be used... no checking for a shell that conforms to POSIX... /Users/jmulesa/Gentoo/bin/bash Initializing Automake: checking for a BSD-compatible install... /Users/jmulesa/Gentoo/usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /Users/jmulesa/Gentoo/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether ln -s works... yes checking for style of include used by make... GNU checking for x86_64-apple-darwin14-gcc... clang checking whether the C compiler works... no configure: error: in `/Users/jmulesa/Gentoo/var/tmp/portage/app-arch/xz-utils-5.2.1-r1/work/xz-5.2.1-.amd64': configure: error: C compiler cannot create executables See `config.log' for more details !!! Please attach the following file when seeking support: !!! /Users/jmulesa/Gentoo/var/tmp/portage/app-arch/xz-utils-5.2.1-r1/work/xz-5.2.1-.amd64/config.log * ERROR: app-arch/xz-utils-5.2.1-r1::gentoo_prefix failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 93: Called __call-ebuildshell 'src_configure' * environment, line 245: Called src_configure * environment, line 2824: Called multilib-minimal_src_configure * environment, line 2105: Called multilib_foreach_abi 'multilib-minimal_abi_src_configure' * environment, line 2312: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 2036: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 2034: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure' * environment, line 416: Called multilib-minimal_abi_src_configure * environment, line 2099: Called multilib_src_configure * environment, line 2528: Called econf '--enable-nls' '--enable-threads' '--disable-static' * phase-helpers.sh, line 584: Called die * The specific snippet of code: * die "econf failed" * * If you need support, post the output of `emerge --info '=app-arch/xz-utils-5.2.1-r1::gentoo_prefix'`, * the complete build log and the output of `emerge -pqv '=app-arch/xz-utils-5.2.1-r1::gentoo_prefix'`. * The complete build log is located at '/Users/jmulesa/Gentoo/var/tmp/portage/app-arch/xz-utils-5.2.1-r1/temp/build.log'. * The ebuild environment file is located at '/Users/jmulesa/Gentoo/var/tmp/portage/app-arch/xz-utils-5.2.1-r1/temp/environment'. * Working directory: '/Users/jmulesa/Gentoo/var/tmp/portage/app-arch/xz-utils-5.2.1-r1/work/xz-5.2.1-.amd64' * S: '/Users/jmulesa/Gentoo/var/tmp/portage/app-arch/xz-utils-5.2.1-r1/work/xz-5.2.1'
I'd like to see config.log, as it will contain the reason why it thinks your C compiler can't create executables
Created attachment 405150 [details] config.log
config.log is attached. It looks like it's unhappy with the location of the libffi library; it's looking for it in /Users/jmulesa/Gentoo/tmp/usr/lib/ but it should be looking in /Users/jmulesa/Gentoo/usr/lib/ where it's actually located.
http://sourceforge.net/p/gentooprefixtree/code/ci/b90daf16673eb3b8d42a985240c64401f4feeaf8/ feels awfully related
can reproduce
I pulled in libffi for llvm now, and was able to do a successful bootstrap.