[LLVMdev] spec tests + PWD=

Chris Lattner clattner at apple.com
Sun Aug 30 20:25:43 PDT 2009


Hi David,

It looks like you added the PWD= magic to Makefile.spec.  It is  
preventing me from running bugpoint on the desktop, with errors like  
this:

/Users/sabre/llvm/projects/llvm-test/External/SPEC/Sandbox.sh bugpoint- 
train Output/176.gcc.bugpoint-opt /Users/sabre/cvs/benchmarks/ 
speccpu2000/benchspec/CINT2000/176.gcc/data/train/input/ \
	    PWD=/Volumes/Data/Users/sabre/llvm/projects/llvm-test/External/ 
SPEC/CINT2000/176.gcc /Users/sabre/llvm/Debug/bin/bugpoint -llc- 
safe ../176.gcc.noopt-llvm.bc -std-compile-opts  \
	    -append-exit-code   -Xlinker=-lm  -input=/dev/null -output=../ 
176.gcc.out-nat -timeout=500 --tool-args -asm-verbose=false -O3 --args  
-- cp-decl.i -o - -quiet
Running: PWD=/Volumes/Data/Users/sabre/llvm/projects/llvm-test/ 
External/SPEC/CINT2000/176.gcc /Users/sabre/llvm/Debug/bin/bugpoint - 
llc-safe ../176.gcc.noopt-llvm.bc -std-compile-opts -append-exit-code - 
Xlinker=-lm -input=/dev/null -output=../176.gcc.out-nat -timeout=500 -- 
tool-args -asm-verbose=false -O3 --args -- cp-decl.i -o - -quiet
/Users/sabre/llvm/projects/llvm-test/External/SPEC/Sandbox.sh: line  
36: /Volumes/Data/Users/sabre/llvm/projects/llvm-test/External/SPEC/ 
CINT2000/176.gcc/Output/bugpoint-train/PWD=/Volumes/Data/Users/sabre/ 
llvm/projects/llvm-test/External/SPEC/CINT2000/176.gcc: No such file  
or directory
/Users/sabre/llvm/projects/llvm-test/External/SPEC/Sandbox.sh: line  
36: exec: /Volumes/Data/Users/sabre/llvm/projects/llvm-test/External/ 
SPEC/CINT2000/176.gcc/Output/bugpoint-train/PWD=/Volumes/Data/Users/ 
sabre/llvm/projects/llvm-test/External/SPEC/CINT2000/176.gcc: cannot  
execute: No such file or directory

I think this comes down to SPEC/Sandbox.sh turning around and exec'ing  
its arguments, which include the PWD= line.  This is failing, but I'm  
not sure why (maybe it's because I'm using tcsh as my shell, not  
bash).  Is there a way to fix this without reverting the patch?

-Chris



More information about the llvm-dev mailing list