Error in the building the Cross-Compiler: xgcc

mzlai@263.net mzlai@263.net
Thu Jun 24 23:24:00 GMT 1999


Hi ;

      I am  doing my cross-compiler for a embedded system.
I use the following:
         binutils-2.9.1
         egcs-1.1.2
         newlib-1.8.1.
My working directory is "/home/tools",and the directory structure as
following:
        /home/tools/binutils-2.9.1
        /home/tools/egcs-1.1.2
        /home/tools/newlib-1.8.1
then I run the shell program :

       cd /home/tools
       target=arm-coff
       prefix=/usr/local/arm
       mkdir  build-binutils
       mkdir  build-gcc
       mkdir  build-newlib

      cd build-binutils
      ../binutils-2.9.1/configure --target=$target  --prefix=$prefix
      make all install
      
      cd ../build-gcc
      ../egcs-1.1.2/configure  --target=$target --prefix=$prefix
                --with-gnu-as  --with-gnu-ld
      make cross install
   
      cd ../build-newlib
      ../newlib-1.8.1/configure --target=$target  --prefix=$prefix
      make all install
      
      exit

When I run the shell program , errors evoked.Maybe it was running 
in the second step----"make cross the egcs" when the error came.
On the console,It prints:
 
     checking whether we are using GNU C...  yes
     checking whether /home/tools/build-gcc/gcc/xgcc                  --B/home/tools/build-gcc/gcc accepts -g...  yes
     checking for POSIXized  ISC.. no
     checking for a BSD compatible install...   /usr/bin/install -c
     x host-mkfrag is unchanged.
     checking  for sys/file.h... yes
     checking  for sys/param.h... yes
     checking  for stdlib.h... yes
     checking  for unistd.h ..   yes
     checking whether the C compiler (/home/tools/build-gcc/gcc/xgcc  
          -B/home/tools/build-gcc/gcc/ -g )work....   no
     configure : error : installation or configuration problem: C compiler              cannot create executables.
     make[1]:  ***[configure-target-libiberty] Error1
     make[1]: Leaving directory '/home/tools/build-gcc'
     make:  ***[cross] Error2

then the program exited.I don't know where is the error happened and what is the reasons.Maybe the "xgcc" is the key of the problem!
 
Ask for help from the all the experts!
Thanks!

Yours MZLai 
Jan 25,1999



 


  





_____________________________________________
Ê׶¼ÔÚÏß--ÏȽøÖйúÈ˵ÄÍøÉϼÒÔ° http://www.263.net
Ãâ·ÑÓÊÏä ÓʼþÔÓÖ¾ Ç©ÃûÓʼþ Óʼþ¼ÓÃÜ Óʼþ×·Éíºô
ËÑË÷ÒýÇæ ¸öÈËÕ¾µã ÔÚÏßÓÎÏ· ÍøÉÏÁÄÌì ÍøÉϹҺÅ
½ðÈÚÍõ¹ú ÔÚÏßɱ¶¾ ÌøÔéÊг¡ Èí¼þÏÂÔØ ÐÝÏÐÓéÀÖ

_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.


More information about the crossgcc mailing list