-
Notifications
You must be signed in to change notification settings - Fork 27
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
./configure needs to be told to link 'pthread' under arch linux #83
Comments
Oh, not yet used to Arch apparently.. Just found it in the AUR: https://aur.archlinux.org/packages/prime_server/. Also, announced in Valhalla repo: valhalla/valhalla#1159. At least Valhalla, maintained by the same account, doesn't seem to be at its latest. |
we've seen this so many times on so many different compilers. at this point im wondering what is the right thing to do? it seems to me that some versions of GCC must be automatically linking pthread without it needing to be specified meanwhile other versions did not. or perhaps the project is freeloading off of other dependencies flags... anyway because we ran into this a bunch of times already, we added it to configure.ac https://github.com/kevinkreiser/prime_server/blob/master/configure.ac#L37-L38 which should put the flag into your generated Makefile... We'd need to look at configures log and the generated Makefile to see what exactly is going on on your system. |
I had the same issue on Fedora 31. |
@noerw can you drop the output of |
sure
|
@noerw thanks! the output looks the same as mine with respect to
and share that output? |
but this succeeds:
|
hmm... i was expecting that this part:
would actually show the compiler/linker command line and args... why isnt |
Ah, somehow only
|
so this is your link line:
and this is mine:
So it seems to me that this is a combination of this: https://lists.gnu.org/archive/html/libtool/2010-11/msg00032.html And my misunderstanding about this: https://stackoverflow.com/questions/17055279/autotools-for-pthreads-not-setting-correct-linker-flags Which means that my libtool must automatically inject pthreads for me and I incorrectly rely on that. So it seems to me I need to actually use |
I recently installed Arch Linux and wanted to rebuild Valhalla and all its dependencies.
For prime-server, I got stuck following the documentation. When running
make test
:However, re-running
./configure LDFLAGS='-pthread'
seemed to solve it. I guess this could be somewhere in the CMakeLists.txt. If not, happy to PR an updated documentation.The text was updated successfully, but these errors were encountered: