[LLVMdev] llvm-test configure problem

Reid Spencer reid at x10sys.com
Thu Nov 3 15:29:14 PST 2005


Tanya Lattner wrote:
> 
> Following the instructions here:
> http://llvm.cs.uiuc.edu/docs/TestingGuide.html#run
> 
> I get an error running configure in the llvm-test directory.
> 
> ./configure 
> --with-llvmgccdir=/localhome/tbrethou/cfrontend/sparc/llvm-gcc/ 
> --with-f2c=/home/vadve/shared/localtools/sparc 
> --with-llvmsrc=/localhome/tbrethou/llvm 
> --with-llvmobj=/localhome/tbrethou/llvm
> 
> Error:
> [cut lots of config output]
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking for f2c bin/lib/include locations... checking for nag-fortran 
> bin/lib/include locations... ./configure: bad substitution
> 
> Any idea what I am doing wrong? :)

Nothing. The test is coded incorrectly. Or at least the shell being used 
doesn't like it.  The "bad substitution" message comes from the shell executing 
the configure script while its trying to figure out how to access the f2c 
program.   I take it you're running this on a sparc machine.  The logic seems 
to work okay on Linux but it uses bash. Probably there is some bash specific 
logic in the configure script that sh doesn't like.

Reid.




More information about the llvm-dev mailing list