[LLVMbugs] [Bug 8579] New: clang test failure: Driver/hello.c
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Nov 10 01:41:13 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=8579
Summary: clang test failure: Driver/hello.c
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: pipping at exherbo.org
CC: llvmbugs at cs.uiuc.edu
pipping at bogus ~/tmp/llvm/tools/clang/test $ ./TestRunner.sh -v Driver/hello.c
lit.py: lit.cfg:130: note: using clang:
'/home/pipping/tmp/llvm/Release+Asserts/bin/clang'
-- Testing: 1 tests, 2 threads --
FAIL: Clang :: Driver/hello.c (1 of 1)
******************** TEST 'Clang :: Driver/hello.c' FAILED ********************
Script:
--
/home/pipping/tmp/llvm/Release+Asserts/bin/clang -ccc-echo -o
/home/pipping/tmp/llvm/tools/clang/test/Driver/Output/hello.c.tmp
/home/pipping/tmp/llvm/tools/clang/test/Driver/hello.c 2>
/home/pipping/tmp/llvm/tools/clang/test/Driver/Output/hello.c.tmp.log
grep 'clang" -cc1 .*hello.c'
/home/pipping/tmp/llvm/tools/clang/test/Driver/Output/hello.c.tmp.log
/home/pipping/tmp/llvm/tools/clang/test/Driver/Output/hello.c.tmp >
/home/pipping/tmp/llvm/tools/clang/test/Driver/Output/hello.c.tmp.out
grep "I'm a little driver, short and stout."
/home/pipping/tmp/llvm/tools/clang/test/Driver/Output/hello.c.tmp.out
--
Exit Code: 1
********************
Testing Time: 0.11s
********************
Failing Tests (1):
Clang :: Driver/hello.c
Unexpected Failures: 1
pipping at bogus ~/tmp/llvm/tools/clang/test $
pipping at bogus ~/tmp/llvm/tools/clang/test $ cat Driver/Output/hello.c.script
/home/pipping/tmp/llvm/Release+Asserts/bin/clang -ccc-echo -o
/home/pipping/tmp/llvm/tools/clang/test/Driver/Output/hello.c.tmp
/home/pipping/tmp/llvm/tools/clang/test/Driver/hello.c 2>
/home/pipping/tmp/llvm/tools/clang/test/Driver/Output/hello.c.tmp.log &&
grep 'clang" -cc1 .*hello.c'
/home/pipping/tmp/llvm/tools/clang/test/Driver/Output/hello.c.tmp.log &&
/home/pipping/tmp/llvm/tools/clang/test/Driver/Output/hello.c.tmp >
/home/pipping/tmp/llvm/tools/clang/test/Driver/Output/hello.c.tmp.out &&
grep "I'm a little driver, short and stout."
/home/pipping/tmp/llvm/tools/clang/test/Driver/Output/hello.c.tmp.out
pipping at bogus ~/tmp/llvm/tools/clang/test $ cat Driver/Output/hello.c.tmp.log
"/home/pipping/tmp/llvm/Release+Asserts/bin/clang" -cc1 -triple
x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name hello.c
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -target-linker-version 2.20.1.20100303
-resource-dir /home/pipping/tmp/llvm/Release+Asserts/bin/../lib/clang/2.9
-ferror-limit 19 -fmessage-length 0 -fgnu-runtime -fdiagnostics-show-option -o
/tmp/cc-ZLFolF.o -x c /home/pipping/tmp/llvm/tools/clang/test/Driver/hello.c
"/usr/bin/ld" --eh-frame-hdr -m elf_x86_64 -dynamic-linker
/lib64/ld-linux-x86-64.so.2 -o
/home/pipping/tmp/llvm/tools/clang/test/Driver/Output/hello.c.tmp
/usr/lib/../lib64/crt1.o /usr/lib/../lib64/crti.o crtbegin.o -L
-L/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/../../..
/tmp/cc-ZLFolF.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed
-lgcc_s --no-as-needed crtend.o /usr/lib/../lib64/crtn.o
/usr/bin/ld: error: cannot open crtbegin.o: No such file or directory
/usr/bin/ld: error: cannot open crtend.o: No such file or directory
/usr/bin/ld: error: cannot find -lgcc
/usr/bin/ld: error: cannot find -lgcc
clang: error: linker command failed with exit code 1 (use -v to see invocation)
pipping at bogus ~/tmp/llvm/tools/clang/test $
I tracked this down to the following commit:
Author: Rafael Espindola <rafael.espindola at gmail.com>
Date: Sun Nov 7 20:14:31 2010 +0000
Use ld directly on linux. Changes from the previous try:
*) Try to detect as much as possible from the system itself, not the
distro.
This should make it easier to port to a new distro and more likely to
work on a unknown one.
*) The distro enum now doesn't include the arch. Just use the existing
host detection support in LLVM.
*) Correctly handle --sysroot.
A small regression is that now clang will pass bitcode file to the linker.
This is necessary for the gold plugin support to work.
It might be better to detect this at configure/cmake time, but doing it in
c++ first is a lot easier.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118382
That test passes with any revision prior to 118382 but none after.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list