"No such file or directory" running arm-none-eabi-gcc
Terminal output:
cd gcc-arm-
dennisn@
-rwxr-xr-x 2 dennisn dennisn 621860 Dec 3 11:40 arm-none-eabi-gcc
dennisn@
bash: ./arm-none-
dennisn@
execve(
dup(2) = 3
fcntl(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, {st_mode=
mmap(NULL, 4096, PROT_READ|
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(
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@
RELEASE=15
CODENAME=olivia
EDITION="Cinnamon 64-bit"
DESCRIPTION="Linux Mint 15 Olivia"
DESKTOP=Gnome
TOOLKIT=GTK
NEW_FEATURES_URL=http://
RELEASE_NOTES_URL=http://
USER_GUIDE_URL=http://
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_
lrwxrwxrwx 1 root root 10 Sep 30 08:01 /lib/x86_
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
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Dennis Newbold for more information if necessary.