[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patches] toolchain boostrap on mpc8540 e500, stubs-32.h missing



Clemens Koller wrote:
> Hello!
>
> I am working on an MPC8540 PowerPC platform and try to bootstrap a
> current toolchain with e500 math support support.
>
> I have a native compiler and environment running on the MPC8540 system:
>
> mainline binutils-2.17
>
> mainline glibc-2.3.4 which was built with
>         ../glibc-2.3.4/configure
>                 --prefix=/usr
>                 --disable-profile
>                 --enable-kernel=2.6.0
>                 --without-fp
>                 --without-cvs
>                 --enable-add-ons
>
> mainline gcc-4.1.2
> Using built-in specs.
> Target: powerpc-unknown-linux-gnu
> Configured with: ../gcc-4.1.2/configure --prefix=/usr
> --libexecdir=/usr/lib \
>  --enable-languages=c,c++,objc --enable-threads=posix \
>  --enable-__cxa_atexit --enable-clocale=gnu --enable-shared \
>  --disable-nls --with-x=no --with-float=soft
> Thread model: posix
> gcc version 4.1.2 (ckcore)
>
>
> I followed the crossbuild instructions of Jim Blandy to rebuild the
> entire toolchain:
> http://www.eglibc.org/cgi-bin/viewcvs.cgi/*checkout*/branches/eglibc-2_5/libc/EGLIBC.cross-building
>
> It works pretty well until the last gcc3 step, where it barks:
>
> /home/clemens/cross-build/ppc/obj/gcc3/./gcc/xgcc
> -B/home/clemens/cross-build/ppc/obj/gcc3/./gcc/
> -B/home/clemens/cross-build/ppc/tools/powerpc-none-linux-gnu/bin/
> -B/home/clemens/cross-build/ppc/tools/powerpc-none-linux-gnu/lib/
> -isystem
> /home/clemens/cross-build/ppc/tools/powerpc-none-linux-gnu/include
> -isystem
> /home/clemens/cross-build/ppc/tools/powerpc-none-linux-gnu/sys-include
> -O2 -O2 -g -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition 
> -isystem ./include  -I. -I.
> -I/home/clemens/cross-build/src/gcc-4.1.2/gcc
> -I/home/clemens/cross-build/src/gcc-4.1.2/gcc/.
> -I/home/clemens/cross-build/src/gcc-4.1.2/gcc/../include
> -I/home/clemens/cross-build/src/gcc-4.1.2/gcc/../libcpp/include   -g0
> -finhibit-size-directive -fno-inline-functions -fno-exceptions
> -fno-zero-initialized-in-bss -fno-unit-at-a-time  -msdata=none \
>           -c /home/clemens/cross-build/src/gcc-4.1.2/gcc/crtstuff.c
> -DCRT_BEGIN \
>           -o crtbegin.o
> In file included from
> /home/clemens/cross-build/ppc/sysroot/usr/include/features.h:345,
>                  from
> /home/clemens/cross-build/ppc/sysroot/usr/include/stdio.h:28,
>                  from
> /home/clemens/cross-build/src/gcc-4.1.2/gcc/tsystem.h:90,
>                  from
> /home/clemens/cross-build/src/gcc-4.1.2/gcc/crtstuff.c:68:
> /home/clemens/cross-build/ppc/sysroot/usr/include/gnu/stubs.h:7:27:
> error: gnu/stubs-32.h: No such file or directory

The stubs*.h files are generated by libc make install. Did your make
install run successfully?