[uClinux-dev] Problems compiling m68k-elf toolchain

David McCullough davidm at snapgear.com
Fri Mar 14 00:56:42 EST 2003

Jivin patrick lays it down ...
> 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

I have only seen this error when using the latest uClibc from CVS.  If
you are using the uClibc.tar that is included with the m68k-elf-tools
you should not see this error.

Make sure you modify the build-uclinux-tools.sh to use the uClibc from
that tarball included with the tools.

> 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).

I am just about done on a new script/tools release,  you might like to
hold off a day or so for that if you can,


David McCullough:    Ph: +61 7 3435 2815  http://www.SnapGear.com
davidm at snapgear.com  Fx: +61 7 3891 3630  Custom Embedded Solutions + Security

More information about the uClinux-dev mailing list