陳韋任 (Wei-Ren Chen)
2012-Jul-18 14:33 UTC
[LLVMdev] Setting up a cross-compiler for cortex-m3
> "/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
salvatore benedetto
2012-Jul-18 14:54 UTC
[LLVMdev] Setting up a cross-compiler for cortex-m3
On Wed, Jul 18, 2012 at 4:33 PM, 陳韋任 (Wei-Ren Chen) <chenwj at iis.sinica.edu.tw> wrote:> > Do you tell clang to use the right binutils for ARM not x86 host? >Not really. I'm not even sure how to do that. I thought that would have done automagically by llvm. Any readings to point me to? S.
陳韋任 (Wei-Ren Chen)
2012-Jul-18 15:15 UTC
[LLVMdev] Setting up a cross-compiler for cortex-m3
> Not really. I'm not even sure how to do that. > > I thought that would have done automagically by llvm. > > Any readings to point me to?Yes, I think this had been discussed before, http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-June/050759.html Good Luck! 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
Apparently Analagous Threads
- [LLVMdev] Setting up a cross-compiler for cortex-m3
- [LLVMdev] Setting up a cross-compiler for cortex-m3
- [LLVMdev] Setting up a cross-compiler for cortex-m3
- [LLVMdev] Setting up a cross-compiler for cortex-m3
- [LLVMdev] Setting up a cross-compiler for cortex-m3