[LLVMdev] About test suits
Chris Lattner
clattner at apple.com
Thu Jan 13 18:08:26 PST 2011
Please email the list, not me directly.
Try doing a 'make clean' then a 'make VERBOSE=1' in the test-suite directory.
-Chris
On Jan 13, 2011, at 6:04 PM, Qingan Li wrote:
> Hi Chris,
>
> [qali at qali SingleSource]$ 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)
>
> [qali at qali SingleSource]$ make VERBOSE=1
> if [ ! -f UnitTests/Makefile ]; \
> then \
> /home/qali/Src/llvm-2.8/autoconf/mkinstalldirs UnitTests; \
> cp /home/qali/Src/llvm-2.8/projects/test-suite/SingleSource/UnitTests/Makefile UnitTests/Makefile; \
> fi; \
> make -C UnitTests all
> make[1]: Entering directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource/UnitTests'
> for dir in Vector SignlessTypes Threads; do \
> if [ ! -f $dir/Makefile ]; \
> then \
> /home/qali/Src/llvm-2.8/autoconf/mkinstalldirs $dir; \
> cp /home/qali/Src/llvm-2.8/projects/test-suite/SingleSource/UnitTests/$dir/Makefile $dir/Makefile; \
> fi; \
> (make -C $dir all -w) || exit 1; \
> done
> make[2]: Entering directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource/UnitTests/Vector'
> for dir in SSE; do \
> if [ ! -f $dir/Makefile ]; \
> then \
> /home/qali/Src/llvm-2.8/autoconf/mkinstalldirs $dir; \
> cp /home/qali/Src/llvm-2.8/projects/test-suite/SingleSource/UnitTests/Vector/$dir/Makefile $dir/Makefile; \
> fi; \
> (make -C $dir all -w) || exit 1; \
> done
> make[3]: 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[3]: *** [Output/sse.expandfft.bc] Error 1
> make[3]: Leaving directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource/UnitTests/Vector/SSE'
> make[2]: *** [all] Error 1
> make[2]: Leaving directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource/UnitTests/Vector'
> make[1]: *** [all] Error 1
> make[1]: Leaving directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource/UnitTests'
> make: *** [UnitTests/.makeall] Error 2
>
>
> 2011/1/14 Chris Lattner <clattner at apple.com>
>
> 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
>
>
>
>
> --
> Best regards,
>
> Li Qingan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110113/4c874b43/attachment.html>
More information about the llvm-dev
mailing list