On Apr 4, 8:06 pm, heisenbug <ggr... at gmail.com> wrote:> On Apr 4, 7:51 pm, Török Edwin <edwinto... at gmail.com> wrote: > > > > > heisenbug wrote: > > > On Apr 3, 10:53 pm, Gabor Greif <ga... at mac.com> wrote: > > > ... > > > >>> 3) Make sure that make check and some reasonable subset of llvm-test > > >>> passes with this patch :) > > > >> I have never run llvm-test in the past. Is it just checking it out and > > >> following a readme? > > > > After building an llvm-gcc (4.2.1), see below, I tried running this. I > > > configured: > > > > ./configure --with-llvmsrc=$LLVM_TOP/llvm --with-llvmobj=$LLVM_TOP/ > > > llvm --srcdir=$LLVM_TOP/test-suite --with-llvmgccdir=$LLVM_TOP/install > > > --with-externals=$LLVM_TOP/externals > > > > Then 'make', it complained that some .bc file could not be made. > > > > Then I put $LLVM_TOP/install and $LLVM_TOP/llvm/Release/bin im my > > > path, but now > > > > checking for C++ compiler default output file name... configure: > > > error: C++ compiler cannot create executables > > > > invoking g++ directly gives: > > > > ggreif$ g++ jj.cpp > > > /usr/bin/ld: can't locate file for: -lstdc++ > > > > I am stuck. What can I do to run the tests? > > > Did you do a make install? It is probably searching for libstdc++ from > > the g++ you just built. > > yes. into $LLVM_TOP/install > > > I usually add a "--program-prefix=llvm-" to configure, and then I can > > just do a make install into /usr/local without > > interfering with system's gcc/g++. > > Okay, will try this route > > > > > But for running llvm-test I think you should have system's gcc/g++ on > > your path and not llvm-gcc/llvm-g++. > > If I understand correctly, the purpose of the testsuite is to test > > system gcc/g++ vs. LLC vs. CBE vs. JIT. > > point taken. thanks!Whatever I try I get something like this: ggreif$ cd MultiSource/ ggreif$ make make[2]: *** No rule to make target `Output/be.bc', needed by `Output/ burg.linked.rbc'. Stop. make[1]: *** [Burg/.makeall] Error 2 make: *** [Applications/.makeall] Error 2 What can this be?> > > > > Best regards, > > --Edwin > > _______________________________________________ > > LLVM Developers mailing list > > LLVM... at cs.uiuc.edu http://llvm.cs.uiuc.eduhttp://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > _______________________________________________ > LLVM Developers mailing list > LLVM... at cs.uiuc.edu http://llvm.cs.uiuc.eduhttp://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
heisenbug wrote:> Whatever I try I get something like this: > > ggreif$ cd MultiSource/ > ggreif$ make > make[2]: *** No rule to make target `Output/be.bc', needed by `Output/ > burg.linked.rbc'. Stop. > make[1]: *** [Burg/.makeall] Error 2 > make: *** [Applications/.makeall] Error 2 > > What can this be? >I have seen that error the first time I tried using llvm-test, but then the error just went away. I forgot why exactly :( I have the testsuite in llvm/trunk/projects/llvm-test. Then try to rerun the toplevel configure, it will configure in llvm-test too. Best regards, --Edwin
On Fri, 4 Apr 2008, heisenbug wrote:>> point taken. thanks! > > > Whatever I try I get something like this: > > ggreif$ cd MultiSource/ > ggreif$ make > make[2]: *** No rule to make target `Output/be.bc', needed by `Output/ > burg.linked.rbc'. Stop. > make[1]: *** [Burg/.makeall] Error 2 > make: *** [Applications/.makeall] Error 2This is the wonderful indicator that the llvm configure script didn't find llvm-gcc. Make sure that llvm-gcc is in your path, and the rerun the llvm configure script. llvm-test should magically start working. -Chris -- http://nondot.org/sabre/ http://llvm.org/
On Apr 4, 10:05 pm, Chris Lattner <sa... at nondot.org> wrote:> On Fri, 4 Apr 2008, heisenbug wrote: > >> point taken. thanks! > > > Whatever I try I get something like this: > > > ggreif$ cd MultiSource/ > > ggreif$ make > > make[2]: *** No rule to make target `Output/be.bc', needed by `Output/ > > burg.linked.rbc'. Stop. > > make[1]: *** [Burg/.makeall] Error 2 > > make: *** [Applications/.makeall] Error 2 > > This is the wonderful indicator that the llvm configure script didn't find > llvm-gcc. Make sure that llvm-gcc is in your path, and the rerun the llvm > configure script. llvm-test should magically start working.Hmmm, yes, it did. BUT... it is still a complete chaos. Here is the nightly report: Program | GCCAS Bytecode LLC compile LLC-BETA compile JIT codegen | GCC CBE LLC LLC-BETA JIT | GCC/ CBE GCC/LLC GCC/LLC-BETA LLC/LLC-BETA SignlessTypes/cast | 0.0690 * * * * | 0.03 * * * * | n/a n/a n/a n/a SignlessTypes/cast-bug | 0.0160 * * * * | 0.00 * * * * | n/a n/a n/a n/a SignlessTypes/cast2 | 0.0124 * * * * | 0.00 * * * * | n/a n/a n/a n/a SignlessTypes/ccc | 0.0148 * * * * | 0.00 * * * * | n/a n/a n/a n/a SignlessTypes/div | 0.0298 * * * * | 0.00 * * * * | n/a n/a n/a n/a SignlessTypes/factor | 0.0354 * * * * | 0.00 * * * * | n/a n/a n/a n/a SignlessTypes/rem | 0.2015 * * * * | 0.00 * * * * | n/a n/a n/a n/a SignlessTypes/shr | 0.0278 * * * * | 0.00 * * * * | n/a n/a n/a n/a Vector/SSE/sse.expandfft | 0.1480 8592 0.1545 * * | 0.60 0.85 0.52 * 0.68 | 0.71 1.15 n/a n/a Vector/SSE/sse.isamax | 0.0586 3500 0.0553 * * | 0.00 0.00 0.00 * 0.08 | - - n/a n/a Vector/SSE/sse.shift | 0.0145 980 0.0170 * * | 0.00 * 0.00 * 0.04 | n/a - n/a n/a Vector/SSE/sse.stepfft | 0.1606 9776 0.1771 * * | 0.84 0.98 0.65 * 0.85 | 0.86 1.29 n/a n/a Vector/build | 0.0169 * * * * | 0.00 * * * * | n/a n/a n/a n/a Vector/build2 | 0.0423 * * * * | 1.35 * * * * | n/a n/a n/a n/a Vector/divides | 0.0204 * * * * | 0.00 * * * * | n/a n/a n/a n/a Vector/multiplies | 0.0505 * * * * | 9.40 * * * * | n/a n/a n/a n/a Vector/simple | 0.0331 * * * * | 0.00 * * * * | n/a n/a n/a n/a Vector/sumarray | 0.0228 * * * * | 0.00 * * * * | n/a n/a n/a n/a Vector/sumarray-dbl | 0.0241 * * * * | 0.00 * * * * | n/a n/a n/a n/a A typical failure is logged thus: /Users/ggreif/llvm/Debug/bin/llvm-ld -L/lib/gcc/i686-apple- darwin8.11.1/ -L/lib Output/build.linked.bc -lc -lcrtend -o Output/build.llvm llvm-ld: error: Cannot find library 'crtend' make[3]: [Output/build.llvm.bc] Error 1 (ignored) wc: Output/build.llvm.bc: open: No such file or directory /Users/ggreif/llvm/Debug/bin/llc -f Output/build.llvm.bc -o Output/ build.llc.s /Users/ggreif/llvm/Debug/bin/llc: bitcode didn't read correctly. Reason: could not open file make[3]: [Output/build.llc.s] Error 1 (ignored) gcc Output/build.llc.s -o Output/build.llc -lm -mdynamic-no-pic - fomit-frame-pointer i686-apple-darwin8-gcc-4.0.1: Output/build.llc.s: No such file or directory make[3]: [Output/build.llc] Error 1 (ignored) /Users/ggreif/test-suite/RunSafely.sh 500 0 /dev/null Output/build.out- llc Output/build.llc /Users/ggreif/test-suite/DiffOutput.sh "/Users/ggreif/llvm/Debug/bin/ fpcmp " llc build ******************** TEST (llc) 'build' FAILED! ******************** Execution Context Diff: /Users/ggreif/llvm/Debug/bin/fpcmp: FP Comparison failed, not a numeric difference between '1' and '/' ******************** TEST (llc) 'build' **************************** rm -f Output/build.exe-llc cp Output/build.diff-llc Output/build.exe-llc cp: Output/build.diff-llc: No such file or directory make[3]: [Output/build.exe-llc] Error 1 (ignored) head -n 100 Output/build.exe-llc >> Output/ build.nightly.llc.report.txt head: Output/build.exe-llc: No such file or directory make[3]: [Output/build.nightly.llc.report.txt] Error 1 (ignored) /Users/ggreif/test-suite/RunSafely.sh 500 0 /dev/null Output/build.out- jit /Users/ggreif/llvm/Debug/bin/lli -force-interpreter=false -- disable-core-files -time-passes -stats -info-output-file=/Users/ggreif/ test-suite/SingleSource/UnitTests/Vector/Output/build.out-jit.info Output/build.llvm.bc /Users/ggreif/test-suite/DiffOutput.sh "/Users/ggreif/llvm/Debug/bin/ fpcmp " jit build ******************** TEST (jit) 'build' FAILED! ******************** Execution Context Diff: /Users/ggreif/llvm/Debug/bin/fpcmp: FP Comparison failed, not a numeric difference between '1' and '/' ******************** TEST (jit) 'build' **************************** rm -f Output/build.exe-jit cp Output/build.diff-jit Output/build.exe-jit cp: Output/build.diff-jit: No such file or directory make[3]: [Output/build.exe-jit] Error 1 (ignored) head -n 100 Output/build.exe-jit >> Output/ build.nightly.jit.report.txt head: Output/build.exe-jit: No such file or directory make[3]: [Output/build.nightly.jit.report.txt] Error 1 (ignored) /Users/ggreif/llvm/Debug/bin/llc -march=c Output/build.llvm.bc -o Output/build.cbe.c -f /Users/ggreif/llvm/Debug/bin/llc: bitcode didn't read correctly. Reason: could not open file make[3]: [Output/build.cbe.c] Error 1 (ignored) gcc Output/build.cbe.c -o Output/build.cbe -O3 -fno-strict-aliasing -fno-inline -mdynamic-no-pic -fomit-frame-pointer -lcrtend i686-apple-darwin8-gcc-4.0.1: Output/build.cbe.c: No such file or directory make[3]: [Output/build.cbe] Error 1 (ignored) /Users/ggreif/test-suite/RunSafely.sh 500 0 /dev/null Output/build.out- cbe Output/build.cbe /Users/ggreif/test-suite/DiffOutput.sh "/Users/ggreif/llvm/Debug/bin/ fpcmp " cbe build ******************** TEST (cbe) 'build' FAILED! ******************** Execution Context Diff: /Users/ggreif/llvm/Debug/bin/fpcmp: FP Comparison failed, not a numeric difference between '1' and '/' ******************** TEST (cbe) 'build' **************************** rm -f Output/build.exe-cbe cp Output/build.diff-cbe Output/build.exe-cbe cp: Output/build.diff-cbe: No such file or directory make[3]: [Output/build.exe-cbe] Error 1 (ignored) head -n 100 Output/build.exe-cbe >> Output/ build.nightly.cbe.report.txt head: Output/build.exe-cbe: No such file or directory make[3]: [Output/build.nightly.cbe.report.txt] Error 1 (ignored) cat Output/build.nightly.compile.report.txt Output/ build.nightly.nat.report.txt Output/build.nightly.llc.report.txt Output/build.nightly.jit.report.txt Output/ build.nightly.cbe.report.txt > Output/build.nightly.report.txt --------------------------------------------------------------->>> ========= '/SingleSource/UnitTests/Vector/build' Program--------------------------------------------------------------- TEST-PASS: compile /SingleSource/UnitTests/Vector/build TEST-RESULT-compile: Total Execution Time: 0.0169 seconds (0.0169 wall clock) TEST-RESULT-compile: TEST-RESULT-nat-time: program 0.000000 TEST-FAIL: llc /SingleSource/UnitTests/Vector/build TEST-FAIL: jit /SingleSource/UnitTests/Vector/build TEST-FAIL: cbe /SingleSource/UnitTests/Vector/build There still seem to be failures like: make[3]: *** No rule to make target `Output/tls.linked.rbc', needed by `Output/tls.linked.bc'. Stop. make[2]: *** [test] Error 1 make[1]: *** [UnitTests/.maketest] Error 2 make: *** [SingleSource/.maketest] Error 2 pixxi:~/test-suite ggreif$ make TEST=nightly report make -j1 TEST=nightly 2>&1 | tee report.nightly.raw.out --------------------------------------------------------------->>> ========= '/SingleSource/UnitTests/Vector/SSE/sse.expandfft' Program--------------------------------------------------------------- TEST-PASS: compile /SingleSource/UnitTests/Vector/SSE/sse.expandfft TEST-RESULT-compile: Total Execution Time: 0.1480 seconds (0.1480 wall clock) TEST-RESULT-compile: 8592 Output/sse.expandfft.llvm.bc TEST-RESULT-nat-time: program 0.600000 TEST-PASS: llc /SingleSource/UnitTests/Vector/SSE/sse.expandfft TEST-RESULT-llc: Total Execution Time: 0.1545 seconds (0.8787 wall clock) TEST-RESULT-llc-time: program 0.520000 TEST-PASS: jit /SingleSource/UnitTests/Vector/SSE/sse.expandfft TEST-RESULT-jit-time: program 0.680000 TEST-RESULT-jit-comptime: TEST-PASS: cbe /SingleSource/UnitTests/Vector/SSE/sse.expandfft TEST-RESULT-cbe-time: program 0.850000 Looks like I had good reason not running this ever before. For my sanity's sake... :-) Cheers, Gabor> > -Chris > > --http://nondot.org/sabre/http://llvm.org/ > _______________________________________________ > LLVM Developers mailing list > LLVM... at cs.uiuc.edu http://llvm.cs.uiuc.eduhttp://lists.cs.uiuc.edu/mailman/listinfo/llvmdev