[LLVMbugs] [Bug 16838] New: Clang returns 0 even though ld asserts

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Aug 8 08:26:14 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16838

            Bug ID: 16838
           Summary: Clang returns 0 even though ld asserts
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: steveire at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

stephen at hal:~/dev/src/playground/cmake/build{master}$
/home/stephen/dev/build/qtbase/llvm/bin/clang++
--gcc-toolchain=/home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf -target
arm-linux-gnueabihf   --sysroot=/home/stephen/rpi/rasp-pi-rootfs    
CMakeFiles/foo.dir/main.cpp.o  -o foo -rdynamic -v
clang version 3.4 
Target: arm--linux-gnueabihf
Thread model: posix
Found candidate GCC installation:
/home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2
Selected GCC installation:
/home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2

"/home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/bin/ld"
--sysroot=/home/stephen/rpi/rasp-pi-rootfs -export-dynamic -z relro -X
--hash-style=gnu --build-id --eh-frame-hdr -m armelf_linux_eabi -dynamic-linker
/lib/ld-linux-armhf.so.3 -o foo
/home/stephen/rpi/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/crt1.o
/home/stephen/rpi/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/crti.o
/home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2/crtbegin.o
-L/home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2
-L/home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/lib/../lib32
-L/home/stephen/rpi/rasp-pi-rootfs/lib/arm-linux-gnueabihf
-L/home/stephen/rpi/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf
-L/home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/lib
-L/home/stephen/rpi/rasp-pi-rootfs/lib
-L/home/stephen/rpi/rasp-pi-rootfs/usr/lib CMakeFiles/foo.dir/main.cpp.o
-L/home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.7.2/
-L/home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/bin/../lib/gcc/
-L/home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/
-L/home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/lib/
-L/home/stephen/rpi/rasp-pi-rootfs/lib/
-L/home/stephen/rpi/rasp-pi-rootfs/lib/arm-linux-gnueabihf/
-L/home/stephen/rpi/rasp-pi-rootfs/usr/lib/
-L/home/stephen/rpi/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/ -lstdc++ -lm
-lgcc_s -lgcc -lc -lgcc_s -lgcc
/home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2/crtend.o
/home/stephen/rpi/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/crtn.o
/home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/bin/ld:
BFD (crosstool-NG linaro-1.13.1-2012.07-20120720 - Linaro GCC 2012.07) 2.22
assertion fail
/opt/dev/src/crosstool-ng/crosstool-ng-linaro-1.13.1-2012.07-20120720/builds/arm-linux-gnueabihf-linux/.build/src/binutils-2.22/bfd/elf32-arm.c:11477

stephen at hal:~/dev/src/playground/cmake/build{master}$ echo $?
0

The reason for the assert is #16070.

 http://thread.gmane.org/gmane.comp.compilers.clang.devel/30170/focus=30395

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130808/fb74d0ef/attachment.html>


More information about the llvm-bugs mailing list