017667932270
2010-Oct-18 14:57 UTC
[LLVMdev] run into a problem with a version of GCC not listed here
dear LLVM developer team, referring to your notes on the web-page: http://llvm.org/docs/GettingStarted.html i like to report, some problems with LLVM: problem I: ------------ on my linux machine (RHEL 4.8 ) the compilation of the LLVM compiler suit works, but if i start to compile my C source code with clang and llc, the compiler (llc) abort with: Segmentation fault 0 llc 0x0883b510 Stack dump: 0. Program arguments: /appl/c_compiler/xpic/llvm-2.7/bin/llc -O2 -f -march=xpic new_main.bc -o new_main.s 1. Running pass 'xpic DAG->DAG Pattern Instruction Selection' on function '@fib_recursive' make[1]: *** [new_main.s] Segmentation fault question: what does that mean? and how i can get more error information? NOTE: - i compiled the LLVM tools with gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-11) and/or gcc (GCC) 4.2.1 (Based on Apple Inc. build 5649) on a 32bit Intel CPU with Red Hat linux RHEL 4.8 the results are the same! problem II: i also try to compile the LLVM tools with GCC 4.5.0 on a RHEL 4.8 machine the compilation about with the message: llvm[3]: Compiling xpicDelaySlotFiller.cpp for Release build /local/build/llvm/xpic_tools_src/llvm/lib/Target/xpic/xpicDelaySlotFiller.cpp: In member function âbool<unname d>::Filler::isDataDependence(llvm::MachineInstr&)â: /local/build/llvm/xpic_tools_src/llvm/lib/Target/xpic/xpicDelaySlotFiller.cpp:149:77: error: âprintfâ was no t declared in this scope /bin/rm: cannot remove `/local/build/llvm/xpic_tools_src/llvm-objects/lib/Target/xpic/Release/xpicDelaySlotFille r.d.tmp': No such file or directory make[3]: *** [/local/build/llvm/xpic_tools_src/llvm-objects/lib/Target/xpic/Release/xpicDelaySlotFiller.o] Error question: what does that mean? some good news: i successfully build the LLVM project on a 32bit RHEL 5.5 machine using gcc version: gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48) best regards jurij Unterwegs über Ihre E-Mails informiert mit der kostenlosen SMS-Benachrichtigung von o2! Mehr Infos unter http://www.o2online.de/goto/benachrichtigung
Török Edwin
2010-Oct-18 15:10 UTC
[LLVMdev] run into a problem with a version of GCC not listed here
On Mon, 18 Oct 2010 16:57:02 +0200 (CEST) "017667932270" <jurij at o2online.de> wrote:> dear LLVM developer team, > > referring to your notes on the web-page: > http://llvm.org/docs/GettingStarted.html > > i like to report, some problems with LLVM: > > problem I: > ------------ > on my linux machine (RHEL 4.8 ) the compilation of the LLVM compiler > suit works, but if i start to compile my C source code with clang and > llc, the compiler (llc) abort with: Segmentation fault > > 0 llc 0x0883b510 > Stack dump: > 0. Program arguments: /appl/c_compiler/xpic/llvm-2.7/bin/llc -O2 > -f -march=xpic new_main.bc -o new_main.s 1. Running pass 'xpic > DAG->DAG Pattern Instruction Selection' on function '@fib_recursive' > make[1]: *** [new_main.s] Segmentation faultDid you tell clang to generate code for xpic (instead of x86?). --Edwin
Anton Korobeynikov
2010-Oct-18 15:45 UTC
[LLVMdev] run into a problem with a version of GCC not listed here
> llvm[3]: Compiling xpicDelaySlotFiller.cpp for Release build > /local/build/llvm/xpic_tools_src/llvm/lib/Target/xpic/xpicDelaySlotFiller.cpp: In member function âbool<unname d>::Filler::isDataDependence(llvm::MachineInstr&)â: > /local/build/llvm/xpic_tools_src/llvm/lib/Target/xpic/xpicDelaySlotFiller.cpp:149:77: error: âprintfâ was no t declared in this scope > /bin/rm: cannot remove `/local/build/llvm/xpic_tools_src/llvm-objects/lib/Target/xpic/Release/xpicDelaySlotFille r.d.tmp': No such file or directory > make[3]: *** [/local/build/llvm/xpic_tools_src/llvm-objects/lib/Target/xpic/Release/xpicDelaySlotFiller.o] ErrorThere is no xpic target in LLVM sources. You should ask that person, whom you obtained sources from. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University