[fpc-devel] 32 bit on linux -- /usr/bin/ld: cannot find -lpthread
Martin
fpc at mfriebe.de
Thu Dec 31 17:24:34 CET 2020
- I have a 64bit linux. (Fedora 33)
- I have a 32 bit ppc to start building
=> So the 32 bit ppc is not called as cross compiler.
It does the compiler cycle (there is a32bit ppc1 ... ppc3
> file rel_3.2.0/source/compiler/ppc1
> rel_3.2.0/source/compiler/ppc1: ELF 32-bit LSB executable, Intel
> 80386, version 1 (SYSV), statically linked, with debug_info, not stripped
>
But then
> /home/m/fpc/rel_3.2.0/source/compiler/ppc386 fpmake.pp
> -Fu/home/m/fpc/rel_3.2.0/source/packages/fpmkunit/units_bs/i386-linux
> -Fu/home/m/fpc/rel_3.2.0/source/rtl/units/i386-linux -gw -O-1
> /usr/bin/ld: cannot find -lpthread
> /usr/bin/ld: cannot find -ldl
> /usr/bin/ld: cannot find -lc
>
I do have (which I guess is the lib in question?)
> file /lib/libpthread.so.0
> /lib/libpthread.so.0: symbolic link to libpthread-2.32.so
>
> file /lib/libpthread-2.32.so
> /lib/libpthread-2.32.so: ELF 32-bit LSB shared object, Intel 80386,
> version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2,
> BuildID[sha1]=32aaf5acc1c589123b059f4e74cc30b69be2c628, for GNU/Linux
> 3.2.0, not stripped
>
I also tried to find any other potential dependency.... To no avail yet.
such as
glibc-2.32-2.fc33.i686 => installed
clthreads.i686 => installed (the only reasonable close match that came
up searching for thread)
Any ideas?
More information about the fpc-devel
mailing list