llvm-test configure problem

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

-Tanya

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

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.

Any idea what I am doing wrong? :slight_smile:

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.

Ah.. ok. I don't think its the logic figure out how to access the f2c program, but the nag-fortan compiler. The f2c stuff has always worked, unless its changed since June.

Can whoever added the nag-fortran checks please fix this?

I tried using bash instead of sh, and that worked so I can continue testing. Thanks.

-Tanya

I have some experience (read: a lot) with pesky systems that can't
handle Bash shell commands. I can take a look at the configure tonight
to see if there's anything glaring.

-bw

What's the config.log from this run?

-bw

What's the config.log from this run?

its attached.

-Tanya

config.log (31.1 KB)

Odd...this one seems to indicate that it exitted without error...:frowning:

-bw

What's the config.log from this run?

its attached.

Odd...this one seems to indicate that it exitted without error...:frowning:

Hmm. I think that it does default to bash after all (found something in my .cshrc that was resettting CONFIG_SHELL). Its still an error with /bin/sh.. so it should be fixed, but not a release blocker.

-Tanya

Yeah...and it's one of those situations where I'd have to hack aorund
with the configure script on a SOL box to see what's really
happening...

-bw