[LLVMbugs] [Bug 18238] New: clang driver does not propagate -Bprefix to gcc toolchain

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Dec 12 17:39:38 PST 2013


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

            Bug ID: 18238
           Summary: clang driver does not propagate -Bprefix to gcc
                    toolchain
           Product: clang
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: fang at csl.cornell.edu
                CC: iains-llvm at btconnect.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

/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).

-- 
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/20131213/afb4b3cc/attachment.html>


More information about the llvm-bugs mailing list