[LLVMbugs] [Bug 14126] New: clang calls system gcc to process .S file when cross-compiling

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Oct 18 22:29:29 PDT 2012


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

             Bug #: 14126
           Summary: clang calls system gcc to process .S file when
                    cross-compiling
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: DrZiplok at me.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


# ./build/bin/clang -ccc-host-triple arm-elf -mfloat-abi=hard -mcpu=cortex-m4
-mthumb -x assembler-with-cpp foo.S -v
clang version 3.2 (trunk 166256)
Target: arm---elf
Thread model: posix
 "/Users/msmith/work/Mike/llvm/build/bin/clang-3.2" -cc1 -triple thumbv7m---elf
-E -disable-free -disable-llvm-verifier -main-file-name foo.S
-mrelocation-model static -mdisable-fp-elim -fmath-errno -mconstructor-aliases
-target-abi apcs-gnu -target-cpu cortex-m4 -mfloat-abi hard
-momit-leaf-frame-pointer -v -resource-dir
/Users/msmith/work/Mike/llvm/build/bin/../lib/clang/3.2 -fmodule-cache-path
/var/folders/7l/5wjzpyc55fv9n4h8tvr_6xtr0000gn/T/clang-module-cache
-fno-dwarf-directory-asm -fdebug-compilation-dir /tmp -ferror-limit 19
-fmessage-length 122 -mstackrealign -fno-signed-char -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/7l/5wjzpyc55fv9n4h8tvr_6xtr0000gn/T/foo-ghqClT.s -x
assembler-with-cpp foo.S
clang -cc1 version 3.2 based upon LLVM 3.2svn default target
x86_64-apple-darwin11.4.0
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /Users/msmith/work/Mike/llvm/build/bin/../lib/clang/3.2/include
 /usr/include
End of search list.
 "/usr/bin/gcc" -mfloat-abi=hard -mcpu=cortex-m4 -mthumb -v -c -o
/var/folders/7l/5wjzpyc55fv9n4h8tvr_6xtr0000gn/T/foo-t7kxMe.o -x assembler
/var/folders/7l/5wjzpyc55fv9n4h8tvr_6xtr0000gn/T/foo-ghqClT.s
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.1~1/src/configure
--disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2
--mandir=/share/man --enable-languages=c,objc,c++,obj-c++
--program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
--with-slibdir=/usr/lib --build=i686-apple-darwin11
--enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.1~1/dst-llvmCore/Developer/usr/local
--program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11
--target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
 /usr/llvm-gcc-4.2/bin/../libexec/gcc/i686-apple-darwin11/4.2.1/as -arch x86_64
-force_cpusubtype_ALL -o
/var/folders/7l/5wjzpyc55fv9n4h8tvr_6xtr0000gn/T/foo-t7kxMe.o
/var/folders/7l/5wjzpyc55fv9n4h8tvr_6xtr0000gn/T/foo-ghqClT.s
foo.S:2:no such instruction: `bx lr'
clang-3: error: assembler (via gcc) command failed with exit code 1 (use -v to
see invocation)

This looks like it might be #12026, but since there's been no activity there
since February, perhaps a new bug is warranted.

-- 
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