[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Crosscompiling on ArchLinux



On 16/10/2013 10:00, M.A. Kehr wrote:
So as far as I see it, cc1 searches for the libmpc.so.3 but can't
find it, where does cc1 search for it, because there is a libmpc.so.3
in /usr/lib

Different Linux distributions use different shared libraries, so basically if you try to run binaries for one distribution on an another distribution you are going to get trouble. The safest approach is to rebuild the whole toolchain for your distribution, as MiKRO suggested.

BTW, to answer your question, try the following:
ldd /usr/libexec/gcc/m68k-atari-mint/4.6.4/cc1

It will list the shared libraries used by the executable, and their location.

Since you obviously have libmpc.so.3, you may have trouble mixing 32-bit and 64-bit components. Or your libmpc.so.3 lacks some exported functions, I don't know. You may want to hack the LD_LIBRARY_PATH variable, but that should not be necessary.

Personally, my main Linux system is Debian Testing. I have installed Ubuntu inside a chroot, it works fine to run the cross-compiler (and even build it).

Good luck.

--
Vincent Rivière