[meta-freescale] ADT Installer produces bad compiler?

Paul Sievers p.sievers at ms-ag.de
Fri Nov 17 06:31:26 PST 2017



-----Ursprüngliche Nachricht-----
Von: Paul Sievers [mailto:p.sievers at ms-ag.de] 
Gesendet: Freitag, 17. November 2017 13:12
An: 'Otavio Salvador'
Cc: 'meta-freescale at yoctoproject.org'
Betreff: AW: [meta-freescale] ADT Installer produces bad compiler?



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

On Fri, Nov 17, 2017 at 5:25 AM, Paul Sievers <p.sievers at ms-ag.de> wrote:
> 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?

No idea; you need to debug. It might be many different things. I'd start using strace and try to see what is missing.

-- 
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
---------------------------------------------------------------------------------------------------------------------------------
Here is strace output:
root at imx6ulevk:~# strace /home/root/tt
execve("/home/root/tt", ["/home/root/tt"], [/* 15 vars */]) = -1 ENOENT (No such file or directory) write(2, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
) = 40
exit_group(1)                           = ?
+++ exited with 1 +++
root at imx6ulevk:~#

Best Regards
Paul

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
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         8
  Size of section headers:           40 (bytes)
  Number of section headers:         39
  Section header string table index: 36
root at imx6ulevk:~# readelf -h /usr/bin/ls
readelf: Error: '/usr/bin/ls': No such file
root at imx6ulevk:~# readelf -h /bin/ls
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:               0x14524
  Start of program headers:          52 (bytes into file)
  Start of section headers:          114796 (bytes into file)
  Flags:                             0x5000402, has entry point, Version5 EABI, hard-float ABI
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         8
  Size of section headers:           40 (bytes)
  Number of section headers:         28

Best Regards
Paul



More information about the meta-freescale mailing list