陳奕梅
2012-Sep-24 10:31 UTC
[LLVMdev] [Questions] clang cross compilation and SimpleScalar simulation
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120924/c6cb2371/attachment.html>
陳韋任 (Wei-Ren Chen)
2012-Sep-25 02:44 UTC
[LLVMdev] [Questions] clang cross compilation and SimpleScalar simulation
> generated using llvm-2.9, clang-2.9, and arm-linux-gcc (gcc version 2.95.2), > simulator is sim-panalyzer 2.0.3 .LLVM/Clang 2.9 is too old. Please use LLVM/Clang 3.1 release or svn. 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
陳奕梅
2012-Sep-25 06:27 UTC
[LLVMdev] [Questions] clang cross compilation and SimpleScalar simulation
I tried llvm/clang-3.1 previously. It was not work, so I use version 2.9 now. Best regards, Yi Mei Chen 2012/9/25 陳韋任 (Wei-Ren Chen) <chenwj at iis.sinica.edu.tw>> > generated using llvm-2.9, clang-2.9, and arm-linux-gcc (gcc version > 2.95.2), > > simulator is sim-panalyzer 2.0.3 . > > LLVM/Clang 2.9 is too old. Please use LLVM/Clang 3.1 release or svn. > > 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120925/2b145bfb/attachment.html>
Jim Grosbach
2012-Sep-25 17:52 UTC
[LLVMdev] [Questions] clang cross compilation and SimpleScalar simulation
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. -Jim 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>
陳韋任 (Wei-Ren Chen)
2012-Sep-26 02:48 UTC
[LLVMdev] [Questions] clang cross compilation and SimpleScalar simulation
Hi Jim, On Tue, Sep 25, 2012 at 10:52:58AM -0700, Jim Grosbach wrote:> 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. > -JimShe said in her previous mail, 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. I don't know what's her problem while using newer toolchain. :/ 奕梅,you should use latest toolchain if possible, and post your problem here to see if it comes from LLVM/Clang or other place. Also, where do you read that version is recommended? 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
Maybe Matching Threads
- [LLVMdev] [Questions] clang cross compilation and SimpleScalar simulation
- [LLVMdev] [Questions] clang cross compilation and SimpleScalar simulation
- [LLVMdev] [Questions] clang cross compilation and SimpleScalar simulation
- [LLVMdev] [Questions] clang cross compilation and SimpleScalar simulation
- [LLVMdev] [Questions] clang cross compilation and SimpleScalar simulation