Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a program that compiled fine on Ubuntu ARM (12.04) but it cannot run due to linking errrs. e.g. cannot be found, however it is clearly in


ldconfig -v shows it as well

What's weird is when I pass LD_LIBRARY_PATH=/usr/lib/arm-gnueabihf/ to ldd (after the shared library), I get the message

ldd: LD_LIBRARY_PATH=/usr/lib/arm-linux-gnueabihf/: No such file or directory

While the directory clearly exists. What could be going wrong? I ran sudo ldconfig.

share|improve this question
How did you compile the program? With what compiler and what options? – Gilles Feb 1 '13 at 22:18

You may have mixed ABIs. There are currently several ABIs for ARM processors in common use, due to the variety in ARM CPUs. Check that you have a gnueabihf binary, and not a gnueabi binary. You can install both kinds of binaries on the same system, but you can't link both kinds of libraries inside a single executable. It's like 32-bit and 64-bit executables on x86 systems.

With LD_LIBRARY_PATH, the right command to add the variable in the environment for the duration of the ldd command is

LD_LIBRARY_PATH=/usr/lib/arm-linux-gnueabihf/ ldd /path/to/binary

You wrote ldd LD_LIBRARY_PATH=/usr/lib/arm-linux-gnueabihf/ /path/to/binary which tells ldd to act on a file called LD_LIBRARY_PATH=/usr/lib/arm-linux-gnueabihf/.

share|improve this answer
I think you're right, it has something to do with mixed ABI's. I added -mfloat-abi=softfp to gcc, it won't compile without it. But now it won't link. I suppose my system libs are hardfp. Can I install the softfp versions or do I need to switch to a softfp distro? – RobbR Feb 1 '13 at 23:29
@RobbR You can install both on the same system. I think it's supposed to work on Ubuntu now (apt-get install packagename:armel), but I have no experience (I do arm and I do Ubuntu but I don't do Ubuntu on arm). – Gilles Feb 1 '13 at 23:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.