Reputation: 402
I am tryin to compile an opensource project for ARM (Xvisor) but apparently gcc is using the wrong ldfile to link the library libncurse
indeed when I compile, I got the following error:
/usr/gnat/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.3.1/ld: cannot find libncurses.so.5
And ldconfig
seems to have the library in it
ldconfig -p | grep "curse"
libncursesw.so.5 (libc6,x86-64) => /lib/x86_64-linux-gnu/libncursesw.so.5
libncurses.so.5 (libc6,x86-64) => /lib/x86_64-linux-gnu/libncurses.so.5
libncurses.so.5 (libc6) => /lib/i386-linux-gnu/libncurses.so.5
libncurses.so.5 (libc6) => /lib32/libncurses.so.5
I don't understand why gcc is using the gnat ldfile instead of the system ldfile.
Upvotes: 0
Views: 77
Reputation: 457
Try to reinstall build-essential package
sudo apt-get remove build-essential && sudo apt-get install build-essential
/usr/gnat
is not the main directory for the system library
Upvotes: 1
Reputation: 402
The solution was that Makefile was using gcc
tool instead of the cross compile gcc:arm-eabi-gcc
Upvotes: 1