[LLVMdev] About test suits

Chris Lattner clattner at apple.com
Thu Jan 13 13:13:08 PST 2011


On Jan 13, 2011, at 3:03 AM, Qingan Li wrote:

> Hi sir,
> I have built the test suits in following steps:
> 0. $cd LLVM_GCC_DIR;            $gunzip --stdout llvm-gcc-4.2-version-platform.tar.gz | tar -xvf -
> 1. $cd SRC_DIR/llvm-2.8/projects
> 2. $svn co http://llvm.org/svn/llvm-project/test-suite/trunk test-suite
> 3.$cd OBJ_DIR; 
> 4. $SRC_DIR/configure --prefix=INS_DIR --enable-debug-runtime  --disable-optimized --enable-debug-symbols --enable-assertions --with-llvmgccdir=LLVM_GCC_DIR
> 5. $make.
> 6. $cd OBJ_DIR/projects/test_suits;             $make
> 
> Then the following error ocurred. 
> [qali at qali test-suite]$ make
> make[1]: Entering directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource'
> make[2]: Entering directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource/UnitTests'
> make[3]: Entering directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource/UnitTests/Vector'
> make[4]: Entering directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource/UnitTests/Vector/SSE'
> /home/qali/build/llvm-2.8-rev/Debug+Asserts/bin/llvm-as Output/sse.expandfft.ll -o Output/sse.expandfft.bc
> /home/qali/build/llvm-2.8-rev/Debug+Asserts/bin/llvm-as: Output/sse.expandfft.ll:1:2: error: expected top-level entity
> 	.file	"/home/qali/Src/llvm-2.8/projects/test-suite/SingleSource/UnitTests/Vector/SSE/sse.expandfft.c"
> 	^
> make[4]: *** [Output/sse.expandfft.bc] Error 1
> make[4]: Leaving directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource/UnitTests/Vector/SSE'
> make[3]: *** [all] Error 1
> make[3]: Leaving directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource/UnitTests/Vector'
> make[2]: *** [all] Error 1
> make[2]: Leaving directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource/UnitTests'
> make[1]: *** [UnitTests/.makeall] Error 2
> make[1]: Leaving directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource'
> make: *** [SingleSource/.makeall] Error 2

What does this print if you use "make VERBOSE=1"?

-Chris

> 
> As told by Chris Lattner, I tested my llvm-gcc like this:
> [qali at qali test-suite]$ llvm-gcc -v
> Using built-in specs.
> Target: x86_64-unknown-linux-gnu
> Configured with: /home/nicholas/2.8-final/llvmgcc42-2.8.src/configure --prefix=/home/nicholas/2.8-final/Phase2/Release/llvmgcc42-2.8.install --program-prefix=llvm- --enable-llvm=/home/nicholas/2.8-final/Phase2/Release/llvmCore-2.8.obj --disable-multilib --enable-languages=c,c++,fortran
> Thread model: posix
> gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2.8)
> 
> I also tried reconfigure llvm from OBJ_DIR, by re-execute step 4 above. But, it did not work. 
> 
> I used 'tree' in the SingleSource directory:
> [qali at qali SingleSource]$ tree
> .
> |-- Makefile
> |-- Makefile.singlesrc
> `-- UnitTests
>     |-- Makefile
>     `-- Vector
>         |-- Makefile
>         `-- SSE
>             |-- Makefile
>             `-- Output
>                 `-- sse.expandfft.ll
> 
> 4 directories, 6 files
> 
> 
> I need help to build the test suits .
> 
> 
> 
> -- 
> Best regards,
> 
> Li Qingan
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110113/48bd2b05/attachment.html>


More information about the llvm-dev mailing list