Hi -
Here are updates I just got working of Lennert and David's patches
against current rawhide gcc and binutils:
binutils-2.20.51.0.12-2.fc15.src.rpm
gcc-4.5.1-5.fc15.src.rpm
which generate updated binutils and gcc cross packages. The old ones
are fine except that they're no longer able to build current kernels
without errors.
They're tested to generate working cross compiler packages on x86_64
host; the compilers generate a working
kernel.org kernel on iMX31 and
can link a test app with printf() OK, since I just need them for kernel
compile duties I didn't go any further with cross userspace.
You can use the patches like this:
1) Grab the source RPMs you want to build against
2) cd into your rpmbuild/SOURCES dir and use
rpm2cpio <source rpm> | cpio -id
to unpack, then mv *.spec ../SPECS
3) patch the binuntils.spec and gcc.spec files with the diffs; they
should apply cleanly at least with exactly the rawhide sources above
4) rpmbuild -ba --define "binutils_target armv5tel-redhat-linux-gnueabi"
rpmbuild/SPECS/gcc.spec
5) rpm -i
rpmbuild/RPMS/x86_64/armv5tel-redhat-linux-gnueabi-binutils-2.20.51.0.12-2.fc15.x86_64.rpm
6) rpmbuild -ba --define="cross_target armv5tel-redhat-linux-gnueabi"
rpmbuild/SPECS/gcc.spec
7) as root: cd rpmbuild/RPMS/x86_64 ; rpm -Uvf
armv5tel-redhat-linux-gnueabi-gcc-4.5.1-5.cross12.x86_64.rpm
armv5tel-redhat-linux-gnueabi-libgcc-4.5.1-5.cross12.x86_64.rpm
armv5tel-redhat-linux-gnueabi-libgomp-4.5.1-5.cross12.x86_64.rpm
armv5tel-redhat-linux-gnueabi-cpp-4.5.1-5.cross12.x86_64.rpm
armv5tel-redhat-linux-gnueabi-libstdc++-4.5.1-5.cross12.x86_64.rpm
8) That's it!
-Andy