[LLVMdev] problems running test suite (-mllvm -disable-llvm-optzns)
Jay Foad
jay.foad at gmail.com
Thu Feb 12 04:49:44 PST 2009
I'm trying to run some of the test suite using the instructions here:
http://llvm.org/docs/TestingGuide.html#quicktestsuite
I've built llvm myself, but I'm using pre-built binaries of llvm-gcc
(from http://llvm.org/prereleases/2.5/llvm-gcc4.2-2.5-x86-linux-RHEL4.tar.gz).
Here's what happens:
foad at debian:~/svn/llvm-project/test-suite/trunk$ ./configure
--with-llvmgccdir=/home/foad/llvm/llvm-gcc4.2-2.5-x86-linux-RHEL4
--with-llvmobj=/home/foad/llvm/objdir-svn
--with-llvmsrc=/home/foad/svn/llvm-project/llvm/trunk
[...]
foad at debian:~/svn/llvm-project/test-suite/trunk$ make -C
MultiSource/Applications/minisat/
make: Entering directory
`/home/foad/svn/llvm-project/test-suite/trunk/MultiSource/Applications/minisat'
Compiling Main.cpp to Output/Main.bc
cc1plus: warning: unrecognized gcc debugging option: i
cc1plus: warning: unrecognized gcc debugging option: s
cc1plus: warning: unrecognized gcc debugging option: b
cc1plus: warning: unrecognized gcc debugging option: l
cc1plus: warning: unrecognized gcc debugging option: e
cc1plus: warning: unrecognized gcc debugging option: -
cc1plus: warning: unrecognized gcc debugging option: l
cc1plus: warning: unrecognized gcc debugging option: l
cc1plus: warning: unrecognized gcc debugging option: m
cc1plus: warning: unrecognized gcc debugging option: -
cc1plus: warning: unrecognized gcc debugging option: o
cc1plus: warning: unrecognized gcc debugging option: t
cc1plus: warning: unrecognized gcc debugging option: z
cc1plus: warning: unrecognized gcc debugging option: n
cc1plus: warning: unrecognized gcc debugging option: s
cc1plus: Unknown command line argument '-mtune=generic'. Try: 'cc1plus --help'
make: [Output/Main.bc] Error 1 (ignored)
Compiling Solver.cpp to Output/Solver.bc
cc1plus: warning: unrecognized gcc debugging option: i
cc1plus: warning: unrecognized gcc debugging option: s
cc1plus: warning: unrecognized gcc debugging option: b
cc1plus: warning: unrecognized gcc debugging option: l
cc1plus: warning: unrecognized gcc debugging option: e
cc1plus: warning: unrecognized gcc debugging option: -
cc1plus: warning: unrecognized gcc debugging option: l
cc1plus: warning: unrecognized gcc debugging option: l
cc1plus: warning: unrecognized gcc debugging option: m
cc1plus: warning: unrecognized gcc debugging option: -
cc1plus: warning: unrecognized gcc debugging option: o
cc1plus: warning: unrecognized gcc debugging option: t
cc1plus: warning: unrecognized gcc debugging option: z
cc1plus: warning: unrecognized gcc debugging option: n
cc1plus: warning: unrecognized gcc debugging option: s
cc1plus: Unknown command line argument '-mtune=generic'. Try: 'cc1plus --help'
make: [Output/Solver.bc] Error 1 (ignored)
/home/foad/llvm/objdir-svn/Debug/bin/llvm-ld -link-as-library
-disable-opt Output/Main.bc Output/Solver.bc -o
Output/minisat.linked.rbc
llvm-ld: error: Cannot find linker input 'Output/Main.bc'
make: [Output/minisat.linked.rbc] Error 1 (ignored)
/home/foad/llvm/objdir-svn/Debug/bin/opt -std-compile-opts
-info-output-file=/home/foad/svn/llvm-project/test-suite/trunk/MultiSource/Applications/minisat/Output/minisat.linked.bc.info
-stats -time-passes Output/minisat.linked.rbc -o
Output/minisat.linked.bc -f
/home/foad/llvm/objdir-svn/Debug/bin/opt: could not open file
make: [Output/minisat.linked.bc] Error 1 (ignored)
[... lots more errors like this ...]
I guess this is because the test suite is trying to run "llvm-gcc
-mllvm -disable-llvm-optzns", which never seems to work, because
llvm-gcc mangles the command line before it gets to cc1plus.
Is it just me having this problem?
How can I fix it?
Thanks,
Jay.
More information about the llvm-dev
mailing list