Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lpthread #21

Open
trayres opened this issue Mar 23, 2019 · 1 comment
Open

lpthread #21

trayres opened this issue Mar 23, 2019 · 1 comment

Comments

@trayres
Copy link

trayres commented Mar 23, 2019

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
Copy link

auxiliaire commented Jun 30, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants