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


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

Re: Compiling gcc now




On Thu, 12 Feb 1998, Robert J. Brown wrote:

> >>>>> "Geoffroy" == Geoffroy Montel <g_montel@yahoo.com> writes:
> 
>     Geoffroy> Hello there Thanks to those who helped me.  I managed to
>     Geoffroy> build binutils 2.8.1 Now I'm trying to build gcc2.8.0.
>     Geoffroy> I run Cygwin 32
> 
>     Geoffroy> $ CC=gcc ./configure --target=m68k-rtems --with-gnu-as
>     Geoffroy> --with-gnu-ld --prefix=/mydir --exec-prefix=/mydir
>     Geoffroy> --with-local-prefix=/mydir --with-gxx-include=/mydir
> 
>     Geoffroy> ok
> 
>     Geoffroy> $ make CC="gcc" CFLAGS="-O4 -g" LANGUAGES="proto c c++"
>     Geoffroy> [...]  rm -f tmplibgcc1.a libgcc1.S cp
>     Geoffroy> ./config/m68k/lb1sf68.asm libgcc1.S for name in _mulsi3
>     Geoffroy> _udivsi3 _divsi3 _umodsi3 _modsi3 _double _float
>     Geoffroy> _floatex _e qdf2 _nedf2 _gtdf2 _gedf2 _ltdf2 _ledf2
>     Geoffroy> _eqsf2 _nesf2 _gtsf2 _gesf2 _ltsf2 _lesf 2; \ do \ echo
>     Geoffroy> ${name}; \ ./xgcc -B./ -O2 -DCROSS_COMPILE -DIN_GCC -O4
>     Geoffroy> -g -I./include -g1 -DIN_LIB GCC2
>     Geoffroy> -D__GCC_FLOAT_NOT_NEEDED -fexceptions -I. -I. -I./config
>     Geoffroy> -c -DL${name} libg cc1.S; \ if [ $? -eq 0 ] ; then true;
>     Geoffroy> else exit 1; fi; \ mv libgcc1.o ${name}.o; \
>     Geoffroy> /gcc/m68k-rtems/bin/ar rc tmplibgcc1.a ${name}.o; \ rm
>     Geoffroy> -f ${name}.o; \ done _mulsi3 as: unrecognized option
>     Geoffroy> `-c68020' make: *** [libgcc1-asm.a] Error 1
> 
> 
>     Geoffroy> I can't find the right line on the Makefile.
> 
> The problem might be addressed in the egcc faq at
> /ftp.cygnus.com:/pub/egcc (I think that's it).

This indicates that xgcc did not find the cross assembler and is using the
native assembler.  Did you install binutils before moving on to gcc? 

When you follow the instructions in the crossgcc FAQ, gcc automatically
finds the correct cross binutils in the build tree.  When you build the
components one at a time, you must make sure gcc can find them.  

--joel
Joel Sherrill                    Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (205) 722-9985