No such file or directory on Linux ARM

English Support for Syncovery on Linux etc.
Post Reply
patanne
Posts: 12
Joined: Wed Mar 10, 2021 2:51 pm

No such file or directory on Linux ARM

Post by patanne »

I am having an issue running SyncoveryCL on Linux on an ODROID-HC2, which uses the ODROID-XU4 platform.

The unit uses an 8-core ARMv7. Below is a dump of one core for brevity. Also there is a dump of uname & dpkg.

Code: Select all

root:# cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 3 (v7l)
BogoMIPS        : 36.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 3

root:# uname -a
Linux ns-0c6e 4.9.103-odroidxu4 #1 SMP PREEMPT Tue May 29 03:38:14 PDT 2018 armv7l GNU/Linux

root:# dpkg --print-architecture
armhf
Following this info I downloaded the armhf version of Syncovery, Syncovery-9.31-armhf.deb.

During installation and subsequent execution I am getting,

Code: Select all

root:# /usr/lib/Syncovery/SyncoveryCL
-bash: /usr/lib/Syncovery/SyncoveryCL: No such file or directory
After confirming proper chmod I did another test to be sure it wasn't a dependency, even though the message should/would be different.

Code: Select all

root:# strace /usr/lib/Syncovery/SyncoveryCL
execve("/usr/lib/Syncovery/SyncoveryCL", ["/usr/lib/Syncovery/SyncoveryCL"], [/* 21 vars */]) = -1 ENOENT (No such file or directory)
fstat64(2, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
write(2, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
) = 40
getpid()                                = 13452
exit_group(1)                           = ?
+++ exited with 1 +++
I have seen this before when installing a 32-bit app/package on 64-bit Linux, either by accident or because you have no choice; where you try to execute a file that is clearly there but you are told it is not. You have to then follow a process to support multi-architecture.

My questions is, what am I missing? It feels as if I have installed the wrong architecture, yet all the above output tells me I have installed the proper version.

tobias
Posts: 1589
Joined: Tue Mar 31, 2020 7:37 pm

Re: No such file or directory on Linux ARM

Post by tobias »

Hi,
can you enter

Code: Select all

ldd /usr/lib/Syncovery/SyncoveryCL
and also,

Code: Select all

file /usr/lib/Syncovery/SyncoveryCL
These will give us additional info.

patanne
Posts: 12
Joined: Wed Mar 10, 2021 2:51 pm

Re: No such file or directory on Linux ARM

Post by patanne »

Here you go...

Code: Select all

root:# ldd /usr/lib/Syncovery/SyncoveryCL
        not a dynamic executable

Code: Select all

root:# file /usr/lib/Syncovery/SyncoveryCL
/usr/lib/Syncovery/SyncoveryCL: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.3, for GNU/Linux 2.0.0, stripped

tobias
Posts: 1589
Joined: Tue Mar 31, 2020 7:37 pm

Re: No such file or directory on Linux ARM

Post by tobias »

Hi,
thanks! Does the file /lib/ld-linux.so.3 exist?

patanne
Posts: 12
Joined: Wed Mar 10, 2021 2:51 pm

Re: No such file or directory on Linux ARM

Post by patanne »

It does not exist in /lib though it does exist in /lib/arm-linux-gnueabihf, which is in /etc/ld.so.conf.d/arm-linux-gnueabihf.conf, so I thought nothing of it.

Adding a symlink fixes the issue.

Code: Select all

ln -s /lib/arm-linux-gnueabihf/ld-linux.so.3 /lib/ld-linux.so.3

tobias
Posts: 1589
Joined: Tue Mar 31, 2020 7:37 pm

Re: No such file or directory on Linux ARM

Post by tobias »

Hello,
thanks that's good to hear!

Post Reply