[LLVMdev] [Questions] clang cross compilation and SimpleScalar simulation

Jim Grosbach grosbach at apple.com
Tue Sep 25 10:52:58 PDT 2012

These errors are from the assembler, not LLVM. Specifically, your binutils is too old. Given that it doesn't even recognize the ".syntax" directive, they're *very* much too old. You need to upgrade.

On Sep 24, 2012, at 3:31 AM, 陳奕梅 <ymchen at sslab5.cs.nctu.edu.tw> wrote:

> Hello,
> I want to compile MiBench by clang, and the target-ISA is armv4. The code generated using llvm-2.9, clang-2.9, and arm-linux-gcc (gcc version 2.95.2), simulator is sim-panalyzer 2.0.3 .
> I use these commends:
> $ clang -O3 -o hello.ll -c -emit-llvm hello.c
> $ llc -O3 -o hello.s -march=arm -mcpu=strongarm1100 hello.ll
> $ arm-linux-gcc -O3 -march=armv4 -mcpu=strongarm1100 -static -mfloat-abi=soft hello.s -o hello
> Unfortunately, I get some error messages:
> hello.s: Assembler messages:
> hello.s:1: Error: Unknown pseudo-op:  `.syntax'
> hello.s:2: Error: Unknown pseudo-op:  `.eabi_attribute'
> hello.s:3: Error: Unknown pseudo-op:  `.eabi_attribute'
> hello.s:4: Error: Unknown pseudo-op:  `.eabi_attribute'
> hello.s:5: Error: Unknown pseudo-op:  `.eabi_attribute'
> hello.s:6: Error: Unknown pseudo-op:  `.eabi_attribute'
> make: *** [all] Error 1
> I want to know my cross-compiling commends is right?
> Is there any open source ARM simulator (can emulate power consumption) that I can use with clang?
> P.S. Because I got error when I use arm-linux-gcc (gcc version 3.X or 4.X), I use officially recommended version 2.95,2 .
> Best regards, :)
> Yi-Mei Chen 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120925/aee41f0e/attachment.html>

More information about the llvm-dev mailing list