[meta-freescale] ADT Installer produces bad compiler?
Otavio Salvador
otavio.salvador at ossystems.com.br
Mon Nov 20 02:55:58 PST 2017
On Mon, Nov 20, 2017 at 5:43 AM, Paul Sievers <p.sievers at ms-ag.de> wrote:
>
>
> -----Ursprüngliche Nachricht-----
> Von: Otavio Salvador [mailto:otavio.salvador at ossystems.com.br]
> Gesendet: Freitag, 17. November 2017 17:16
> An: Paul Sievers
> Cc: meta-freescale at yoctoproject.org
> Betreff: Re: [meta-freescale] ADT Installer produces bad compiler?
>
> On Fri, Nov 17, 2017 at 12:31 PM, Paul Sievers <p.sievers at ms-ag.de> wrote:
>> Could this be a hard fload/soft float problem?
>>
>> root at imx6ulevk:~# readelf -h tt
>> ELF Header:
>> Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
>> Class: ELF32
>> Data: 2's complement, little endian
>> Version: 1 (current)
>> OS/ABI: UNIX - System V
>> ABI Version: 0
>> Type: EXEC (Executable file)
>> Machine: ARM
>> Version: 0x1
>> Entry point address: 0x82b8
>> Start of program headers: 52 (bytes into file)
>> Start of section headers: 35308 (bytes into file)
>> Flags: 0x5000202, has entry point, Version5 EABI, soft-float ABI
>
> Yes. You found it :-)
>
>
> --
> Otavio Salvador O.S. Systems
> http://www.ossystems.com.br http://code.ossystems.com.br
> Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
>
> How is this supposed to work?
>
> Just adding the appropriate compiler option does not seem to help:
> paul at VBox:~/DataExchange/workspace/tt$ $CC -mfloat-abi=hard -o tt src/tt.c
> In file included from /home/paul/test-yocto/qemuarm/usr/include/features.h:389:0,
> from /home/paul/test-yocto/qemuarm/usr/include/stdio.h:27,
> from src/tt.c:11:
> /home/paul/test-yocto/qemuarm/usr/include/gnu/stubs.h:10:29: fatal error: gnu/stubs-hard.h: No such file or directory
> # include <gnu/stubs-hard.h>
> ^
> compilation terminated.
> paul at VBox:~/DataExchange/workspace/tt$
>
> Does the ADT Installer support hard float?
> Or do I have to build the toolchain manually using "bitbake meta-toolchain"? In this case, how can I configure it for hard float?
You need to build your custom toolchain.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
More information about the meta-freescale
mailing list