Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 601046 - llvm-3.8.1 build failed on Sierra using prefix
Summary: llvm-3.8.1 build failed on Sierra using prefix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-28 05:21 UTC by Xi
Modified: 2016-12-20 14:43 UTC (History)
0 users

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


Attachments
sh (ParallelCG-bf30a4.sh,1005 bytes, text/plain)
2016-11-28 05:21 UTC, Xi
Details
cpp.gz (ParallelCG-bf30a4.cpp.gz,708.12 KB, application/x-gzip)
2016-11-28 05:26 UTC, Xi
Details
llvm.error (llvm.error,16.19 KB, text/plain)
2016-11-28 08:19 UTC, Xi
Details
build.log for glib-2.46.2-r1 (build.log.bz2,16.37 KB, application/x-bzip2)
2016-11-30 05:50 UTC, Xi
Details
last 1000k of stage3.log (stage3.log.bz2,31.52 KB, application/x-bzip2)
2016-12-02 08:52 UTC, Xi
Details
last 1000 lines of stage3.log (stage3.log.bz,19.67 KB, application/x-bzip2)
2016-12-05 03:06 UTC, Xi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xi 2016-11-28 05:21:01 UTC
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.
Comment 1 Xi 2016-11-28 05:21:32 UTC
Created attachment 454570 [details]
sh
Comment 2 Xi 2016-11-28 05:26:21 UTC
Created attachment 454572 [details]
cpp.gz
Comment 3 Xi 2016-11-28 08:19:05 UTC
Created attachment 454576 [details]
llvm.error

I set the MAKEOPTS="-j1" and tried again. This time, the error message looks very different. Please check.
Comment 4 Emre Eryilmaz 2016-11-29 11:23:10 UTC
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
Comment 5 Xi 2016-11-30 02:05:43 UTC
Add missing info.

When I first started building prefix, I hit bug #598336. Then I applied the patch suggested by Emre.
Comment 6 Xi 2016-11-30 05:50:13 UTC
Created attachment 454742 [details]
build.log for glib-2.46.2-r1
Comment 7 Xi 2016-11-30 05:51:47 UTC
(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.
Comment 8 Xi 2016-12-02 08:52:12 UTC
Created attachment 454892 [details]
last 1000k of stage3.log
Comment 9 Xi 2016-12-05 03:06:42 UTC
Created attachment 455124 [details]
last 1000 lines of stage3.log

tail -n 1000 Gentoo/stage3.log | bzip2 -9 > stage3.log.bz
Comment 10 iloveosxzfs 2016-12-05 14:32:06 UTC
This is happening for me as well, and it was also reported by another user on IRC.
Comment 11 Fabian Groffen gentoo-dev 2016-12-20 14:43:10 UTC
I've fixed this.