[ELDK] rebuilding arm crosstool package

Gabriel Johnson johnsoga at gmail.com
Tue Jan 20 22:34:07 CET 2009


I am trying to rebuild the crosstool package for arm.  I need to
compile against Linux 2.4 instead of 2.6.  I have been trying to just
rebuild the package as it is and it keeps breaking.  Here are the
steps I have taken so far:

I installed the eldk `./install -d /opt/arm-eldk arm`
I installed the source rpm `/opt/arm-eldk/bin/rpm -iv crosstool`
changed into the specs directory `cd /opt/arm-eldk/usr/src/denx/SPECS`
ran rpmbuild `/opt/arm-eldk/usr/bin/rpmbuild -ba crosstool.spec`
my path contains
`/home/gjohnson/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games`
and the variable CROSS_COMPILE is unset

The build then prints out this error:
/usr/bin/install -c -m 644
/opt/arm-eldk/usr/src/denx/BUILD/crosstool-0.43/build/gcc-4.2.2-glibc-20070515T2025-eldk/arm-linux-gnueabi/build-glibc-headers/gnu/lib-names.h
/opt/arm-eldk/var/tmp/crosstool-0.43-3-root/usr/crosstool/gcc-4.2.2-glibc-20070515T2025-eldk/arm-linux-gnueabi/arm-linux-gnueabi/include/gnu/lib-names.h
/usr/bin/install: cannot stat
`/opt/arm-eldk/usr/src/denx/BUILD/crosstool-0.43/build/gcc-4.2.2-glibc-20070515T2025-eldk/arm-linux-gnueabi/build-glibc-headers/gnu/lib-names.h':
No such file or directory
make[1]: *** [/opt/arm-eldk/var/tmp/crosstool-0.43-3-root/usr/crosstool/gcc-4.2.2-glibc-20070515T2025-eldk/arm-linux-gnueabi/arm-linux-gnueabi/include/gnu/lib-names.h]
Error 1
make[1]: Leaving directory
`/opt/arm-eldk/usr/src/denx/BUILD/crosstool-0.43/build/gcc-4.2.2-glibc-20070515T2025-eldk/arm-linux-gnueabi/glibc-20070515T2025'
make: *** [install-headers] Error 2
error: Bad exit status from /opt/arm-eldk/var/tmp/rpm-tmp.24290 (%build)


RPM build errors:
   Bad exit status from /opt/arm-eldk/var/tmp/rpm-tmp.24290 (%build)

Does anyone have any ideas what I might be missing or what I might be
doing wrong?

Thanks


More information about the eldk mailing list