This is the mail archive of the crossgcc@sourceware.cygnus.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]

Linux x86 to Solaris Sparc Cross Compiler


I am trying to create a cross compiler from a Rh6.1 to a Solaris Sparc 2.5.1
machine.  

Here is my error message:
/export/home/alesmi/compliers/solaris-sparc2.5.1/gcc/xgcc -B/export/home/alesmi/compliers/solaris-sparc2.5.1/gcc/ -B/usr/local/2.95.2/sparc-sun-solaris2.5.1/bin/ -I/usr/local/2.95.2/sparc-sun-solaris2.5.1/include  -c -o crt1.o -x assembler-with-cpp ../../gcc-2.95.2/gcc/config/sparc/sol2-c1.asm
_muldi3
as: option `-s' is ambiguous
make[1]: *** [crt1.o] Error 1 

Here is my configure line.
../gcc-2.95.2/configure --host=i686-pc-linux-gnu --target=sparc-sun-solaris2.5.1 --prefix=/usr/local/2.95.2 --with-gnu-as --with-gnu-ld --with-headers=/prog/alesmi/compliers/solaris-sparc-2.5.1/include --with-libs=/prog/alesmi/compliers/solaris-sparc-2.5.1/lib --enable-languages=c++

I've done them to solaris 2.6 with no trouble, so I am kind of confused by the
trouble I'm having.

Also, I found a thread from back in mid-febuary about troubles similar mine
with a solaris x86 to solaris-sparc cross.  Their problem was resolved by Kai
who traced it to a bad DEFINE in gcc/config/i386/sol2gas.h.

My problem is caused by gcc/config/sparc/sol2.h in the ASM_SPECS section.

But my thrashing about in that file has not helped.

  -- 
Alex Smith
Software Engineer
Intruder Alert
Core Team Lead
Axent Technologies, Inc.
(801) 227-3711
alex@securesmith.net

------
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]