[fpc-pascal] arm-linux, program does not start when using unit pthreads
Bernd Mueller
mueller.b at gmx.net
Wed Jan 9 15:22:59 CET 2008
Hello,
when I try to start a simple "Hello"-Program, which uses the unit
pthreads, on an arm-linux target (uClibc), I get the message "not
found". The program is crosscompiled from win32, using the fpc 2.2.0
compiler:
program project1;
{$mode objfpc}{$H+}
uses pthreads;
begin
Writeln('Hello');
end.
There seems to be a problem with the shared libraries. I checked the
directory /lib for the libraries and symlinks, but the required
libraries seem to be present.
ldd project1
checking sub-depends for '/lib/libpthread.so.0'
checking sub-depends for '/lib/libc.so.0'
libpthread.so.0 => /lib/libpthread.so.0 (0x00000000)
libc.so.0 => /lib/libc.so.0 (0x00000000)
/lib/ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x00000000)
Then I compiled a gcc "Hello"-program with the library pthread linked
in. This program runs fine. This is the ldd output:
ldd p
libpthread.so.0 => /lib/libpthread.so.0 (0x4000e000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40028000)
libc.so.0 => /lib/libc.so.0 (0x40038000)
ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x40000000)
I am also wondering about the differences in the address fields of the
ldd ouput. All fpc address fields are set to 0x00000000, while the gcc
address fields have different values.
Thank you for any hints and pointers.
Regards, Bernd.
More information about the fpc-pascal
mailing list