[uClinux-dev] uClinux-dist-20041215 Compilation problem for Coldfire

Ludovic Guilhamat lguilhamat at perax.fr
Wed Aug 3 17:38:23 EDT 2005


I'm trying to compile the 2.6 kernel (2.6.9-uc0) of the 
uClinux-dist-20041215.tar.gz uClinux distribution. I'm using the 
cross-compilation m68k-elf-tools-20031003.sh toolchain (gcc 2.95 & 
binutils 2.14).

Here is my problem : near the end of the process, it tells me this error :

m68k-elf-gcc  -Wall -Wstrict-prototypes -Wno-trigraphs 
-fno-strict-aliasing  -Os  -O2 -g -fomit-frame-pointer -m5307 
-DCONFIG_COLDFIRE -fno-common -Wall -fno-builtin -DEMBED -msep-data 
-Dlinux -D__linux__ -D__uClinux__ -Dunix   -msoft-float -fno-builtin 
-nostdinc -D_LIBC -I../../../../include -I. 
-I/usr/local/lib/gcc-lib/m68k-elf/2.95.3/include -DNDEBUG -c gmon.c -o 
/tmp/ccQLvqvV.s: Assembler messages:
/tmp/ccQLvqvV.s:1901: Error: invalid instruction for this architecture; 
needs 68020 or higher -- statement `cas.l %d1,%d0,(%a4)' ignored
make[6]: *** [gmon.o] Error 1

I've already searched the web for this error, and I found one person who 
had the same problem (there is a long time ago, in 2002). The solution 
posted was to replace the 'cas' assembler instruction by the equivalent 
(with moves and jumps...). I tried this in the file 'atomicity.h', but 
it did'nt work.

One another thing : I tested more recent binutils (2.15), but it was the 

So I ask you for any help, any suggestions.


Ludovic Guilhamat.
lguilhamat at perax.fr

More information about the uClinux-dev mailing list