[ELDK] rebuilding arm crosstool package

Wolfgang Denk wd at denx.de
Tue Jan 20 22:44:46 CET 2009


Dear Gabriel,

In message <bb6204720901201334sab9bcb6v2bf13a2fc4f6de8d at mail.gmail.com> you wrote:
> I am trying to rebuild the crosstool package for arm.  I need to

May I ask why you want to do that?

> compile against Linux 2.4 instead of 2.6.  I have been trying to just

He. This will not work. You must not expect that somewhat recent tool
versions will be usable on such an old kernel version.

Please use ELDK 3.1.1 for 2.4 kernels. 

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

Which SRPM did you install - the eldt package from
ftp://ftp.denx.de/pub/eldk/4.2/arm-linux-x86/sources/SRPMS/crosstool-0.43-3.src.rpm
or the target package from
ftp://ftp.denx.de/pub/eldk/4.2/arm-linux-x86/sources/target/SRPMS/crosstool-0.43-3.src.rpm
?

> 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 manual says you shall run:

	$ <ELDK_root>/usr/bin/rpmbuild -ba <package_name.spec>

You mention only "rpmbuild" - note that this will probably pick up
/usr/bin/rpmbuild in your setup, which is different from
<ELDK_root>/usr/bin/rpmbuild

> 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

I guess there must have been other, earlier error messages as well.

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

See above.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The ultimate barrier is one's viewpoint.
                        - Terry Pratchett, _The Dark Side of the Sun_


More information about the eldk mailing list