"No such file or directory" running arm-none-eabi-gcc

Asked by Dennis Newbold

Terminal output:
cd gcc-arm-none-eabi-4_8-2013q4/bin
dennisn@dennis-linux-gc3 ~/gcc-arm-none-eabi-4_8-2013q4/bin $ ls -l arm-none-eabi-gcc
-rwxr-xr-x 2 dennisn dennisn 621860 Dec 3 11:40 arm-none-eabi-gcc
dennisn@dennis-linux-gc3 ~/gcc-arm-none-eabi-4_8-2013q4/bin $ ./arm-none-eabi-gcc --version
bash: ./arm-none-eabi-gcc: No such file or directory
dennisn@dennis-linux-gc3 ~/gcc-arm-none-eabi-4_8-2013q4/bin $ strace ./arm-none-eabi-gcc --version
execve("./arm-none-eabi-gcc", ["./arm-none-eabi-gcc", "--version"], [/* 38 vars */]) = -1 ENOENT (No such file or directory)
dup(2) = 3
fcntl(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f388a3fa000
lseek(3, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
) = 40
close(3) = 0
munmap(0x7f388a3fa000, 4096) = 0
exit_group(1) = ?

The ls indicates there is no spelling error, and the arm-none-eabi-gcc file can be found. It can't be a $PATH problem because I am invoking it within its own folder. The strace output shows that the error message is a result of the initial execve call. Since the file itself exists, I assume this is a problem with finding a shared library. Confusingly, ldd gives:

ldd ./arm-none-eabi-gcc
 not a dynamic executable

Not being terribly familiar with objdump nor the ELF file format, I did a hexdump of the arm-none-eabi-gcc file and found within it an absolute reference to: /lib/ld-linux.so.2, and verified that this file does not exist on my system, so it appears to be a Linux distro problem of some sort. We are currently using Linux Mint Cinammon 15. I don't know too much about it (other team members selected it) and have been unable to determine which version of Ubuntu or Debian it most closely corresponds to. This is the uname output:

uname -a
Linux dennis-linux-gc3 3.8.0-19-generic #30-Ubuntu SMP Wed May 1 16:35:23 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

And here is the content of a couple of files in the /etc tree which look like they may contain useful information:

cat /etc/debian_version
wheezy/sid
dennisn@dennis-linux-gc3 ~ $ cat /etc/linuxmint/info
RELEASE=15
CODENAME=olivia
EDITION="Cinnamon 64-bit"
DESCRIPTION="Linux Mint 15 Olivia"
DESKTOP=Gnome
TOOLKIT=GTK
NEW_FEATURES_URL=http://www.linuxmint.com/rel_olivia_whatsnew.php
RELEASE_NOTES_URL=http://www.linuxmint.com/rel_olivia.php
USER_GUIDE_URL=http://www.linuxmint.com/documentation.php
GRUB_TITLE=Linux Mint 15 Cinnamon 64-bit

Regarding the original missing file which appears to be /lib/ld-linux.so.2:

I did find the following with a similar name:

ls -l /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
lrwxrwxrwx 1 root root 10 Sep 30 08:01 /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 -> ld-2.17.so

Which suggests that it may be possible to set up a symlink if I knew what the heck I was doing. Of course, that may just reveal another problem which is currently being masked, so ...

Would greatly appreciate any help / suggestions. Moving to a different distro would be possible (if I knew what to switch to), but painful, as its an 8-engineer team. I'd prefer to find a different solution if feasible.

Thank you.

Question information

Language:
English Edit question
Status:
Answered
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Joey Ye (jinyun-ye) said :
#1

Looks to me you need to install 32-bit C library on your 64-bit machine.
Please search relative topics in your system about how to install ia32-libs.

Thanks,
Joey

On Fri, Feb 7, 2014 at 4:01 AM, Dennis Newbold <
<email address hidden>> wrote:

> New question #243488 on GCC ARM Embedded:
> https://answers.launchpad.net/gcc-arm-embedded/+question/243488
>
> Terminal output:
> cd gcc-arm-none-eabi-4_8-2013q4/bin
> dennisn@dennis-linux-gc3 ~/gcc-arm-none-eabi-4_8-2013q4/bin $ ls -l
> arm-none-eabi-gcc
> -rwxr-xr-x 2 dennisn dennisn 621860 Dec 3 11:40 arm-none-eabi-gcc
> dennisn@dennis-linux-gc3 ~/gcc-arm-none-eabi-4_8-2013q4/bin $
> ./arm-none-eabi-gcc --version
> bash: ./arm-none-eabi-gcc: No such file or directory
> dennisn@dennis-linux-gc3 ~/gcc-arm-none-eabi-4_8-2013q4/bin $ strace
> ./arm-none-eabi-gcc --version
> execve("./arm-none-eabi-gcc", ["./arm-none-eabi-gcc", "--version"], [/* 38
> vars */]) = -1 ENOENT (No such file or directory)
> dup(2) = 3
> fcntl(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
> fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
> 0x7f388a3fa000
> lseek(3, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
> write(3, "strace: exec: No such file or di"..., 40strace: exec: No such
> file or directory
> ) = 40
> close(3) = 0
> munmap(0x7f388a3fa000, 4096) = 0
> exit_group(1) = ?
>
> The ls indicates there is no spelling error, and the arm-none-eabi-gcc
> file can be found. It can't be a $PATH problem because I am invoking it
> within its own folder. The strace output shows that the error message is a
> result of the initial execve call. Since the file itself exists, I assume
> this is a problem with finding a shared library. Confusingly, ldd gives:
>
> ldd ./arm-none-eabi-gcc
> not a dynamic executable
>
> Not being terribly familiar with objdump nor the ELF file format, I did a
> hexdump of the arm-none-eabi-gcc file and found within it an absolute
> reference to: /lib/ld-linux.so.2, and verified that this file does not
> exist on my system, so it appears to be a Linux distro problem of some
> sort. We are currently using Linux Mint Cinammon 15. I don't know too
> much about it (other team members selected it) and have been unable to
> determine which version of Ubuntu or Debian it most closely corresponds to.
> This is the uname output:
>
> uname -a
> Linux dennis-linux-gc3 3.8.0-19-generic #30-Ubuntu SMP Wed May 1 16:35:23
> UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
>
> And here is the content of a couple of files in the /etc tree which look
> like they may contain useful information:
>
> cat /etc/debian_version
> wheezy/sid
> dennisn@dennis-linux-gc3 ~ $ cat /etc/linuxmint/info
> RELEASE=15
> CODENAME=olivia
> EDITION="Cinnamon 64-bit"
> DESCRIPTION="Linux Mint 15 Olivia"
> DESKTOP=Gnome
> TOOLKIT=GTK
> NEW_FEATURES_URL=http://www.linuxmint.com/rel_olivia_whatsnew.php
> RELEASE_NOTES_URL=http://www.linuxmint.com/rel_olivia.php
> USER_GUIDE_URL=http://www.linuxmint.com/documentation.php
> GRUB_TITLE=Linux Mint 15 Cinnamon 64-bit
>
> Regarding the original missing file which appears to be /lib/ld-linux.so.2:
>
> I did find the following with a similar name:
>
> ls -l /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
> lrwxrwxrwx 1 root root 10 Sep 30 08:01
> /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 -> ld-2.17.so
>
> Which suggests that it may be possible to set up a symlink if I knew what
> the heck I was doing. Of course, that may just reveal another problem
> which is currently being masked, so ...
>
> Would greatly appreciate any help / suggestions. Moving to a different
> distro would be possible (if I knew what to switch to), but painful, as its
> an 8-engineer team. I'd prefer to find a different solution if feasible.
>
> Thank you.
>
> --
> You received this question notification because you are an answer
> contact for GCC ARM Embedded.
>

Can you help with this problem?

Provide an answer of your own, or ask Dennis Newbold for more information if necessary.

To post a message you must log in.