This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Multiple libgcc builds for MIPS target


Hi,

I'm building a cross compiler for an x86 host/build system and a MIPS
target.  Ideally, I'd like to be able to target both MIPS32 and MIPS64 -
and no matter whether I configure gcc with mips32-*-elf or mips64-*-elf,
the resulting compiler seems capable of producing assembler for both
platforms.  However, when it comes to linking with libgcc, the error
message "ISA mismatch (-mips32) with previous modules (-mips3)"  (or
similar) appears.

MIPS32 and MIPS64 do indeed have different ABIs, so this message is
understandable - but results only because gcc is compiling libgcc only for
the architecture it's configured for.  So, my question: Is it possible to
persuade gcc to compile both MIPS32 and MIPS64 versions of libgcc.a, or do
I need to compile two gccs (one for 32, one for 64) in order to achieve my
goal of targeting both architectures?

-- 
Jon Bright



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