uClibc on Coldfire (m68k) compile problems

Jim Burnett jimburnettva at gmail.com
Wed Mar 17 13:24:17 UTC 2010


Fresh binutils-2.19 build (Just re-ran make install to get /opt/embedded
fresh)

export PATH=/opt/embedded:$PATH

Then configured gcc just like I did with the older version that compiled
just fine.

./configure --target=m68k-uclinux --prefix=/opt/embedded
--enable-languages=c

make

Then this error.

Checking multilib configuration for libgcc...
make[2]: Entering directory
`/home/jim/Newdev/toolchains/gcc-4.3.3/m68k-uclinux/libgcc'
Makefile:144: ../.././gcc/libgcc.mvars: No such file or directory
make[2]: *** No rule to make target `../.././gcc/libgcc.mvars'.  Stop.
make[2]: Leaving directory
`/home/jim/Newdev/toolchains/gcc-4.3.3/m68k-uclinux/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/home/jim/Newdev/toolchains/gcc-4.3.3'
make: *** [all] Error 2



Using  binutils-2.19



My Comp Specs:
[jim at myhost bin]$ gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=/usr --enable-shared
--enable-languages=c,c++,fortran,objc,obj-c++,ada --enable-threads=posix
--mandir=/usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit
--disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib
--enable-clocale=gnu --disable-libstdcxx-pch --with-tune=generic
Thread model: posix
gcc version 4.4.3 (GCC)

[jim at myhost bin]$ uname -r
2.6.32-ARCH




Still working on it, just wanted to send an update to anyone that is
following.

-JB


On Wed, Mar 17, 2010 at 9:07 AM, Jim Burnett <jimburnettva at gmail.com> wrote:

> I tested with 0.9.30.1 and the GCC I am using below and got this:
>
> make: *** No rule to make target `libc/sysdeps/linux/m68k/crtreloc.c',
> needed by `lib/crtreloc.o'.  Stop.
>
> I'll try 4.3.3 GCC next. I just wanted to see if it would build...
>
> -Jim
>
>
>
> On Tue, Mar 16, 2010 at 3:45 PM, Lennart Sorensen <
> lsorense at csclub.uwaterloo.ca> wrote:
>
>> On Tue, Mar 16, 2010 at 03:10:48PM -0400, Jim Burnett wrote:
>> > Hey everyone,
>> > I've been working on getting a build environment up for our Coldfire
>> (m68k)
>> > chips for some time now. Today I tried to compile your latest version of
>> > uClib, 0.9.30.3 .
>>
>> 0.9.30.1 compiles for coldfire if you comment out the daemon function
>> definition.  0.9.30.2 and 0.9.30.3 simply do not work, due to missing
>> syscall definitions.
>>
>> The master git tree, and probably the 0.9.31-rc should work fine though.
>>
>> > Per the website I also installed binutils-2.19.tar.bz2
>> > and gcc-3.4.6.tar.bz2, both compiled just fine. These were both
>> configured
>> > and compiled using --target=m68k-uclinux ( I also tried m68k-elf) and
>> > installed in /opt/embedded      gcc was compiled with
>> --enable-langauges=c
>> > as well...
>>
>> You might want to try a more current gcc with that binutils.  I use 4.3.3.
>>
>> > For uClibc, after going through make menuconfig options I ran a 'make
>> > CROSS=m68k-uclinux-' and came up with this error:
>> >
>> > I also tried setting my toolchain in the config itself and got the same
>> > error.
>> >
>> > [jim at myhost uClibc-0.9.30.3]$ make CROSS=m68k-uclinux-
>> > make: *** No rule to make target `libc/sysdeps/linux/m68k/crtreloc.c',
>> > needed by `lib/crtreloc.o'.  Stop.
>> >
>> >
>> > * I did some research and this appears to be related to MMU option but
>> I'm
>> > really not sure.
>>
>> Make sure you configured for NOMMU unless your coldfire is a 54xx and
>> actually has an MMU.
>>
>> > * I even stripped out every option from the config and still got this
>> error.
>> >
>> > * make is using the m68k-uclinux-gcc and the correct toolchain, I did
>> > confirm that....
>> > * path is set correct as well....
>> > * config is pointing to 2.4.x linux kernel src folder....  (
>> > /home/jim/newdev/linux-2.4.x/include )
>>
>> Hmm, I use 2.6 kernel, not 2.4.  No idea if that makes a difference.
>>
>> --
>> Len Sorensen
>>
>
>
>
> --
>
> My Blog : http://www.jimmyburnett.com
>



-- 

My Blog : http://www.jimmyburnett.com


More information about the uClibc mailing list