[uClinux-dev] Errors when compile uClinux with CodeSourcery tool
chains
David McCullough
David_Mccullough at securecomputing.com
Sat Nov 10 20:22:30 EST 2007
Jivin Mike Wu lays it down ...
> Hi,
> I want to use the CodeSourcery tool chains to compile
> uClinux-dist-20070130.
> But I don't know where to specify the compiler. I used the following
> command to compile, but it failed:
> > export PATH=/home/xxxx/Linux/arm-2007q3/bin:$PATH
> > make arch=ARM CROSS_COMPILE=arm-uclinuxeabi- lib_only
> ...
> Making symlinks in include/
> /bin/sh: ucfront-gcc: command not found
> Making include/c++ symlink to compiler c++ includes
> /bin/sh: ucfront-gcc: command not found
> ln: creating symbolic link `./c++' to `c++': File exists
> make[2]: *** [all] Error 1
> make[2]: Leaving directory `/home/wugc/Linux/uClinux-dist/include'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/wugc/Linux/uClinux-dist/lib'
> make: *** [lib_only] Error 2
>
> Does the CodeSourcery tool chains work for uClinux? or is there
> something misconfigured with the tool chain?
> My compile environment: Sles10.1, gcc version 4.1.2 20070115
> (prerelease) (SUSE Linux), CodeSourcery Sourcery G++ Lite 2007q3-51 .
Edit:
vendors/config/armnommu/config.arch
Change CROSS_COMPILE (or whatever has compiler settings in it) to:
CROSS_COMPILE := arm-uclinuxeabi-
While you are there add and compiler option you know that you need for
this toolchain, also add
PATH := PATH=/home/xxxx/Linux/arm-2007q3/bin:$(PATH)
export PATH
should be enough, then build the tree as you usually would,
Cheers,
Davidm
--
David McCullough, david_mccullough at securecomputing.com, Ph:+61 734352815
Secure Computing - SnapGear http://www.uCdot.org http://www.cyberguard.com
More information about the uClinux-dev
mailing list