This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

arm cross compiler


Hi all
I am trying to build an arm-linux-gcc or arm-elf-gcc
cross compiler on red hat 9 using gcc version 3 [and
above] as i need the graph coloring register
allocator.

I tried different cross compilation techniques but
nothing worked ..here are some of them

1. "How to configure, build, and install GCC as a
cross-compiler" from the cross gcc FAQ
http://www.objsw.com/CrossGCC/FAQ-4.html
i got the following error message:

/home/kripa/arm-linux/exes//arm-linux/bin/ld: cannot
open crti.o: No such file or directory
collect2: ld returned 1 exit status
make[2]: *** [libgcc_s.so] Error 1
make[2]: Leaving directory
`/home/kripa/arm-linux/build-gcc/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory
`/home/kripa/arm-linux/build-gcc/gcc'
make: *** [all-gcc] Error 2

2.Building a gcc-3.3.2 ARM cross-compiler for GP32
http://www.6809.org.uk/gp32/build-cross-compiler.shtml

arm-elf-gcc was successfully built..but i got the
following error message when i compiled a program
using it.
./arm-elf-gcc-3.3.2 first.c

./../lib/gcc-lib/arm-elf/3.3.2/../../../../arm-elf/bin/ld:
ERROR: /tmp/cc9EZqhH.o uses hardware FP, whereas a.out
uses software FP
./../lib/gcc-lib/arm-elf/3.3.2/../../../../arm-elf/bin/ld:
Warning: /tmp/cc9EZqhH.o does not support
interworking, whereas a.out does
File format not recognized: failed to merge target
specific data of file /tmp/cc9EZqhH.o
./../lib/gcc-lib/arm-elf/3.3.2/../../../../arm-elf/bin/ld:
ERROR: ./../lib/gcc-lib/arm-elf/3.3.2/crtend.o uses
hardware FP, whereas a.out uses software FP
./../lib/gcc-lib/arm-elf/3.3.2/../../../../arm-elf/bin/ld:
Warning: ./../lib/gcc-lib/arm-elf/3.3.2/crtend.o does
not support interworking, whereas a.out doesFile
format not recognized: failed to merge target specific
data of file ./../lib/gcc-lib/arm-elf/3.3.2/crtend.o
./../lib/gcc-lib/arm-elf/3.3.2/../../../../arm-elf/bin/ld:
ERROR: ./../lib/gcc-lib/arm-elf/3.3.2/crtn.o uses
hardware FP, whereas a.out uses software FP
./../lib/gcc-lib/arm-elf/3.3.2/../../../../arm-elf/bin/ld:
Warning: ./../lib/gcc-lib/arm-elf/3.3.2/crtn.o does
not support interworking, whereas a.out does
File format not recognized: failed to merge target
specific data of file
./../lib/gcc-lib/arm-elf/3.3.2/crtn.o
collect2: ld returned 1 exit status

3. next i used the same technique mentioned in the
link "Building a gcc-3.3.2 ARM cross-compiler for GP32
http://www.6809.org.uk/gp32/build-cross-compiler.shtml";

but i didnt change the gcc3.3.2/gcc/Makefile.in and
the newlib-1.12.0/Makefile.in..

arm-elf-gcc was successfully built..but i got the
following error message when i compiled a program
using it.
./arm-elf-gcc-3.3.2 first.c

./../lib/gcc-lib/arm-elf/3.3.2/../../../../arm-elf/bin/ld:
cannot open crt0.o: No such file or directory
collect2: ld returned 1 exit status


4. Then i tried Dan kegel's crosstool tarball
http://kegel.com/crosstool/crosstool-0.27.tar.gz

but that too gave me errors..

my project involves adding some minor tweaks to the
existing graph coloring register allocator in gcc.. so
i need to recompile gcc after every updates.

I request the gcc fraternity to kindly help me in
building an arm-linux-gcc or arm-elf-gcc cross
compiler which can be recompiled as and when needed.

regards
kripashankar



	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]