Error in building GCC 2.95.2 cross compiler for powerpc-unknwn-eabi on LINUX 7.0

revati kadekar revatikad@yahoo.com
Fri Oct 27 17:18:00 GMT 2000


Hi,
I am newbie to this GNU stuff and also relatively
very raw for UNIX environments, so please bear with
me.
 
I am trying to build the cross compiler for a
embedded system based on powerPC850/860 on a LINUX 7.0
host which has 2.96 GCC native compiler.
 
I have followed the cross GCC FAQ and downloaded all
the right files but still the GCC and newlib builds
fail.I have looked in archives but could not find
answer to my problem.
 
I have downloaded binutils-2.10, GCC-2.95.2,
newlib-1.8.2 and GDB5.0 and have populated them in
build-binutils, build-gcc,build-newlib and build-gdb
directories.
 
 I have specified for target=powerpc-unknown-eabi and
host as i686LINUX.
I have chosen prefix as prefix=/usr/newppc/bin and
have exported this path in PATH.
 
I can build binutils without any problem. But newlib
and GCC failed as shown below.I have tried to build
GCC before newlib as indicated in crossGCC faq. I am
attaching only the tail portion of error log.
GCC builds fine upto a portion and fails for 'as'.
No complaints for headers as seen by some users.But
somehow looks for -mppc instead of
powerpc-unknown-eabi.
We have to use 'newlib' instead of 'glibc' in our
environment for the backward compatibility.
What I am doing wrong ? Please I have to finish this
before Monday, so any help will be really
appreciated.
 
Thanks a bunch,
 RKad
> -----------------------
> echo ${name}; \
>   /home/rkadekar/build-gcc/gcc/xgcc
> -B/home/rkadekar/build-gcc/gcc/ 
> -B/usr/newppc/bin/powerpc-unknown-eabi/bin/ 
> -I/usr/newppc/bin/powerpc-unknown-eabi/include -O2 
> -DCROSS_COMPILE -DIN_GCC -DHAIFA    -g -O2 
> -I./include
> -I/home/rkadekar/newlib-1.8.2/newlib/libc/include  
> -g1  
> -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc
>  
> -mstrict-align -I. 
> -I../../gcc-2.95.2/gcc -I../../gcc-2.95.2/gcc/config
> 
> -I../../gcc-2.95.2/gcc/../include -c -DL${name} \
>        ../../gcc-2.95.2/gcc/libgcc2.c -o ${name}.o;
> \
>   if [ $? -eq 0 ] ; then true; else exit 1; fi; \
>   powerpc-unknown-eabi-ar rc tmplibgcc2.a ${name}.o;
> \
>   rm -f ${name}.o; \
> done
> _muldi3
> as: unrecognized option `-mppc'
> make[3]: *** [libgcc2.a] Error 1
> make[3]: Leaving directory
> `/home/rkadekar/build-gcc/gcc'
> make[2]: *** [stmp-multilib-sub] Error 2
> make[2]: Leaving directory
> `/home/rkadekar/build-gcc/gcc'
> make[1]: *** [stmp-multilib] Error 1
> make[1]: Leaving directory
> `/home/rkadekar/build-gcc/gcc'
> make: *** [all-gcc] Error 2
> 
> -------------------
> 
> 
> Making all in libc
> make[2]: Entering directory 
>
`/home/rkadekar/build-newlib/powerpc-unknown-eabi/newlib/libc'
> Making all in stdlib
> make[3]: Entering directory 
>
`/home/rkadekar/build-newlib/powerpc-unknown-eabi/newlib/libc/stdlib'
> powerpc-unknown-eabi-gcc -DPACKAGE=\"newlib\"
> -DVERSION=\"1.8.2\"  -I. 
> -I../../../../../newlib-1.8.2/newlib/libc/stdlib 
> -O2
> -mrelocatable-lib 
> -mno-eabi -mstrict-align -DMISSING_SYSCALL_NAMES
> -I../../targ-include 
>
-I../../../../../newlib-1.8.2/newlib/libc/../libc/include
> -fno-builtin      
> -g -O2 -W -Wall -c 
>
../../../../../newlib-1.8.2/newlib/libc/stdlib/__adjust.c
> make[3]: powerpc-unknown-eabi-gcc: Command not found
> make[3]: *** [__adjust.o] Error 127
> make[3]: Leaving directory 
>
`/home/rkadekar/build-newlib/powerpc-unknown-eabi/newlib/libc/stdlib'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory 
>
`/home/rkadekar/build-newlib/powerpc-unknown-eabi/newlib/libc'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory 
>
`/home/rkadekar/build-newlib/powerpc-unknown-eabi/newlib'
> make: *** [all-target-newlib] Error 2
> 
> 
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Messenger - Talk while you surf!  It's FREE.
> http://im.yahoo.com/


__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list