lpthread
Opened this issue · 1 comments
trayres commented
Using msys2, and package mingw-w64-x86_64-libwinpthread-git is installed:
$make
gnatprep -DGETTEXT_INTL=False -DHAVE_GETTEXT=False src/gtkada-intl.gpb src/gtkada-intl.adb
====== Building static libraries =====
/d/GNAT/2018/bin/gprbuild -j0 -m -p -XLIBRARY_TYPE=static -Psrc/gtkada.gpr
.Build Libraries
[gprlib] gtkada.lexch
[archive] libgtkada.a
[index] libgtkada.a
====== Building static-pic libraries =====
/d/GNAT/2018/bin/gprbuild -j0 -m -p -XLIBRARY_TYPE=static-pic -Psrc/gtkada.gpr
====== Building relocatable libraries =====
/d/GNAT/2018/bin/gprbuild -j0 -m -p -XLIBRARY_TYPE=relocatable -Psrc/gtkada.gpr
Build Libraries
[gprlib] gtkada.lexch
[link library] libgtkada.dll
d:/gnat/2018/bin/../libexec/gcc/x86_64-pc-mingw32/7.3.1/ld.exe: cannot find -lpthread
collect2.exe: error: ld returned 1 exit status
gprlib: d:\gnat\2018\bin\gcc execution error
gprbuild: could not build library for project gtkada
make: *** [Makefile:85: build_library_type/relocatable] Error 4
Trying to do the standard ./configure, make, install dance.
auxiliaire commented
I have a similar issue on Ubuntu 20.04 after configuring with the command from the other ticket (./configure --prefix=/usr --with-GL=no
).
$ sudo make all install
====== Building static libraries =====
/opt/gnatstudio/bin/gprbuild -j0 -m -p -XLIBRARY_TYPE=static -Psrc/gtkada.gpr
====== Building static-pic libraries =====
/opt/gnatstudio/bin/gprbuild -j0 -m -p -XLIBRARY_TYPE=static-pic -Psrc/gtkada.gpr
Build Libraries
[gprlib] gtkada.lexch
[archive] libgtkada.a
[index] libgtkada.a
====== Building relocatable libraries =====
/opt/gnatstudio/bin/gprbuild -j0 -m -p -XLIBRARY_TYPE=relocatable -Psrc/gtkada.gpr
Build Libraries
[gprlib] gtkada.lexch
[link library] libgtkada.so
/opt/gnatstudio/bin/../libexec/gcc/x86_64-pc-linux-gnu/9.3.1/ld: cannot find -lgcc_s
collect2: error: ld returned 1 exit status
gprlib: /opt/gnatstudio/bin/gcc execution error
gprbuild: could not build library for project gtkada
make: *** [Makefile:85: build_library_type/relocatable] Error 4
I've managed to solve this by linking libgcc.so to the gnatstudio lib folder:
sudo ln -s /lib/libgcc_s.so.1 /opt/gnatstudio/lib/libgcc_s.so