64/SubDir.lib__sanitizer_common/sanitizer_posix_libcdep.o /Volumes/iExtra/justin/Gentoo/tmp/var/tmp/portage/sys-devel/llvm-3.4.2/work/llvm-3.4.2.src-.amd64/tools/clang/runtime/compiler-rt/clang_darwin/asan_osx_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_printf.o /Volumes/iExtra/justin/Gentoo/tmp/var/tmp/portage/sys-devel/llvm-3.4.2/work/llvm-3.4.2.src-.amd64/tools/clang/runtime/compiler-rt/clang_darwin/asan_osx_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_stackdepot.o /Volumes/iExtra/justin/Gentoo/tmp/var/tmp/portage/sys-devel/llvm-3.4.2/work/llvm-3.4.2.src-.amd64/tools/clang/runtime/compiler-rt/clang_darwin/asan_osx_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_stacktrace.o /Volumes/iExtra/justin/Gentoo/tmp/var/tmp/portage/sys-devel/llvm-3.4.2/work/llvm-3.4.2.src-.amd64/tools/clang/runtime/compiler-rt/clang_darwin/asan_osx_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_stacktrace_libcdep.o /Volumes/iExtra/justin/Gentoo/tmp/var/tmp/portage/sys-devel/llvm-3.4.2/work/llvm-3.4.2.src-.amd64/tools/clang/runtime/compiler-rt/clang_darwin/asan_osx_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_stoptheworld_linux_libcdep.o /Volumes/iExtra/justin/Gentoo/tmp/var/tmp/portage/sys-devel/llvm-3.4.2/work/llvm-3.4.2.src-.amd64/tools/clang/runtime/compiler-rt/clang_darwin/asan_osx_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_suppressions.o /Volumes/iExtra/justin/Gentoo/tmp/var/tmp/portage/sys-devel/llvm-3.4.2/work/llvm-3.4.2.src-.amd64/tools/clang/runtime/compiler-rt/clang_darwin/asan_osx_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_symbolizer.o /Volumes/iExtra/justin/Gentoo/tmp/var/tmp/portage/sys-devel/llvm-3.4.2/work/llvm-3.4.2.src-.amd64/tools/clang/runtime/compiler-rt/clang_darwin/asan_osx_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_symbolizer_libcdep.o /Volumes/iExtra/justin/Gentoo/tmp/var/tmp/portage/sys-devel/llvm-3.4.2/work/llvm-3.4.2.src-.amd64/tools/clang/runtime/compiler-rt/clang_darwin/asan_osx_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_symbolizer_posix_libcdep.o /Volumes/iExtra/justin/Gentoo/tmp/var/tmp/portage/sys-devel/llvm-3.4.2/work/llvm-3.4.2.src-.amd64/tools/clang/runtime/compiler-rt/clang_darwin/asan_osx_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_symbolizer_win.o /Volumes/iExtra/justin/Gentoo/tmp/var/tmp/portage/sys-devel/llvm-3.4.2/work/llvm-3.4.2.src-.amd64/tools/clang/runtime/compiler-rt/clang_darwin/asan_osx_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_thread_registry.o /Volumes/iExtra/justin/Gentoo/tmp/var/tmp/portage/sys-devel/llvm-3.4.2/work/llvm-3.4.2.src-.amd64/tools/clang/runtime/compiler-rt/clang_darwin/asan_osx_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_win.o -lstdc++ -undefined dynamic_lookup ld: library not found for -lc++ clang: error: linker command failed with exit code 1 (use -v to see invocation) make[5]: *** [/Volumes/iExtra/justin/Gentoo/tmp/var/tmp/portage/sys-devel/llvm-3.4.2/work/llvm-3.4.2.src-.amd64/tools/clang/runtime/compiler-rt/clang_darwin/asan_osx_dynamic/i386/libcompiler_rt.dylib] Error 1 make[5]: *** Waiting for unfinished jobs.... ld: library not found for -lc++ clang: error: linker command failed with exit code 1 (use -v to see invocation) make[5]: *** [/Volumes/iExtra/justin/Gentoo/tmp/var/tmp/portage/sys-devel/llvm-3.4.2/work/llvm-3.4.2.src-.amd64/tools/clang/runtime/compiler-rt/clang_darwin/asan_osx_dynamic/x86_64/libcompiler_rt.dylib] Error 1 make[4]: *** [BuildRuntimeLibraries] Error 2 rm /Volumes/iExtra/justin/Gentoo/tmp/var/tmp/portage/sys-devel/llvm-3.4.2/work/llvm-3.4.2.src-.amd64/Release/lib/clang/3.4.2/lib/darwin_embedded/.dir /Volumes/iExtra/justin/Gentoo/tmp/var/tmp/portage/sys-devel/llvm-3.4.2/work/llvm-3.4.2.src-.amd64/Release/lib/clang/3.4.2/lib/darwin/.dir make[3]: *** [compiler-rt/.makeall] Error 2 make[2]: *** [all] Error 1 make[1]: *** [clang/.makeall] Error 2 make: *** [all] Error 1 * ERROR: sys-devel/llvm-3.4.2::gentoo_prefix failed (compile phase):
Created attachment 414314 [details] build.log
I'm bootstrapping with latest tree, and it seems I've passed llvm-3.4.2, instead I crash on ncurses-6.
(because it assumes there is a bash)
I got stuck at pkgconfig which requires -framework CoreFoundation somehow.
I think we've seen enough times this no longer is a problem, other things are
I still have the problem when I try to bootstrap the prefix on my two Macs. I've just tried it again with the latest tree, but nothing changed. So please either tell me how you fixed the issue or reopen the bug.
and it is llvm-3.4.2, not 3.7.1 or 3.5.2?
yes, its sys-devel/llvm-3.4.2
Still happens here.
PV="20160211" bootstrap-prefix.sh $EPREFIX noninteractive With just CLT installed: xcode-select -p /Library/Developer/CommandLineTools fails in stage3 at llvm-3.7.1::gentoo_prefix With Xcode.app installed: xcode-select -p /Applications/Xcode.app/Contents/Developer fails in stage2 at llvm-3.4.2 Hat tip to xdej on #gentoo-prefix for pointing out different xcode-select -p could produce different results for bootstrap-prefix.sh
xcode-select -p /Applications/Xcode.app/Contents/Developer LATEST_TREE_YES=1 bootstrap-prefix.sh $EPREFIX noninteractive fails in stage2 at llvm-3.4.2::gentoo_prefix
Still happens here. Even with removed homebrew.
Without LATEST_TREE_YES=1 I hit this bug too on OS X El Capitan (10.11.3). I am trying with LATEST_TREE_YES=1 now.
For the record, I get: $ xcode-select -p /Applications/Xcode.app/Contents/Developer $ xcode-select -v xcode-select version 2343. Bootstrap fails for me both with and without LATEST_TREE_YES=1 on llvm-3.4.2. I'm on an almost fresh install of OS X (no fink, homebrew, or anything else).
With Xcode.app installed: sudo xcode-select -s /Library/Developer/CommandLineTools LATEST_TREE_YES=1 bootstrap-prefix.sh $EPREFIX noninteractive fails in stage3 at llvm-3.7.1::gentoo_prefix
That last run using CLT path was initiated right after the stage2 failure posted using Xcode.app path. bootstrap-prefix.sh has already had some work since that was started. Retesting...
$ sw_vers -productVersion 10.11.3 $ xcode-select -v xcode-select version 2343. $ xcode-select -p /Applications/Xcode.app/Contents/Developer LATEST_TREE_YES=1 bootstrap-prefix.sh $EPREFIX noninteractive fails in stage2 at llvm-3.4.2::gentoo_prefix $ sudo xcode-select -s /Library/Developer/CommandLineTools LATEST_TREE_YES=1 bootstrap-prefix.sh $EPREFIX noninteractive fails in stage3 at os-headers-0::gentoo_prefix
The following setting allowed me to pass stage2 build $ sw_vers -productVersion && xcode-select -v && xcode-select -p 10.11.3 xcode-select version 2343. /Library/Developer/CommandLineTools Using Xcode-7.2.1 fails.
(In reply to Justin Lecher from comment #18) > The following setting allowed me to pass stage2 build > > $ sw_vers -productVersion && xcode-select -v && xcode-select -p > 10.11.3 > xcode-select version 2343. > /Library/Developer/CommandLineTools > > Using Xcode-7.2.1 fails. Using the Xcode-7.2.0 commandline tools stage2 build works but stage3 build fails for llvm-3.5.2 with "ld: library not found for -lSystem".
(In reply to Justin Lecher from comment #19) > (In reply to Justin Lecher from comment #18) > > The following setting allowed me to pass stage2 build > > > > $ sw_vers -productVersion && xcode-select -v && xcode-select -p > > 10.11.3 > > xcode-select version 2343. > > /Library/Developer/CommandLineTools > > > > Using Xcode-7.2.1 fails. > > Using the Xcode-7.2.0 commandline tools stage2 build works but stage3 build > fails for llvm-3.5.2 with "ld: library not found for -lSystem". I have to correct myself, using commandline tools version 7.2.0 let me bootstrap the whole thing.
I gave it another try using commandline tools version 7.2.1 and I also got past llvm. However, I think I'm running into the same problem now Tim already mentioned. But I think the issue is not the virtual/os-headers-0 package because I get the following error: >>> Installing (1 of 1) virtual/os-headers-0::gentoo_prefix * checking 0 files for package collisions >>> Merging virtual/os-headers-0 to / >>> virtual/os-headers-0 merged. >>> Auto-cleaning packages... >>> No outdated packages were found on your system. date: invalid date '<?xml version="1.0" encoding="UTF-8"?>' date: invalid date '<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">' date: invalid date '<pkgmetadata>' date: invalid date ' <maintainer type="person">' date: invalid date ' <email>maintainer-needed@gentoo.org</email>' date: invalid date ' </maintainer>' date: invalid date ' <longdescription lang="en">' date: invalid date '\t</longdescription>' date: invalid date ' <upstream>' date: invalid date ' <remote-id type="github">coreos/fleet</remote-id>' date: invalid date ' </upstream>' date: invalid date '</pkgmetadata>' dyld: Library not loaded: /Users/abusse/Library/Gentoo/tmp/usr/lib/libreadline.6.dylib Referenced from: /Users/abusse/Library/Gentoo/bin/bash Reason: image not found Failed to validate a sane '/dev'. bash process substitution doesn't work; this may be an indication of a broken '/dev/fd'. dyld: Library not loaded: /Users/abusse/Library/Gentoo/tmp/usr/lib/libreadline.6.dylib Referenced from: /Users/abusse/Library/Gentoo/bin/bash Reason: image not found ./bootstrap-prefix.sh: line 1218: 77583 Trace/BPT trap: 5 emerge-webrsync I took a closer look and it turns out /Users/abusse/Library/Gentoo/tmp/ is empty. So it's not surprising that it cannot load the libreadline.
(In reply to Anselm Busse from comment #21) > I gave it another try using commandline tools version 7.2.1 and I also got How did you get the commandline tools version 7.2.1? > > >>> No outdated packages were found on your system. > date: invalid date '<?xml version="1.0" encoding="UTF-8"?>' > date: invalid date '<!DOCTYPE pkgmetadata SYSTEM > "http://www.gentoo.org/dtd/metadata.dtd">' > date: invalid date '<pkgmetadata>' > date: invalid date ' <maintainer type="person">' > date: invalid date ' <email>maintainer-needed@gentoo.org</email>' > date: invalid date ' </maintainer>' @prefix devs, this is completely wrong. There is no such person. > /Users/abusse/Library/Gentoo/tmp/usr/lib/libreadline.6.dylib > Referenced from: /Users/abusse/Library/Gentoo/bin/bash > Reason: image not found > Failed to validate a sane '/dev'. > bash process substitution doesn't work; this may be an indication of a > broken '/dev/fd'. > dyld: Library not loaded: > /Users/abusse/Library/Gentoo/tmp/usr/lib/libreadline.6.dylib > Referenced from: /Users/abusse/Library/Gentoo/bin/bash > Reason: image not found > ./bootstrap-prefix.sh: line 1218: 77583 Trace/BPT trap: 5 > emerge-webrsync > > I took a closer look and it turns out /Users/abusse/Library/Gentoo/tmp/ is > empty. So it's not surprising that it cannot load the libreadline. I also saw this and just created a symlink from TMPDIR/usr/lib -> PREFIX/usr/lib and that worked.
(In reply to Justin Lecher from comment #22) > How did you get the commandline tools version 7.2.1? I guess they came with Xcode 7.2.1 or did misinterpret the information in Xcode? It says "Command Line Tools: Xcode 7.2.1 (7C1002)" > I also saw this and just created a symlink from TMPDIR/usr/lib -> > PREFIX/usr/lib and that worked. Tried it and got past the error. Emerging the rest now. However, I guess that shouldn't be a permanent solution ;)
(In reply to Justin Lecher from comment #22) > > >>> No outdated packages were found on your system. > > date: invalid date '<?xml version="1.0" encoding="UTF-8"?>' > > date: invalid date '<!DOCTYPE pkgmetadata SYSTEM > > "http://www.gentoo.org/dtd/metadata.dtd">' > > date: invalid date '<pkgmetadata>' > > date: invalid date ' <maintainer type="person">' > > date: invalid date ' <email>maintainer-needed@gentoo.org</email>' > > date: invalid date ' </maintainer>' > > @prefix devs, this is completely wrong. There is no such person. I don't know what we can do about that, actually ... :( > > I took a closer look and it turns out /Users/abusse/Library/Gentoo/tmp/ is > > empty. So it's not surprising that it cannot load the libreadline. > > I also saw this and just created a symlink from TMPDIR/usr/lib -> > PREFIX/usr/lib and that worked. What stage is this? This obviously is wrong, it means tmp got nuked before we replaced everything in this.
(In reply to Fabian Groffen from comment #24) > What stage is this? This obviously is wrong, it means tmp got nuked before > we replaced everything in this. It was during stage3 and happened again after llvm. I recreated a link as suggested by Justin and it finished stage3. It's emerging system right now and so far everything beyond stage3 seems to be fine.
(In reply to Fabian Groffen from comment #24) > (In reply to Justin Lecher from comment #22) > > > >>> No outdated packages were found on your system. > > > date: invalid date '<?xml version="1.0" encoding="UTF-8"?>' > > > date: invalid date '<!DOCTYPE pkgmetadata SYSTEM > > > "http://www.gentoo.org/dtd/metadata.dtd">' > > > date: invalid date '<pkgmetadata>' > > > date: invalid date ' <maintainer type="person">' > > > date: invalid date ' <email>maintainer-needed@gentoo.org</email>' > > > date: invalid date ' </maintainer>' > > > > @prefix devs, this is completely wrong. There is no such person. > > I don't know what we can do about that, actually ... :( The problem is that some metadata.xml are broken in the prefix tree ~/Gentoo/usr/portage $ (126) find -name metadata.xml -exec grep maintainer-needed@ '{}' + ./app-admin/fleet/metadata.xml: <email>maintainer-needed@gentoo.org</email> ./app-backup/rdiff-backup/metadata.xml: <email>maintainer-needed@gentoo.org</email> ./app-editors/diakonos/metadata.xml: <email>maintainer-needed@gentoo.org</email> > > > > I took a closer look and it turns out /Users/abusse/Library/Gentoo/tmp/ is > > > empty. So it's not surprising that it cannot load the libreadline. > > > > I also saw this and just created a symlink from TMPDIR/usr/lib -> > > PREFIX/usr/lib and that worked. > > What stage is this? This obviously is wrong, it means tmp got nuked before > we replaced everything in this. This allows me to emerge bash and other packages so that they correctly get linked to the PREFIX libs. The link is only temporary.
I get the same failure ate stage2 with Xcode 7.2.1 installed (+CLT), i.e. : ld: library not found for -lc++ ld: library not found for -lc++ clang: error: clang: error: linker command failed with exit code 1 (use -v to see invocation) linker command failed with exit code 1 (use -v to see invocation)
do you have commandline tools installed?
(In reply to Fabian Groffen from comment #28) > do you have commandline tools installed? $ which clang /usr/bin/clang $ xcode-select -v xcode-select version 2343. $ xcode-select -p /Applications/Xcode.app/Contents/Developer So yes the CLT are installed unless I am utterly mistaken.
(In reply to Justin Lecher from comment #26) > (In reply to Fabian Groffen from comment #24) > > (In reply to Justin Lecher from comment #22) > > > > >>> No outdated packages were found on your system. > > > > date: invalid date '<?xml version="1.0" encoding="UTF-8"?>' > > > > date: invalid date '<!DOCTYPE pkgmetadata SYSTEM > > > > "http://www.gentoo.org/dtd/metadata.dtd">' > > > > date: invalid date '<pkgmetadata>' > > > > date: invalid date ' <maintainer type="person">' > > > > date: invalid date ' <email>maintainer-needed@gentoo.org</email>' > > > > date: invalid date ' </maintainer>' > > > > > > @prefix devs, this is completely wrong. There is no such person. > > > > I don't know what we can do about that, actually ... :( > > The problem is that some metadata.xml are broken in the prefix tree > > ~/Gentoo/usr/portage $ (126) find -name metadata.xml -exec grep > maintainer-needed@ '{}' + > ./app-admin/fleet/metadata.xml: > <email>maintainer-needed@gentoo.org</email> > ./app-backup/rdiff-backup/metadata.xml: > <email>maintainer-needed@gentoo.org</email> > ./app-editors/diakonos/metadata.xml: > <email>maintainer-needed@gentoo.org</email> these don't come from the prefix tree, so I guess this came from an old bootstrap snapshot
I've pushed a check for CommandLineTools, and the bootstraps I've performed on 10.11 all worked, so I think this bug has been fixed.