public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* Error in building GCC 2.95.2 cross compiler for powerpc-unknwn-eabi on LINUX 7.0
@ 2000-10-27 17:18 revati kadekar
  2000-10-29 15:20 ` Jonathan Larmour
  0 siblings, 1 reply; 2+ messages in thread
From: revati kadekar @ 2000-10-27 17:18 UTC (permalink / raw)
  To: crossgcc

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Error in building GCC 2.95.2 cross compiler for powerpc-unknwn-eabi on LINUX 7.0
  2000-10-27 17:18 Error in building GCC 2.95.2 cross compiler for powerpc-unknwn-eabi on LINUX 7.0 revati kadekar
@ 2000-10-29 15:20 ` Jonathan Larmour
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2000-10-29 15:20 UTC (permalink / raw)
  To: revati kadekar; +Cc: crossgcc

revati kadekar wrote:
> 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.

This is covered in the crossgcc FAQ. gcc cannot find the powerpc assembler.
The simplest solution is to use the same --prefix argument when configuring
both binutils and gcc.

Jifl

> > 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'

-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-10-29 15:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-27 17:18 Error in building GCC 2.95.2 cross compiler for powerpc-unknwn-eabi on LINUX 7.0 revati kadekar
2000-10-29 15:20 ` Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).