[ELDK] rebuilding arm crosstool package

Gabriel Johnson johnsoga at gmail.com
Wed Jan 21 15:39:20 CET 2009


Wolfgang,

You mentioned using ELDK 3.1.1 for 2.4 kernels, does this release support arm?

On Tue, Jan 20, 2009 at 4:03 PM, Gabriel Johnson <johnsoga at gmail.com> wrote:
> Dear Wolfgang,
>
> Thanks for the quick response.
>
> On Tue, Jan 20, 2009 at 3:44 PM, Wolfgang Denk <wd at denx.de> wrote:
>> 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?
> My product currently uses a 2.4 kernel and I have been trying to
> update the tools to try and get a slight increase in performance.
>>
>>> 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.
> This is good to hear maybe I can get my manager to skip doing this project :)
>
>>
>> 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
>> ?
> I used ftp://ftp.denx.de/pub/eldk/4.2/arm-linux-x86/sources/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
> I will try and ensure I use $ <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.
>>
> There are errors from mawk when it is trying to run
> /opt/arm-eldk/usr/src/denx/BUILD/crosstool-0.43/build/gcc-4.2.2-glibc-20070515T2025-eldk/arm-linux-gnueabi/glibc-20070515T2025/scripts/gen-sorted.awk
>
> It appears that
> /opt/arm-eldk/usr/src/denx/BUILD/crosstool-0.43/build/gcc-4.2.2-glibc-20070515T2025-eldk/arm-linux-gnueabi/glibc-20070515T2025/scripts/lib-names.awk
> is supposed to create the lib-names.h file but the log doesn't show
> mawk being run on this file.  I have been unable to find the code that
> is trying to run mawk on lib-names.awk in order to determine why it
> isn't being run.
>
> Please let me know if you have any other suggestions.
>
> Thanks,
> Gabe
>


More information about the eldk mailing list