Summary: | sys-libs/compiler-rt-13.0.0 Fails to emerge due to compiler error | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Fabio Coatti <fabio.coatti> |
Component: | Current packages | Assignee: | LLVM support project <llvm> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | klaus.kusche |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Fabio Coatti
2021-10-17 10:41:11 UTC
Created attachment 745434 [details]
build.log
I suggest trying with more vanilla C(XX)FLAGS but this will probably need to go upstream. (In reply to Sam James from comment #2) > I suggest trying with more vanilla C(XX)FLAGS but this will probably need to > go upstream. Let me try that. Likely I'll raise anyway an issue upstream, at least the situation should be handled in a nicer way, but let's see what happens with saner flags :) (In reply to Sam James from comment #2) > I suggest trying with more vanilla C(XX)FLAGS but this will probably need to > go upstream. I've been able to make it work, so I leave it here in case someone hits the same issue. To emerge compiler-rt without errors I had to recompile with "vanilla" compilation flags the clang-related packages: sys-devel/clang sys-devel/clang-runtime sys-devel/clang-common sys-devel/llvm sys-devel/llvm-common I used something like CFLAGS="-O2 -pipe" CXXFLAGS="${CFLAGS}" LDFLAGS="-Wl,--as-needed -O2 -pipe" After this, the process of compiler-rt compilation went fine. So I guess this issue can be closed :) As far as I can tell from the stack backtraces and error messages, I've a very similar problem here. Additionally, I get error messages which indicate corruption of llvm's internal data structures: "corrupted double-linked list" or "corrupted size vs. prev_size" I've rather aggressive CFLAGS in my make.conf: -pipe -march=native -mtune=native -msahf -maccumulate-outgoing-args -flto -fuse-linker-plugin -O3 -fomit-frame-pointer -fsched-pressure -flive-range-shrinkage -fweb -ftracer -fivopts -ftree-loop-im -frename-registers -fstdarg-opt I'll try with less aggressive optimizations... (In reply to Klaus Kusche from comment #5) > I'll try with less aggressive optimizations... Going down to O3 without other optimizations and without lto solved the problem. |