[LLVMdev] About test suits

Qingan Li ww345ww at gmail.com
Thu Jan 13 03:03:37 PST 2011


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

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110113/eb8a2b7d/attachment.html>


More information about the llvm-dev mailing list