[ELDK] arm-linux-x86 failure

Kin Cho send.kin.mail at gmail.com
Wed Jul 22 20:11:28 CEST 2009


Hi Wolfgang,

Sorry for my misunderstanding.

Actually what I really need is to generate an ARM, rather than a "UNIX -
System V" elf executable (as in OS/ABI shown by readelf), however, ELDK
seems to be missing C runtime objects to support it:

dadix 2.6.28-13-generic ~/home/kin/coding$ arm-linux-gnueabi-gcc
-mabi=apcs-gnu test.c -o test
/home/kin/eldk/usr/bin/../lib/gcc/arm-linux-gnueabi/4.2.2/../../../../arm-linux-gnueabi/bin/ld:
ERROR: Source object /tmp/ccEcwwQb.o has EABI version 0, but target test has
EABI version 4
/home/kin/eldk/usr/bin/../lib/gcc/arm-linux-gnueabi/4.2.2/../../../../arm-linux-gnueabi/bin/ld:
failed to merge target specific data of file /tmp/ccEcwwQb.o
collect2: ld returned 1 exit status
dadix 2.6.28-13-generic ~/home/kin/coding$ arm-linux-gnueabi-gcc
-mabi=apcs-gnu test.c -c
dadix 2.6.28-13-generic ~/home/kin/coding$ arm-linux-gnueabi-readelf -h
test.o | grep ABI
  OS/ABI:                            ARM
  ABI Version:                       0
  Flags:                             0x400, GNU EABI, VFP
dadix 2.6.28-13-generic ~/home/kin/coding$

Is there a way to rebuild ELDK to provide ARM OS/ABI support?  If so, how?

Thanks,

-kin

dadix 2.6.28-13-generic ~/home/kin/coding$ arm-linux-gnueabi-gcc test.c -o
test
dadix 2.6.28-13-generic ~/home/kin/coding$ arm-linux-gnueabi-readelf -h test
| grep ABI
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Flags:                             0x4000002, has entry point, Version4
EABI
dadix 2.6.28-13-generic ~/home/kin/coding$


On Wed, Jul 22, 2009 at 10:52 AM, Wolfgang Denk <wd at denx.de> wrote:

> Dear Kin Cho,
>
> In message <cdfc7dec0907221021r482cb00ai5104379651fd100d at mail.gmail.com>
> you wrote:
> >
> > You're right.  I misread the CROSS_COMPILE doc as being required only for
> > uboot and kernel.  Anyway, it appears only using
> arm-none-linux-gnueabi-gcc
> > will work, arm-linux-gcc or /home/kin/eldk/usr/arm-linux/bin/gcc won't.
>
> I can only repeat Detlev: you really should try following the manual,
> and not trying random things.
>
> ELDK 4.2 for ARM supports two valid settings of CROSS_COMPILE:
> "CROSS_COMPILE=arm-linux-" and "CROSS_COMPILE=armVFP-linux-", which
> maps to calls of "arm-linux-gcc" resp. "armVFP-linux-gcc".
>
> These two forms are supported and working.
>
> Anything else you are trying leads to undefined behaviour.
>
> Please follow the documentation.
>
> Best regards,
>
> Wolfgang Denk
>
> --
> DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> I don't know if it's what you want, but it's what you get.  :-)
>                      - Larry Wall in <10502 at jpl-devvax.JPL.NASA.GOV>
>


More information about the eldk mailing list