About test suits

I have built and configured the test suits as told at http://llvm.org/docs/TestingGuide.html#testsuite.
The llvm is built with configuration:

SRC_DIR/configure --prefix=INS_DIR --enable-debug-runtime --disable-optimized --enable-debug-symbols --enable-assertions

This configuration is used again in the re-configure process. However, after the re-configure process, the following “make” failed:

qali@qali MultiSource]$ make
make[1]: Entering directory /home/qali/build/llvm-2.8-rev/projects/test-suite/MultiSource/Applications' make[2]: Entering directory /home/qali/build/llvm-2.8-rev/projects/test-suite/MultiSource/Applications/Burg’
/home/qali/build/llvm-2.8-rev/Debug+Asserts/bin/llvm-as Output/be.ll -o Output/be.bc
/home/qali/build/llvm-2.8-rev/Debug+Asserts/bin/llvm-as: Output/be.ll:1:2: error: expected top-level entity
.file “/home/qali/Src/llvm-2.8/projects/test-suite/MultiSource/Applications/Burg/be.c”
^
make[2]: *** [Output/be.bc] Error 1
make[2]: Leaving directory /home/qali/build/llvm-2.8-rev/projects/test-suite/MultiSource/Applications/Burg' make[1]: *** [Burg/.makeall] Error 2 make[1]: Leaving directory /home/qali/build/llvm-2.8-rev/projects/test-suite/MultiSource/Applications’
make: *** [Applications/.makeall] Error 2
[qali@qali MultiSource]$ tree
.

– Applications

– Burg

– Makefile
-- Output – be.ll
-- Makefile -- Makefile – Makefile.multisrc

3 directories, 5 files
[qali@qali MultiSource]$ cd …
[qali@qali test-suite]$ tree
.

– config.log
– config.status
– External

– Makefile
– Makefile.external
– Povray
-- Makefile -- skidmarks10 – Makefile
-- SPEC -- CFP2000 – Makefile
– CFP2006
-- Makefile -- CFP95 – Makefile
– CINT2000
-- Makefile -- CINT2006 – Makefile
– CINT95
-- Makefile -- Makefile -- Makefile.spec -- Makefile.spec2000 -- Makefile.spec2006 -- Makefile.spec95 – Makefile.spec.config
– Makefile
– Makefile.common
– Makefile.config
– Makefile.f2c
– Makefile.nagfortran
– Makefile.programs
– Makefile.tests
– mklib
– MultiSource
– Applications

– Burg

– Makefile
-- Output – be.ll
-- Makefile -- Makefile – Makefile.multisrc
– SingleSource
– Makefile
– Makefile.singlesrc
-- UnitTests -- Makefile – Vector
– Makefile
-- SSE -- Makefile – Output
-- sse.expandfft.ll -- TEST.aa.Makefile -- TEST.aa.report -- TEST.buildrepo.Makefile -- TEST.example.Makefile -- TEST.jit.Makefile -- TEST.jit.report -- TEST.nightly.Makefile -- TEST.nightly.report -- TEST.typesafe.Makefile – TEST.vtl.Makefile

19 directories, 47 files

I have built and configured the test suits as told at http://llvm.org/docs/TestingGuide.html#testsuite.
The llvm is built with configuration:

This looks like your llvm-gcc is not generating proper .ll files. Please make sure that “llvm-gcc -v” includes “(LLVM build)”.

-Chris