-----Ursprüngliche Nachricht----- Von: Paul Sievers [mailto:[email protected]] Gesendet: Freitag, 17. November 2017 13:12 An: 'Otavio Salvador' Cc: '[email protected]' Betreff: AW: [meta-freescale] ADT Installer produces bad compiler?
-----Ursprüngliche Nachricht----- Von: Otavio Salvador [mailto:[email protected]] Gesendet: Freitag, 17. November 2017 12:55 An: Paul Sievers Cc: [email protected] Betreff: Re: [meta-freescale] ADT Installer produces bad compiler? On Fri, Nov 17, 2017 at 5:25 AM, Paul Sievers <[email protected]> wrote: > Thanks, Otavio, that works. > > Now, my next problem: I produce "tt" on my VirtualBox-Linux: > paul@VBox:~/DataExchange/workspace/tt$ $CC -o tt src/tt.o > paul@VBox:~/DataExchange/workspace/tt$ cksum tt > 2134736149 39910 tt > paul@VBox:~/DataExchange/workspace/tt$ > > I copy it to my target machine (i.MX6UL EVK) via SD-card: > root@imx6ulevk:~# cksum /home/root/tt > 2134736149 39910 tt > root@imx6ulevk:~# > > I cannot execute it: > root@imx6ulevk:~# /home/root/tt > -sh: /home/root/tt: No such file or directory root@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@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@imx6ulevk:~# Best Regards Paul Could this be a hard fload/soft float problem? root@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@imx6ulevk:~# readelf -h /usr/bin/ls readelf: Error: '/usr/bin/ls': No such file root@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 -- _______________________________________________ meta-freescale mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-freescale
