compiling uClibc m68k-elf-gcc

Dominique Legault dominique at pathcom.ca
Wed Jan 21 18:32:45 UTC 2009


I'm compiling a uClinux version 1.18 its an old distribution 20020927. The
vendor for the product provided the source code for their product. The
product compiles correctly and I'm able to load it onto the device. The
problem I have is when I try and add my own application that needs math
functions. The default libm that comes with uClinux doesn't have all the
functions I need.

What is the best way to go about implementing uClibc into an old distro like
that. should I take the old uClibc that came with that distro and implement
that one even though it doesn't have the functions I need in the libm
folder, and then upgrade the uClibc untill I get the functionality I need.

or should I just compile the most stable current version of uClibc with all
the functionality I need.

either way I'm running into errors compiling both methods.
the old distro will not compile the vendors code when I switch to using the
uClibc code.
I'm failing to compile the uClibc-0.9.30 with a target arch of m68k.
*libc/sysdeps/linux/m68k/crt1.S: Assembler messages:
libc/sysdeps/linux/m68k/crt1.S:79: Error: no such instruction: `sub.l
%fp,%fp'
libc/sysdeps/linux/m68k/crt1.S:95: Error: no such instruction: `move.l
(%sp)+,%d0'
libc/sysdeps/linux/m68k/crt1.S:99: Error: no such instruction: `move.l
%sp,%a0'
libc/sysdeps/linux/m68k/crt1.S:105: Error: no such instruction: `pea (%sp)'
libc/sysdeps/linux/m68k/crt1.S:110: Error: no such instruction: `pea (%a1)'
libc/sysdeps/linux/m68k/m68k_pic.S:30: Error: no such instruction: `pea
_fini'
libc/sysdeps/linux/m68k/m68k_pic.S:30: Error: no such instruction: `pea
_init'
libc/sysdeps/linux/m68k/crt1.S:124: Error: no such instruction: `pea (%a0)'
libc/sysdeps/linux/m68k/crt1.S:125: Error: no such instruction: `move.l
%d0,-(%sp)'
libc/sysdeps/linux/m68k/m68k_pic.S:30: Error: no such instruction: `pea
main'
libc/sysdeps/linux/m68k/m68k_pic.S:30: Error: no such instruction: `jsr
__uClibc_main'
libc/sysdeps/linux/m68k/crt1.S:133: Error: no such instruction: `illegal'
make: *** [lib/crt1.o] Error 1

*It will compile with the target arch of i386.
I wonder if I'm missing something, how would I cross compile the 0.9.30 with
m68k-elf-gcc?

Any help would be greatly appreciated,
Thanks
Dominique
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20090121/ba425281/attachment.htm 


More information about the uClibc mailing list