public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* arm cross compiler
@ 2004-05-10 19:27 kripashankar
  2004-05-10 19:51 ` Daniel Kegel
  0 siblings, 1 reply; 3+ messages in thread
From: kripashankar @ 2004-05-10 19:27 UTC (permalink / raw)
  To: gcc; +Cc: crossgcc, gcc-help

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 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: arm cross compiler
  2004-05-10 19:27 arm cross compiler kripashankar
@ 2004-05-10 19:51 ` Daniel Kegel
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Kegel @ 2004-05-10 19:51 UTC (permalink / raw)
  To: kripashankar; +Cc: gcc, crossgcc, gcc-help

kripashankar wrote:
> I am trying to build an arm-linux-gcc or arm-elf-gcc
> cross compiler on red hat 9 using gcc version 3 ...
> 
> 4. Then i tried Dan kegel's crosstool tarball
> http://kegel.com/crosstool/crosstool-0.27.tar.gz
> 
> but that too gave me errors..

Apologies... 0.27 had a silly error on arm.  Try 0.28-pre13
( http://kegel.com/crosstool/crosstool-0.28-rc13.tar.gz )
and let me know if that works for you.
- Dan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: arm cross compiler
  2004-05-11 19:53 Fwd: " kripashankar
@ 2004-05-11 21:31 ` Daniel Kegel
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Kegel @ 2004-05-11 21:31 UTC (permalink / raw)
  To: kripashankar; +Cc: crossgcc, gcc-help

kripashankar wrote:
 > > [ try http://kegel.com/crosstool/crosstool-0.28-rc13.tar.gz ]
 >
> I am still facing problems with the new arm cross tool. ... 
> The error message is 
> 
> cd /home/kripa/crosstool/src/
> /home/kripa/crosstool/tarballs/binutils-2.14.tar.gz: no file or directory

Add a 'set -x' to getandpatch.sh (or whatever script is failing),
that should illuminate things.

(BTW rather than using English to describe your environment
variables, it's nice to simply post a shell script that
reproduces the problem.)

Reply-to set to crossgcc since this is offtopic for gcc-help.
- Dan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-05-11 21:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-10 19:27 arm cross compiler kripashankar
2004-05-10 19:51 ` Daniel Kegel
2004-05-11 19:53 Fwd: " kripashankar
2004-05-11 21:31 ` Daniel Kegel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).