Generating a toolchain for big-endian arm with ct-ng.

Gilles Chanteperdrix gilles.chanteperdrix@xenomai.org
Tue Jan 6 13:34:00 GMT 2009


Hi,

I tried to use crosstool-ng to generate a toolchain for Linux on big
endian arm with recent versions of gcc, glibc, etc... but had a few
problems.

a toolchain based on gcc 4.3.2 and glibc 2.7 builds fine, and generates
a working root filesystem, but unfortunately has a bug (
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38674
).

a toolchain based on gcc 4.2.4 builds fine too, but generates a non
working root filesytem. It appears that the gcc patch (for gcc 4.2.x)
for big-endian arm (240-arm-bigendian.patch) lacks the change attached
to this mail as 240-arm-bigendian2.patch.

trying to build the toolchain with an earlier version of glibc fails,
glibc is looking for asm/procinfo.h which is not installed by Linux'
headers_install target. A solution is to modify Linux makefiles so that
asm/procinfo.h is copied. The patch
linux-2.6.19-arm-install-procinfo.diff may be applied to linux between
versions 2.6.19 and 2.6.22 to do that,
linux-2.6.23-arm-install-procinfo.diff may be applied to linux after
version 2.6.23.

trying to build a toolchain based on gcc 4.1.2 fails, gcc/tree.h
includes tree-check.h which can not be found in gcc sources, and seems
to be required. I did not try to fix this, but thought you might be
interested.

Regards.

-- 
                                                 Gilles.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 240-arm-bigendian2.patch
Type: text/x-patch
Size: 747 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20090106/b98c3e8f/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: linux-2.6.19-arm-install-procinfo.diff
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20090106/b98c3e8f/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: linux-2.6.23-arm-install-procinfo.diff
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20090106/b98c3e8f/attachment-0001.ksh>
-------------- next part --------------
--
For unsubscribe information see http://sourceware.org/lists.html#faq


More information about the crossgcc mailing list