[fpc-pascal] CThreads problem when cross-compiling to ARM/RPi.
jonas.maebe at elis.ugent.be
Thu May 23 15:19:27 CEST 2013
On 23 May 2013, at 15:03, Bruce Tulloch wrote:
> On Thu, May 23, 2013 at 10:50 PM, Jonas Maebe <jonas.maebe at elis.ugent.be
>> On 23 May 2013, at 14:32, Bruce Tulloch wrote:
>> On Thu, May 23, 2013 at 10:28 PM, Jonas Maebe <jonas.maebe at elis.ugent.be
>>>> On 23 May 2013, at 14:25, Bruce Tulloch wrote:
>>>> Do you have a libdl.so in your library search path? And what kind
>>>> reference to libdl does link.res contain?
>>>> Yes, it's in the search path as:
>>> root at beria:/lib/arm-linux-gnueabihf# ls -l libdl*
>>> -rw-r--r-- 1 root root 9812 Feb 23 00:37 libdl-2.13.so
>>> lrwxrwxrwx 1 root root 13 Feb 23 00:37 libdl.so.2 -> libdl-2.13.so
>> You don't have libdl.so, only libdl.so.2. The latter is for use at
>> time, the former for use at link/compile time. Install the libc-dev
>> similar package in your crossroot to get it along with other missing
>> symlinks. Do not start creating those manually, it will only lead
>> to errors
>> and confusion down the line.
> Okay, but it is installed:
> root at beria:~# apt-file search libdl.so
> libc6: /lib/arm-linux-gnueabihf/libdl.so.2
> libc6-dev: /usr/lib/arm-linux-gnueabihf/libdl.so
The topic of this thread is about cross-compiling, but those are the
files on the native system. Are you getting this error while cross-
compiling or while compiling natively? If you are compiling natively,
try compiling something with "gcc -### x.c -ldl" to see what
parameters gcc passes to linker (create an empty x.c file first).
> root at beria:~# apt-show-versions libc6-dev
> libc6-dev/wheezy uptodate 2.13-38+rpi2
> but I noticed that:
> root at beria:/usr/lib/arm-linux-gnueabihf# ls -l libdl*
> -rw-r--r-- 1 root root 9042 Feb 23 00:38 libdl.a
> lrwxrwxrwx 1 root root 35 Feb 23 00:38 libdl.so ->
> which means they're the same file.
Yes, they are the same file. Why that is the case and why nevertheless
need both is what I tried to explain in my previous message.
More information about the fpc-pascal