Okay, so I'm not trying to link statically, not intentionally anyway. Here's the command line from ppas.sh that produces this error:
/usr/local/opt/binutils/bin/arm-linux-ld \ --sysroot=/usr/local/opt/chroot/raspbian/rootfs \ --dynamic-linker=/lib/ld-linux-armhf.so.3 \ -s -L. -o arm-test-threads link.res and the dynamic linker referred to is: root@beria:/lib# file ld-linux-armhf.so.3 ld-linux-armhf.so.3: symbolic link to `arm-linux-gnueabihf/ld-2.13.so' root@beria:/lib# file arm-linux-gnueabihf/ld-2.13.so arm-linux-gnueabihf/ld-2.13.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, BuildID[sha1]=0x40caad061df15685e213cec1e4dfe1ba5f67701c, stripped Any clues? -b On Thu, May 23, 2013 at 10:18 PM, Jonas Maebe <jonas.ma...@elis.ugent.be>wrote: > > On 23 May 2013, at 14:10, Bruce Tulloch wrote: > > However, if I simply add this uses clause: >> >> uses >> cthreads; >> >> the program compiles fine but fails when linking: >> >> Linking arm-test-threads >> /usr/local/lib/fpc/2.7.1/ >> units/arm-linux/rtl/cthreads.**o: In function >> `CTHREADS_$$_LOADPTHREADS$$**BOOLEAN': >> cthreads.pp:(.text.n_cthreads_**$$_loadpthreads$$boolean+0xc): warning: >> Using >> 'dlopen' in statically linked applications requires at runtime the shared >> libraries from the glibc version used for linking >> > > Why/how are you trying to create a statically linked binary? As the > message above explains, statically linking libdl relies on a bunch of > library magic. At the very least you'll probably also have to link libc > explicitly, but I would really recommend to link dynamically instead. > Support for binaries statically linked against C libraries is generally > very much untested, and known not to work on certain platforms (e.g. > Linux/x86-64). > > > Jonas > ______________________________**_________________ > fpc-pascal maillist - > fpc-pascal@lists.freepascal.**org<fpc-pascal@lists.freepascal.org> > http://lists.freepascal.org/**mailman/listinfo/fpc-pascal<http://lists.freepascal.org/mailman/listinfo/fpc-pascal> >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal