<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Clang returns 0 even though ld asserts"
href="http://llvm.org/bugs/show_bug.cgi?id=16838">16838</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang returns 0 even though ld asserts
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Driver
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>steveire@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>stephen@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@hal:~/dev/src/playground/cmake/build{master}$ echo $?
0
The reason for the assert is #16070.
<a href="http://thread.gmane.org/gmane.comp.compilers.clang.devel/30170/focus=30395">http://thread.gmane.org/gmane.comp.compilers.clang.devel/30170/focus=30395</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>