Liu
2010-May-07 07:37 UTC
[LLVMdev] How to build a cross llvm-gcc compiler for Arm Cortex-A8
hi My host is Linux on x86, and I want llvm-gcc generate code for Arm Cortex-A8. I saw that in LLVM 2.7 Release Notes, but I can't find step to build it. Anyone tell me? llvm-gcc now has complete support for the ARM v7 NEON instruction set. This support differs slightly from the GCC implementation. Please see the ARM Advanced SIMD (NEON) Intrinsics and Types in LLVM Blog Post<http://blog.llvm.org/2010/04/arm-advanced-simd-neon-intrinsics-and.html> for helpful information if migrating code from GCC to LLVM-GCC Thank you all -Liu -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100507/d4319f24/attachment.html>
Anton Korobeynikov
2010-May-07 14:17 UTC
[LLVMdev] How to build a cross llvm-gcc compiler for Arm Cortex-A8
Hello> My host is Linux on x86, and I want llvm-gcc generate code for Arm > Cortex-A8. > I saw that in LLVM 2.7 Release Notes, but I can't find step to build > it. Anyone tell me?Build llvm-gcc exactly the same way you're building the cross gcc for your target. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
Liu
2010-May-10 05:54 UTC
[LLVMdev] How to build a cross llvm-gcc compiler for Arm Cortex-A8
I do it like this: export PATH=/opt/arm-2010q1/bin/:$PATH ../llvm-gcc-4.2-2.7.source/configure --prefix=/opt/llvm --enable-languages=c,c++ --enable-checking --enable-llvm=/root/llvm-obj --disable-bootstrap --disable-multilib --target=arm-none-linux-gnueabi --enable-cross --with-as=/opt/arm-2010q1/arm-none-linux-gnueabi/bin/as --with-ld=/opt/arm-2010q1/arm-none-linux-gnueabi/bin/ld make it gets error: /opt/arm-2010q1/arm-none-linux-gnueabi/bin/ld: crti.o: No such file: No such file or directory collect2: ld returned 1 exit status I copy arm-linux's crti.o and crtn.o there. It gets another error: /root/llvm-gcc-obj/./gcc/crti.o: In function `_init': /home/oe/stuff/workspace/work/armv7a-angstrom-linux-gnueabi/glibc-2.9-r36.3/build-arm-angstrom-linux-gnueabi/nptl/crti.S:37: undefined reference to `__pthread_initialize_minimal_internal' /opt/arm-2010q1/arm-none-linux-gnueabi/bin/ld: ./libgcc_s.so.1.tmp: hidden symbol `__pthread_initialize_minimal_internal' isn't defined /opt/arm-2010q1/arm-none-linux-gnueabi/bin/ld: final link failed: Nonrepresentable section on output collect2: ld returned 1 exit status 2010/5/7 Anton Korobeynikov <anton at korobeynikov.info>> Hello > > > My host is Linux on x86, and I want llvm-gcc generate code for Arm > > Cortex-A8. > > I saw that in LLVM 2.7 Release Notes, but I can't find step to > build > > it. Anyone tell me? > Build llvm-gcc exactly the same way you're building the cross gcc for > your target. > > -- > With best regards, Anton Korobeynikov > Faculty of Mathematics and Mechanics, Saint Petersburg State University >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100510/0714a437/attachment.html>
Possibly Parallel Threads
- [LLVMdev] How to build a cross llvm-gcc compiler for Arm Cortex-A8
- [LLVMdev] build errors while cross compiling llvm-gcc for ARM
- [LLVMdev] build errors while cross compiling llvm-gcc for ARM
- [LLVMdev] llvm-gcc cross compiler for ARM Linux failing
- [LLVMdev] What is the state of LLVM's ARM backend