I compiled LLVM with this script:
I'm now trying to compile llvm-gcc with
----------------------------
make CC=gcc-4.2 CC_FOR_BUILD=gcc-4.2 CXX=g++-4.2 CXX_FOR_BUILD=g++-4.2
----------------------------
This did produce the same error.
Hello, Holger.
This did produce the same error.
What if you configure llvm-gcc with --disable-shared?
Holger Schurig wrote:
[snip]
../../../../llvm-gcc/libstdc++-v3/src/istream.cc:495: internal compiler error: Segmentation fault
I encountered the same error and the nice people from the llvm irc-channel suggested the attached patch. It enables compiling llvm-gcc for me, but i have not yet done any further testing and i also have no idea if this is the right way to fix the problem.
Hope that helps,
Marco
llvm-LCSSA-segfault-fix.patch (748 Bytes)
I encountered the same error and the nice people from the llvm
irc-channel suggested the attached patch. It enables compiling llvm-gcc
for me, but i have not yet done any further testing and i also have no
idea if this is the right way to fix the problem.
Nice. I will give it a try. I was trying to reduce a test case, but it
is a bit hard. I have a cpp that crashes cc1plus, but the resulting
.ll works opt!
Hope that helps,
Marco
Cheers,
Rafael
Nice. I will give it a try. I was trying to reduce a test case, but it
is a bit hard. I have a cpp that crashes cc1plus, but the resulting
.ll works opt!
I mean that
opt -std-compile-opts test.ll
works...
Hope that helps,
It works for me.
Marco
Thanks,
> ../../../../llvm-gcc/libstdc++-v3/src/istream.cc:495:
> internal compiler error: Segmentation faultI encountered the same error and the nice people from the llvm
irc-channel suggested the attached patch. It enables compiling
llvm-gcc for me, but i have not yet done any further testing
and i also have no idea if this is the right way to fix the
problem.
Thank you, this also fixed my problem.
Nice. I will give it a try. I was trying to reduce a test case, but it
is a bit hard. I have a cpp that crashes cc1plus, but the resulting
.ll works opt!
A somewhat reduced test is attached in case someone wants to reduce it further.
Cheers,
test.cc (6.45 KB)