[uClinux-dev] Errors when compile uClinux with CodeSourcery tool chains

Greg Ungerer gerg at snapgear.com
Sun Nov 11 19:33:24 EST 2007


Hi Mike,

Mike Wu wrote:
>      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?

As a data point I have used the CodeSourcery toolchain for ColdFire
to compile and run uClinux, and that worked ok.


>     My compile environment: Sles10.1, gcc version 4.1.2 20070115
> (prerelease) (SUSE Linux), CodeSourcery Sourcery G++ Lite 2007q3-51 .

I just change config.arch (as suggested by Dave) to point at the
right compiler prefix, and add the appropriate install directory
to my path.

Regards
Greg



------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     gerg at snapgear.com
Secure Computing Corporation                PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com


More information about the uClinux-dev mailing list