[meta-freescale] ADT Installer produces bad compiler?

Paul Sievers p.sievers at ms-ag.de
Thu Nov 16 23:25:16 PST 2017


Thanks, Otavio, that works.

Now, my next problem: I produce "tt" on my VirtualBox-Linux:
paul at VBox:~/DataExchange/workspace/tt$ $CC -o tt src/tt.o
paul at VBox:~/DataExchange/workspace/tt$ cksum tt
2134736149 39910 tt
paul at VBox:~/DataExchange/workspace/tt$

I copy it to my target machine (i.MX6UL EVK) via SD-card:
root at imx6ulevk:~# cksum /home/root/tt
2134736149 39910 tt
root at imx6ulevk:~#

I cannot execute it:
root at imx6ulevk:~# /home/root/tt
-sh: /home/root/tt: No such file or directory
root at imx6ulevk:~# 

What is amiss?

Best Regards
Paul

-----Ursprüngliche Nachricht-----
Von: Otavio Salvador [mailto:otavio.salvador at ossystems.com.br] 
Gesendet: Donnerstag, 16. November 2017 16:57
An: Paul Sievers
Cc: meta-freescale at yoctoproject.org
Betreff: Re: [meta-freescale] ADT Installer produces bad compiler?

On Thu, Nov 16, 2017 at 10:37 AM, Paul Sievers <p.sievers at ms-ag.de> wrote:
> I used the ADT installer to install a cross compiler for an i.MX6UL 
> processor (with ARM architecture) on my Intel x68_64 VirtualBox-Linux.
>
> It ran without problems and produced /opt/poky/1.8 and 
> /home/paul/test-yocto .
>
>
>
> I tried to use it on a simple “Hello World” program:
>
> paul at VBox:~/DataExchange/workspace/tt$ source 
> /opt/poky/1.8/environment-setup-armv5e-poky-linux-gnueabi
>
> paul at VBox:~/DataExchange/workspace/tt$ arm-poky-linux-gnueabi-gcc  -o "tt"
> -L /home/paul/test-yocto/qemuarm/usr/lib  ./src/tt.o
>
> /opt/poky/1.8/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/ld:
> cannot find crt1.o: No such file or directory
>
> /opt/poky/1.8/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/ld:
> cannot find crti.o: No such file or directory
>
> /opt/poky/1.8/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/ld:
> cannot find crtbegin.o: No such file or directory
>
> /opt/poky/1.8/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/ld:
> cannot find -lgcc
>
> /opt/poky/1.8/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/ld:
> cannot find -lgcc_s
>
> /opt/poky/1.8/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/ld:
> cannot find /lib/libc.so.6
>
> /opt/poky/1.8/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/ld:
> cannot find /usr/lib/libc_nonshared.a
>
> /opt/poky/1.8/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/ld:
> cannot find /lib/ld-linux.so.3
>
> collect2: error: ld returned 1 exit status
>
> paul at VBox:~/DataExchange/workspace/tt$
>
>
>
> I tried to fix this with
>
> export LIBRARY_PATH=/home/paul/test-yocto/qemuarm/usr/lib
>
> but it didn’t help.
>
>
>
> What could be wrong?
>
>
>
> I attached the adt_installer.conf that I used.

The problem is not with ADT but that you must use $CC so it includes the sysroot arguments.

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