This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

RE: Cross compile error question: i686 to powerpc--linux-gnu



  [ the list server seems to be dead with a full disk ]

>-----Original Message-----
>From: Peter Barada [mailto:pbarada@mail.wm.sps.mot.com]

>Ten I see that it is trying to find crt0.o, libgcc.a from lib/crt0.o
>which is *NOT* what I'd expect.  Is there anyway to specify more than
>one '-m' selector to gcc?

  The information you're looking for is all covered in "Using and porting
the GCC compiler : [Makefile] Framents : The Target Makefile Fragment"

  In your case, the m68k-elf compiler uses the file config/m68k/t-m68kelf.

----------------
MULTILIB_OPTIONS = m68000/m68020/m5200/mcpu32 m68881/msoft-float
MULTILIB_DIRNAMES =
MULTILIB_MATCHES = m68000=mc68000 m68000=m68302 mcpu32=m68332 m68020=mc68020
m68020=m68040 m68020=m68060
MULTILIB_EXCEPTIONS = m68000/msoft-float m5200/m68881 m5200/msoft-float
mcpu32/m68881 mcpu32/msoft-float
----------------

>m68k-elf-gcc -o test test.c -m5200
>/usr/local/wave/cross-test-tools/m68k-elf/lib/m5200/crt0.o: 
>
>m68k-elf-gcc -o test test.c -msoft-float
>/usr/local/wave/cross-test-tools/m68k-elf/lib/msoft-float/crt0.o:
>
>m68k-elf-gcc -o test test.c -msoft-float -m5200
>/usr/local/wave/cross-test-tools/m68k-elf/lib/crt0.o:

  Seems like m5200 and msoft-float is regarded as an illegal combination,
although I have no idea why; perhaps the soft-float routines use some
assembler ops that don't exist in that core, and nobody had time to fix
it, so the combination was forbidden.  Grepping the changelogs for
't-m68kelf' might give you some leads.


    DaveK
-- 
Burn your ID card!  http://www.optional-identity.org.uk/
Help support the campaign, copy this into your .sig!



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

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