[fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

Luca Olivetti luca at ventoso.org
Wed Apr 4 18:47:30 CEST 2007


En/na Luca Olivetti ha escrit:
> En/na Luca Olivetti ha escrit:
> 
>> the example daemon.pp, for example, crashes right away, strace doesn't 
>> seem very useful to me:
> 
> but it works fine cross-compiling (with fpc 2.0.4).
> I cannot find a way to cross-compile my test program:
> 
> [luca at localhost fork]$ ppcarm 
> -Fu/home/luca/fpc-arm-2.0.4/lib/fpc/2.0.4/units/arm-linux/* 
> -XParm-linux-  -Xd  -Xr/home/luca/lsproroot/usr/lib/ test.pas

After reading the fine documentation I think I found the correct 
incantation of the command (/home/luca/lsproroot has the lspro nfs 
mounted, so the libs are there) but still it doesn't work:


[luca at localhost fork]$ ppcarm 
-Fu/home/luca/fpc-arm-2.0.4/lib/fpc/2.0.4/units/arm-linux/* 
-Fl/home/luca/lsproroot/lib -Fl/home/luca/lsproroot/usr/lib 
-XParm-linux- -Xd  -Xr/lib:/usr/lib test.pas
Free Pascal Compiler version 2.0.4 [2006/08/23] for arm
Copyright (c) 1993-2006 by Florian Klaempfl
Target OS: Linux for ARM
Compiling test.pas
Assembling test
Linking test
/home/luca/fpc-arm-2.0.4/bin/arm-linux-ld: skipping incompatible 
/home/luca/lsproroot/usr/lib//libdl.so when searching for -ldl
/home/luca/fpc-arm-2.0.4/lib/fpc/2.0.4/units/arm-linux/rtl/cthreads.o(.text+0x18): 
In function `CTHREADS_LOADPTHREADS$$BOOLEAN':
: warning: Using 'dlopen' in statically linked applications requires at 
runtime the shared libraries from the glibc version used for linking
/home/luca/lsproroot/usr/lib//libdl.a(dlopen.o)(.text+0x1c): In function 
`dlopen':
: undefined reference to `__dlopen'
/home/luca/lsproroot/usr/lib//libdl.a(dlclose.o)(.text+0x0): In function 
`dlclose':
: undefined reference to `__dlclose'
/home/luca/lsproroot/usr/lib//libdl.a(dlsym.o)(.text+0x1c): In function 
`dlsym':
: undefined reference to `__dlsym'
test.pas(12,3) Error: Error while linking

Bye
-- 
Luca



More information about the fpc-pascal mailing list