[LLVMdev] problems running test suite (-mllvm -disable-llvm-optzns)

Duncan Sands baldrick at free.fr
Thu Feb 12 05:28:39 PST 2009


Hi,

> 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:

the llvm testsuite (from svn, right?) uses features that are not
available in the 2.5 prerelease candidate.  Use the prerelease
version of llvm too.

Ciao,

Duncan.

> 
> 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.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> 




More information about the llvm-dev mailing list