<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 driver does not propagate -Bprefix to gcc toolchain"
href="http://llvm.org/bugs/show_bug.cgi?id=18238">18238</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang driver does not propagate -Bprefix to gcc toolchain
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</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>fang@csl.cornell.edu
</td>
</tr>
<tr>
<th>CC</th>
<td>iains-llvm@btconnect.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>/Volumes/Isolde/sources/LLVM-svn/gcc40-cmake-build/bin/clang++ -v
-B/sw/lib/odcctools/bin -I/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include
-fno-common -no-integrated-as -fno-dwarf2-cfi-asm -fPIC
-fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings
-pedantic -Wno-long-long -Wnon-virtual-dtor -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -dynamiclib -Wl,-headerpad_max_install_names
-undefined dynamic_lookup -target 10.4
-L/Users/fang/local/src/LLVM-svn/gcc40-cmake-build/lib/clang/3.5/lib/darwin
-lclang_rt.ppc -o
../../../../lib/clang/3.5/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
-install_name
/Users/fang/local/src/LLVM-svn/gcc40-stage2-build/lib/clang/3.5/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
CMakeFiles/RTAsan.osx.dir/asan_allocator2.cc.o ...
clang version 3.5
Target: 10.4
Thread model: posix
Selected GCC installation:
"/sw/bin/g++" -v -I /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include
-fno-common -fno-dwarf2-cfi-asm -fPIC -fvisibility-inlines-hidden -pedantic
-isysroot /Developer/SDKs/MacOSX10.4u.sdk -dynamiclib -undefined dynamic_lookup
-L/Users/fang/local/src/LLVM-svn/gcc40-cmake-build/lib/clang/3.5/lib/darwin
-install_name
/Users/fang/local/src/LLVM-svn/gcc40-stage2-build/lib/clang/3.5/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
-o ../../../../lib/clang/3.5/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
-Wl,-headerpad_max_install_names -lclang_rt.ppc
CMakeFiles/RTAsan.osx.dir/asan_allocator2.cc.o ...
Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /var/tmp/gcc/gcc-5370~2/src/configure --disable-checking
-enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
--with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib
--build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8
--target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5370)
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool -dynamic -arch_only ppc
-install_name
/Users/fang/local/src/LLVM-svn/gcc40-stage2-build/lib/clang/3.5/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
-noall_load -macosx_version_min 10.3 -multiply_defined suppress -syslibroot
/Developer/SDKs/MacOSX10.4u.sdk -undefined dynamic_lookup
-weak_reference_mismatches non-weak -o
../../../../lib/clang/3.5/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/crt3.o
-L/Users/fang/local/src/LLVM-svn/gcc40-cmake-build/lib/clang/3.5/lib/darwin
-L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1
-L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1
-L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../..
-headerpad_max_install_names -lclang_rt.ppc
CMakeFiles/RTAsan.osx.dir/asan_allocator2.cc.o ... -lstdc++ -lgcc_s.10.4 -lgcc
-lSystemStubs -lSystem
While I passed -Bprefix to clang++, the above g++ command-line is missing -B
altogether.
I have newer cctools in /sw/lib/odcctools/bin, including a newer linker.
Stage-1 was linked using -Bprefix (works).</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>