This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]