[uClinux-dev] Problems compiling m68k-elf toolchain

patrick tendim at tendim.cjb.net
Fri Mar 14 00:25:04 EST 2003


Hi.

I have been trying to compile the m68k-elf toolchain on my PowerPC system,
which runs Linux/PPC, created from Linux From Scratch, using gcc-3.2.

I downloaded the source files found at
http://www.uclinux.org/pub/uClinux/m68k-elf-tools, as well as the latest
elf2flt and uClinux-2.0.x from cvs.uclinux.org.

For uClibc, I downloaded the one found at
http://www.uclinux.org/pub/uClinux/m68k-elf-tools, and modified
uClibc/extra/Configs/Config.m68k so that the line reading UNIX98PTY_ONLY
was false instead of the default TRUE.  (If I did not do this, then uClibc
would not compile at all.)

Now, during Stage 6 I get the following error:

/home/tendim/uClinux/m68k-elf-tools/tools-20020410/m68k-elf-gcc/gcc/xgcc -B/home/tendim/uClinux/m68k-elf-tools/tools-20020410/m68k-elf-gcc/gcc/ -B/home/tendim/bin/uClinux/m68k-elf/bin/ -c -I/home/tendim/include -L/home/tendim/lib -I/home/tendim/include -L/home/tendim/lib -I/home/tendim/include -L/home/tendim/lib  -I. -I../../../gcc-2.95.3/libio ../../../gcc-2.95.3/libio/filedoalloc.c
In file included from ../../../gcc-2.95.3/libio/libio.h:30,
                 from ../../../gcc-2.95.3/libio/iolibio.h:1,
                 from ../../../gcc-2.95.3/libio/libioP.h:47,
                 from ../../../gcc-2.95.3/libio/filedoalloc.c:45:
_G_config.h:33: parse error before `_G_fpos_t'
_G_config.h:33: warning: data definition has no type or storage class
In file included from ../../../gcc-2.95.3/libio/libioP.h:47,
                 from ../../../gcc-2.95.3/libio/filedoalloc.c:45:
../../../gcc-2.95.3/libio/iolibio.h:13: parse error before `_G_fpos_t'
../../../gcc-2.95.3/libio/iolibio.h:18: parse error before `*'
make[1]: *** [filedoalloc.o] Error 1
make[1]: Leaving directory `/home/tendim/uClinux/m68k-elf-tools/tools-20020410/m68k-elf-gcc/m68k-elf/libio'
make: *** [all-target-libio] Error 2

Does anybody know what is wrong?  I tried a seperate compile using uClibc
from cvs (just in case uClibc was causing the problem..) but that gave me
Makefile problems in the uClibc stage (sorry, I don't have the error
off hand).

Thanks for any help.

-Patrick

patrick at tendim.cjb.net
"It's simple, overspecialize and you breed in weakness."
 --Ghost in the Shell





More information about the uClinux-dev mailing list