I tried to install Gentoo-prefix on my mac os. My mac os is x86_64, Sierra. I started the "bootstrapping-prefix.sh" script and used default for all options. The build when well for all the other packages. llvm was the last one to build, and it failed with following messages: x86_64-apple-darwin16-clang-3.5.2: error: unable to execute command: Segmentation fault: 11 x86_64-apple-darwin16-clang-3.5.2: error: clang frontend command failed due to signal (use -v to see invocation) clang version 3.5.2 (tags/RELEASE_352/final) Target: x86_64-apple-darwin16 Thread model: posix x86_64-apple-darwin16-clang-3.5.2: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script. x86_64-apple-darwin16-clang-3.5.2: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: x86_64-apple-darwin16-clang-3.5.2: note: diagnostic msg: /Users/david/Gentoo/var/tmp/portage/sys-devel/llvm-3.8.1/temp/ParallelCG-bf30a4.cpp x86_64-apple-darwin16-clang-3.5.2: note: diagnostic msg: /Users/david/Gentoo/var/tmp/portage/sys-devel/llvm-3.8.1/temp/ParallelCG-bf30a4.sh x86_64-apple-darwin16-clang-3.5.2: note: diagnostic msg: ******************** [930/3091] /Users/david/Gentoo/usr/bin/x86_64-apple-darwin16-clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/CodeGen -I/Users/david/Gentoo/var/tmp/portage/sys-devel/llvm-3.8.1/work/llvm-3.8.1.src/lib/CodeGen -Iinclude -I/Users/david/Gentoo/var/tmp/portage/sys-devel/llvm-3.8.1/work/llvm-3.8.1.src/include -DGNUSTEP_BASE_VERSION -DNDEBUG -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Werror=date-time -std=c++11 -fcolor-diagnostics -fPIC -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/Passes.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/Passes.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/Passes.cpp.o -c /Users/david/Gentoo/var/tmp/portage/sys-devel/llvm-3.8.1/work/llvm-3.8.1.src/lib/CodeGen/Passes.cpp ninja: build stopped: subcommand failed.
Created attachment 454570 [details] sh
Created attachment 454572 [details] cpp.gz
Created attachment 454576 [details] llvm.error I set the MAKEOPTS="-j1" and tried again. This time, the error message looks very different. Please check.
Hi Xi, if you want to finish the bootstrap. you can mask this packages ( Not this is temporary solution): >sys-devel/llvm-3.5.2 >sys-devel/clang-3.5.2-r100 >sys-libs/libcxxabi-3.8.1 >sys-libs/libcxx-3.5.2 >sys-libs/libcxx-headers-3.5.1
Add missing info. When I first started building prefix, I hit bug #598336. Then I applied the patch suggested by Emre.
Created attachment 454742 [details] build.log for glib-2.46.2-r1
(In reply to Emre Eryilmaz from comment #4) > Hi Xi, > > if you want to finish the bootstrap. you can mask this packages ( Not this > is temporary solution): > > >sys-devel/llvm-3.5.2 > >sys-devel/clang-3.5.2-r100 > >sys-libs/libcxxabi-3.8.1 > >sys-libs/libcxx-3.5.2 > >sys-libs/libcxx-headers-3.5.1 After I added that mask, building llvm seem passed. But the build failed at building glib.
Created attachment 454892 [details] last 1000k of stage3.log
Created attachment 455124 [details] last 1000 lines of stage3.log tail -n 1000 Gentoo/stage3.log | bzip2 -9 > stage3.log.bz
This is happening for me as well, and it was also reported by another user on IRC.
I've fixed this.