Sanjeev chugh
2010-Jun-07 07:02 UTC
[LLVMdev] build errors while cross compiling llvm-gcc for ARM
This is the full description of errors I am getting /home/llvm-gcc-4.2-2.7.source/host-i686-pc-linux-gnu/gcc/xgcc -B/home/llvm-gcc-4.2-2.7.source/host-i686-pc-linux-gnu/gcc/ -B/usr/local/armv7fl-montavista-linux-gnueabi/bin/ -B/usr/local/armv7fl-montavista-linux-gnueabi/lib/ -isystem /usr/local/armv7fl-montavista-linux-gnueabi/include -isystem /usr/local/armv7fl-montavista-linux-gnueabi/sys-include -DHAVE_CONFIG_H -I. -I../.././libmudflap -I. -Wall -ffunction-sections -fdata-sections -O2 -g -O2 --sysroot=/home//arm_v7_vfp_le/target/ -MT mf-runtime.lo -MD -MP -MF .deps/mf-runtime.Tpo -c ../.././libmudflap/mf-runtime.c -o mf-runtime.o /tmp/cczBL31y.s: Assembler messages: /tmp/cczBL31y.s:409: rdhi, rdlo and rm must all be different /tmp/cczBL31y.s:2742: Error: offset too big /tmp/cczBL31y.s:2743: Error: offset too big /tmp/cczBL31y.s:2752: Error: offset too big /tmp/cczBL31y.s:2753: Error: offset too big /tmp/cczBL31y.s:2762: Error: offset too big /tmp/cczBL31y.s:2763: Error: offset too big /tmp/cczBL31y.s:2772: Error: offset too big /tmp/cczBL31y.s:2773: Error: offset too big /tmp/cczBL31y.s:2778: Error: offset too big /tmp/cczBL31y.s:2779: Error: offset too big /tmp/cczBL31y.s:2788: Error: offset too big /tmp/cczBL31y.s:2789: Error: offset too big /tmp/cczBL31y.s:2801: Error: offset too big /tmp/cczBL31y.s:2802: Error: offset too big /tmp/cczBL31y.s:3826: Error: offset too big /tmp/cczBL31y.s:3827: Error: offset too big /tmp/cczBL31y.s:3840: Error: offset too big /tmp/cczBL31y.s:3841: Error: offset too big /tmp/cczBL31y.s:5125: Error: offset too big /tmp/cczBL31y.s:5126: Error: offset too big /tmp/cczBL31y.s:5130: Error: offset too big /tmp/cczBL31y.s:5131: Error: offset too big On Sun, Jun 6, 2010 at 7:17 PM, Dimitry Andric <dimitry at andric.com> wrote:> On 2010-06-04 13:41, Sanjeev C wrote: > > I get following errors: > > > > /home/llvm-gcc-4.2-2.7.source/host-i686-pc-linux-gnu/gcc/xgcc > > -B/home/llvm-gcc-4.2-2.7.source/host-i686-pc-linux-gnu/gcc/ > > -B/usr/local/armv7fl-montavista-linux-gnueabi/bin/ > > -B/usr/local/armv7fl-montavista-linux-gnueabi/lib/ -isystem > > /usr/local/armv7fl-montavista-linux-gnueabi/include -isystem > > /usr/local/armv7fl-montavista-linux-gnueabi/sys-include -DHAVE_CONFIG_H > -I. > > -I../.././libmudflap -I. -Wall -ffunction-sections -fdata-sections -O2 -g > > -O2 --sysroot=/home//arm_v7_vfp_le/target/ -MT mf-runtime.lo -MD -MP -MF > > .deps/mf-runtime.Tpo -c ../.././libmudflap/mf-runtime.c -o mf-runtime.o > >> /dev/null 2>&1 > > make[4]: *** [mf-runtime.lo] Error 1 > > Unfortunately, the only informative part of this compilation error was > hidden by the "> /dev/null 2>&1" redirection. Could you please remove > that redirection, re-run the build, and report the actual error message? >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100607/6ba6f524/attachment.html>
Anton Korobeynikov
2010-Jun-07 16:48 UTC
[LLVMdev] build errors while cross compiling llvm-gcc for ARM
Hello> /tmp/cczBL31y.s:409: rdhi, rdlo and rm must all be differentThis is binutils bug fixed ~2 years ago: http://sourceware.org/ml/binutils/2007-11/msg00046.html Make sure you're using the latest binutils for ARM (from binutils CVS) -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
Sanjeev chugh
2010-Jun-17 13:33 UTC
[LLVMdev] build errors while cross compiling llvm-gcc for ARM
Hello, Thanks for the reply. We have an product whose one part has lot of algorithms doing some graphics work. Our intention was to figure out if there can be any performance gain if we use llvm instead of native ARM. This is for ARM target. Earlier, I have built this component using llvm and tested it on x86. Performance was 4x as compared to native gcc. Then I built llvm for ARM and tested this component on ARM with llvm compiler and performance of llvm+arm against native ARM was almost equal or less :( However, I have run a simple sorting algorithms who run for 100K times and sort 10K elements on llvm+arm and this time it's performance was 3x better than native ARM. Can you guys please suggest what could be there in this graphics component which is not allowing the performance to improve for ARM+llvm. cross-compiler has been built with these flags Using built-in specs. Target: armv7fl-montavista-linux-gnueabi Configured with: ./configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --target=armv7fl-montavista-linux-gnueabi --enable-cross --with-sysroot=/home/arm_v7_vfp_le/target/ --with-build-sysroot=/home/arm_v7_vfp_le/target/ --enable-shared --enable-languages=c,c++ --with-as=/home/arm_v7_vfp_le/bin/arm_v7_vfp_le-as --with-ld=/home/arm_v7_vfp_le/bin/arm_v7_vfp_le-ld --enable-checking=release --disable-multilib --enable-llvm=/home/Desktop/Sanjeev/LLVM/llvm-2.7 --enable-clocale=gnu --with-cpu=cortex-a8 --with-interwork --with-arch=armv7-a --with-mode=arm --with-tune=cortex-a8 --with-fpu=vfp3 --disable-bootstrap --disable-libmudflap --disable-libssp Thread model: posix gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build) These are the steps how I'm building library on ARM+llvm. generated .a is linked with other targets built with native arm compiler. g++-cross -flto -O2 -Wall -function-sections -fdata-sections ; for all .cpps llvm-ld -link-as-library *.bc target.bc // Consolidate all .bcs into one llc target.bc -o target.s cross-as target.s -o target.o ar q target.a target.o On Mon, Jun 7, 2010 at 10:18 PM, Anton Korobeynikov <anton at korobeynikov.info> wrote:> Hello > > > /tmp/cczBL31y.s:409: rdhi, rdlo and rm must all be different > This is binutils bug fixed ~2 years ago: > http://sourceware.org/ml/binutils/2007-11/msg00046.html > > Make sure you're using the latest binutils for ARM (from binutils CVS) > > -- > 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/20100617/0062dafb/attachment.html>
Apparently Analagous Threads
- [LLVMdev] build errors while cross compiling llvm-gcc for ARM
- [LLVMdev] build errors while cross compiling llvm-gcc for ARM
- [LLVMdev] build errors while cross compiling llvm-gcc for ARM
- [LLVMdev] build errors while cross compiling llvm-gcc for ARM
- [LLVMdev] build errors while cross compiling llvm-gcc for ARM