[LLVMdev] Re: how to solve following question

John Criswell criswell at cs.uiuc.edu
Tue Dec 2 08:44:01 PST 2003


Dear yueqiang,

	I tracked this down this morning, and it is a bug with our Python code 
that runs the tests.  Essentially what is happening is that the code is 
finding the temporary directory it created the first time it ran the 
tests and believes that there are tests inside of it which it needs to 
run.  It then gets confused and quits.

	This bug only shows up when the source tree and the object tree are the 
same.  If they are different directories, then this error does not occur.

	To work around this, simply remove the llvm/test/tmp directory and 
re-run the tests.

	I'll file a bug report and work on a fix.

	Thanks for finding this.


yue wrote:
> hi,
> when I run 'make ./test qmtest' it displays:
> -----------------------------------------------
> QMTEST_CLASS_PATH=/home/yue/llvm/test/QMTest qmtest -D 
> /home/yue/llvm/test run -O /home/yue/llvm/test/QMTest/expectations.qmr 
> -c "srcroot=/home/yue/llvm" -c "buildroot=/home/yue/llvm" -c 
> "buildtype=Debug" -c "tmpdir=/home/yue/llvm/test/tmp" -c "coresize=0" -c 
> "cc=gcc" -c "cxx=g++" -c 
> "llvmgcc=PATH=/home/yue/llvm/tools/Debug:/home/yue/llvm/tools/Debug:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/yue/bin 
> /home/yue/cfrontend/x86/llvm-gcc//bin/gcc" -c 
> "llvmgxx=PATH=/home/yue/llvm/tools/Debug:/home/yue/llvm/tools/Debug:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/yue/bin 
> /home/yue/cfrontend/x86/llvm-gcc//bin/g++" -c "make=make"
> Traceback (most recent call last):
>   File "/usr/local/lib/qm/qm/test/qmtest.py", line 78, in ?
>     exit_code = command.Execute()
>   File "/lib/qm/qm/test/cmdline.py", line 569, in Execute
>   File "/lib/qm/qm/test/cmdline.py", line 1173, in __ExecuteRun
>   File "/lib/qm/qm/test/database.py", line 1043, in ExpandIds
>   File "/lib/qm/qm/test/suite.py", line 123, in GetAllTestAndSuiteIds
>   File "/home/yue/llvm/test/QMTest/llvmdb.py", line 228, in GetSuite
>     (dirs, files) = self.GetDirsAndFiles (suitepath)
>   File "/home/yue/llvm/test/QMTest/llvmdb.py", line 160, in GetDirsAndFiles
>     tests=os.listdir (dirpath)
> OSError: [Errno 2] No such file or directory: 
> '/home/yue/llvm/test/tmp/tr2003-06-29-IncompleteTDPass/ll'
> make: [qmtest] Error 1 (ignored)
> make: Leaving directory `/home/yue/llvm/test'
> [yue at RH9 llvm]$
> 
> -----------------------------------
> my llvm configure is:
> -------------------------------------
> [yue at RH9 llvm]$ cat ../setenv
> #! /bin/sh
> 
> PATH=/home/yue/llvm/tools/Debug:${PATH}; export PATH
> LLVMGCCDIR=/home/yue/cfrontend/x86/llvm-gcc; export LLVMGCCDIR
> LLVM_LIB_SEARCH_PATH=/home/yue/cfrontend/x86/llvm-gcc/bytecode-libs 
> export LLVM_LIB_SEARCH_PATH
> 
> alias llvmgcc='/home/yue/cfrontend/x86/llvm-gcc/bin/gcc'
> alias llvmg++='/home/yue/cfrontend/x86/llvm-gcc/bin/g++'
> -------------------------------------------
> how to solve it?
> 
> yueqiang

Regards,

John T. Criswell

-- 
*********************************************************************
* John T. Criswell                         Email: criswell at uiuc.edu *
* Research Programmer                                               *
* University of Illinois at Urbana-Champaign                        *
*                                                                   *
* "It's today!" said Piglet. "My favorite day," said Pooh.          *
*********************************************************************





More information about the llvm-dev mailing list