cross compiler - gcc compile failed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



   Hi list,

 I'm currently compiling gcc on a linux 2.6 box and
the first try was using gcc 3.4 to compile gcc 3.2
with specific flags ( -march -mtune -O3 etc... in fact
optimization flags for future tests ) and all went
well.

 I'm used to do it since I'm a gentoo user and a linux
well experienced user ( professionnal and home use ).

 But I want to set up a linux server to compile
binaries for linux ( so a native linux gcc compiler -
piece of cake ;) ) and also a toolchain to cross
compile c++ sources from linux host to win32 target. I
encounter some  troubles , the first step ( binutils
2.15) is ok :

./configure --prefix=/usr/local/cross-win32
--target=i386-mingw32msvc --with-gnu-as -with-gnu-ld
--disable-multilib -v --host=i686-pc-linux-gnu && make
&& make install

then I add /usr/local/cross-win32/bin to $PATH, 
cp -Rvf  mingw runtime/include to
/usr/local/cross-win32/i386-mingw32msvc

I unpack gcc sources, 

./configure --prefix=/usr/local/cross-win32
--target=i386-mingw32msvc --with-gnu-as -with-gnu-ld
--disable-multilib -v --host=i686-pc-linux-gnu 

Everything is ok with a such configure line, and it
even says that links are now ready to set up a cross
compiler from linux i586 to win32 i386.

  But then, the make step crashes, quite early. :

----------------------------------------------------
/TEST/gcc-3.3.2/gcc/xgcc -B/TEST/gcc-3.3.2/gcc/
-B/usr/local/cross-win32/i386-mingw32msvc/bin/
-B/usr/local/cross-win32/i386-mingw32msvc/lib/
-isystem
/usr/local/cross-win32/i386-mingw32msvc/include -O2
-I./../winsup/include -I./../winsup/cygwin/include
-I./../winsup/w32api/include -DIN_GCC -DCROSS_COMPILE 
 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -isystem ./include   -g 
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc
-I. -I. -I. -I./. -I./config -I./../include 
-DL_muldi3 -c ./libgcc2.c -o libgcc/./_muldi3.o
/root/tmp/ccCfpIwz.s: Assembler messages:
/root/tmp/ccCfpIwz.s:231: Error: unknown pseudo-op:
`.def'
/root/tmp/ccCfpIwz.s:231: Error: unknown pseudo-op:
`.scl'
/root/tmp/ccCfpIwz.s:231: Error: unrecognized symbol
type ""
/root/tmp/ccCfpIwz.s:231: Error: junk at end of line,
first unrecognized character is `3'
/root/tmp/ccCfpIwz.s:231: Error: unknown pseudo-op:
`.endef'
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory `/TEST/gcc-3.3.2/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory `/TEST/gcc-3.3.2/gcc'
make: *** [all-gcc] Error 2
-----------------------------------------------

Space disk left is good, and I am superuser.

--------------------------------------------------
root@lat7960 /TEST/gcc-3.3.2 # df
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda6             4.9G  1.1G  3.9G  22% /
/dev/sda1             100M   35M   66M  35% /boot
/dev/sda10            7.5G   50M  7.4G   1% /tmp
/dev/sda7              15G  3.0G   12G  21% /usr
/dev/sda9             3.5G  137M  3.3G   4% /var
/dev/sda5             2.0G   78M  1.9G   4% /var/log
/dev/sdb1              34G  593M   34G   2% /home
--------------------------------------------------

 I don't understand why it crashes, it's really weird.
Do the march mtune etc.. options are not compatible
with --target and --host or something like that ?

I use gcc 3.3.4 to compile gcc 3.3.2 as a cross
compiler. If someone could tell me what this is all
about please...Or a good updated cross compile how-to
( already read kegel, adams, etc... )

 Please answer to all because I didn't yet suscribed
to this gcc list ( I'm already on debian lists and
it's high volume enough )

Any feedback would be appreciated,
Regards,


--------------------------------------------------------
Remy HAREL          -          http://www.chezrem.org  |
Linux registered user #224740                          |
France Telecom Recherche & Developpement - Teamlog     | 
-------------------------------------------------------


	

	
		
__________________________________________________________________
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux