From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claes Lilliesköld To: GCC Help Subject: win32 crosscompiler on Solaris 2.6 Date: Wed, 09 Feb 2000 05:35:00 -0000 Message-id: <38A16D8C.952AF49B@enea.se> X-SW-Source: 2000-02/msg00033.html Hello I have tried to compile 2.95.2 on Solaris 2.6 using GCC 2.8.1. My plan is to use it as cross compiler for windows. This is my configuration: ./configure --target=i386-cygwin32 --prefix=../gcc -v Below is the error I get in the catalog build/gcc. It seems like the makefile tries to use the gcc that I'm building with to compile a i386 assembler file. If I just run the command that does the compilation, it works fine to compile libgcc1.S. Do I use a bad configuration, or is the makefile not working properly. regards, Claes ----------------------------------- error in the catalog gcc ------------------------------------------------ rm -f tmplibgcc1.a libgcc1.S cp ./config/i386/cygwin.asm libgcc1.S for name in _chkstk; \ do \ echo ${name}; \ ./xgcc -B../gcc/i386-cygwin32/bin/ -B./ -I../gcc/i386-cygwin32/include -O2 -I./../winsup/include -DCROSS_COMPILE -DIN_GCC -DSVR4 -g -I./include -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I./config -I./../include -c -DL${name} libgcc1.S; \ if [ $? -eq 0 ] ; then true; else exit 1; fi; \ mv libgcc1.o ${name}.o; \ ` if [ -f /export/home1/clli/gcc/gcc-build/gcc/../binutils/ar ] ; then echo /export/home1/clli/gcc/gcc-build/gcc/../binutils/ar ; else if [ "sparc-sun-solaris2.6" = "i386-pc-cygwin32" ] ; then echo ar; else t='s,x,x,'; echo ar | sed -e $t ; fi; fi` rc tmplibgcc1.a ${name}.o; \ rm -f ${name}.o; \ done _chkstk libgcc1.S: Assembler messages: libgcc1.S:9: Error: Unknown opcode: `pushl' libgcc1.S:10: Error: Illegal operands libgcc1.S:11: Error: Unknown opcode: `addl' libgcc1.S:13: Error: Unknown opcode: `cmpl' libgcc1.S:14: Error: Unknown opcode: `jb' libgcc1.S:16: Error: Unknown opcode: `subl' libgcc1.S:17: Error: Unknown opcode: `orl' libgcc1.S:18: Error: Unknown opcode: `subl' libgcc1.S:21: Error: Unknown opcode: `subl' libgcc1.S:22: Error: Unknown opcode: `orl' libgcc1.S:24: Error: Illegal operands libgcc1.S:25: Error: Illegal operands libgcc1.S:27: Error: Illegal operands libgcc1.S:28: Error: Illegal operands libgcc1.S:29: Error: Bad expression libgcc1.S:29: Error: Bad expression make: *** [libgcc1-asm.a] Error 1 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claes Lilliesköld To: GCC Help Subject: win32 crosscompiler on Solaris 2.6 Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-ID: <38A16D8C.952AF49B@enea.se> X-SW-Source: 2000-q1/msg00227.html Message-ID: <20000401000000.VmK4l3lKHa-M1kkOvOXfVcLM89DI8RcQNluqWDPECs8@z> Hello I have tried to compile 2.95.2 on Solaris 2.6 using GCC 2.8.1. My plan is to use it as cross compiler for windows. This is my configuration: ./configure --target=i386-cygwin32 --prefix=../gcc -v Below is the error I get in the catalog build/gcc. It seems like the makefile tries to use the gcc that I'm building with to compile a i386 assembler file. If I just run the command that does the compilation, it works fine to compile libgcc1.S. Do I use a bad configuration, or is the makefile not working properly. regards, Claes ----------------------------------- error in the catalog gcc ------------------------------------------------ rm -f tmplibgcc1.a libgcc1.S cp ./config/i386/cygwin.asm libgcc1.S for name in _chkstk; \ do \ echo ${name}; \ ./xgcc -B../gcc/i386-cygwin32/bin/ -B./ -I../gcc/i386-cygwin32/include -O2 -I./../winsup/include -DCROSS_COMPILE -DIN_GCC -DSVR4 -g -I./include -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I./config -I./../include -c -DL${name} libgcc1.S; \ if [ $? -eq 0 ] ; then true; else exit 1; fi; \ mv libgcc1.o ${name}.o; \ ` if [ -f /export/home1/clli/gcc/gcc-build/gcc/../binutils/ar ] ; then echo /export/home1/clli/gcc/gcc-build/gcc/../binutils/ar ; else if [ "sparc-sun-solaris2.6" = "i386-pc-cygwin32" ] ; then echo ar; else t='s,x,x,'; echo ar | sed -e $t ; fi; fi` rc tmplibgcc1.a ${name}.o; \ rm -f ${name}.o; \ done _chkstk libgcc1.S: Assembler messages: libgcc1.S:9: Error: Unknown opcode: `pushl' libgcc1.S:10: Error: Illegal operands libgcc1.S:11: Error: Unknown opcode: `addl' libgcc1.S:13: Error: Unknown opcode: `cmpl' libgcc1.S:14: Error: Unknown opcode: `jb' libgcc1.S:16: Error: Unknown opcode: `subl' libgcc1.S:17: Error: Unknown opcode: `orl' libgcc1.S:18: Error: Unknown opcode: `subl' libgcc1.S:21: Error: Unknown opcode: `subl' libgcc1.S:22: Error: Unknown opcode: `orl' libgcc1.S:24: Error: Illegal operands libgcc1.S:25: Error: Illegal operands libgcc1.S:27: Error: Illegal operands libgcc1.S:28: Error: Illegal operands libgcc1.S:29: Error: Bad expression libgcc1.S:29: Error: Bad expression make: *** [libgcc1-asm.a] Error 1