Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2020-12

32 bit on linux -- /usr/bin/ld: cannot find -lpthread

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin

- 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

Show quoted text 7 lines
/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?)

Show quoted text 9 lines
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?

Reply by email

Jonas Maebe
to Martin
Martin wrote 8 lines
> 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?

You also have to install the i386 version of the -dev(el) package.

Jonas

Reply by email