[LLVMdev] Setting up a cross-compiler for cortex-m3
陳韋任 (Wei-Ren Chen)
chenwj at iis.sinica.edu.tw
Wed Jul 18 07:33:31 PDT 2012
> "/usr/bin/g++" -v -c -o testReference.o -x assembler
> /tmp/testReference-Shww7Y.s
> Using built-in specs.
> COLLECT_GCC=/usr/bin/g++
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6.1/lto-wrapper
> Target: x86_64-linux-gnu
> Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
> 4.6.1-9ubuntu3'
> --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs
> --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr
> --program-suffix=-4.6 --enable-shared --enable-linker-build-id
> --with-system-zlib --libexecdir=/usr/lib --without-included-gettext
> --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6
> --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
> --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin
> --enable-objc-gc --disable-werror --with-arch-32=i686
> --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu
> --host=x86_64-linux-gnu --target=x86_64-linux-gnu
> Thread model: posix
> gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
> COLLECT_GCC_OPTIONS='-v' '-c' '-o' 'testReference.o' '-shared-libgcc'
> '-mtune=generic' '-march=x86-64'
> as --64 -o testReference.o /tmp/testReference-Shww7Y.s
> /tmp/testReference-Shww7Y.s: Assembler messages:
> /tmp/testReference-Shww7Y.s:1: Error: unknown pseudo-op: `.syntax'
> /tmp/testReference-Shww7Y.s:2: Error: unknown pseudo-op: `.eabi_attribute'
> ... and on for a bit.
Do you tell clang to use the right binutils for ARM not x86 host?
Regards,
chenwj
--
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj
More information about the llvm-dev
mailing list