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]

Re: Creating ARM toolchain


Hinko Kocevar wrote:
Dan Kegel wrote:
OK, I narrowed it down a bit.  It looks like
 cd patches
 cp glibc-2.3.2/arm-ctl_bus_isa.patch glibc-2.2.5/
 mkdir gcc-3.4.1
 cp gcc-3.4.0/gcc-3.4.0-arm-lib1asm.patch gcc-3.4.1/
will fix the build breakages you were seeing with gcc-3.3.4
and gcc-3.4.1.  All I did was grep for the error message
in patches/*, pretty much.

I copied the stuff, and running eval `cat arm-softfloat.dat gcc-3.4.1-glibc-2.3.2.dat` sh all.sh --notest
produces this error:
...
/home/xtrm/delo/crosstool-0.28-rc31/result/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.2/lib/gcc/arm-softfloat-linux-gnu/3.4.1/../../../../arm-softfloat-linux-gnu/bin/ld: cannot find -lfloat

Once again, grepping for the error message in patches/*/*:


$ cd crossgcc-0.28-rc31/patches
$ grep lfloat */*
gcc-3.4.0/gcc-3.4.0-arm-nolibfloat.patch:# * Removed the extra -lfloat option from LIBGCC_SPEC, since it isn't neede

So try
 cp gcc-3.4.0/gcc-3.4.0-arm-nolibfloat.patch gcc-3.4.1

As for your other error,
> eval `cat arm-softfloat.dat gcc-3.4.1-glibc-2.2.5.dat` sh all.sh --notest
> fails with
> ...
> ../sysdeps/unix/sysv/linux/pread.c: In function `__libc_pread':
> ../sysdeps/unix/sysv/linux/pread.c:52: error: `__NR_pread' undeclared

$ grep __NR_pread */*
finds a couple patches for a similar problem for alpha and sparc64,
maybe you could try using the alpha version as an example for
how to fix this.  If it works, please let me know.
- Dan

--
My technical stuff: http://kegel.com
My politics: see http://www.misleader.org for examples of why I'm for regime change

------
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]