-
Notifications
You must be signed in to change notification settings - Fork 161
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
Missing math library when linking gsi #765
Comments
Thank you. Can you tell us the output to
Thanks. |
OK, I see the same thing on Ubuntu 22.04:
I'll look into things some more later. |
OK, I just did
and it failed earler:
Marc: Do we need to run autoconfig again? |
I haven't yet had time to look into this in depth. My understanding is that the configure script thinks that the The immediate solution is to configure Gambit by explicitly using this flag, for example
|
No, that doesn't work:
But I really have to idea what's going on: Configuring with
leads to:
The internets say that the -lm needs to go at the end. |
The script that's invoked with |
This is a workaround:
|
Potentially related: I ran into a similar thing here. I documented some steps to reproduce here: https://gist.github.com/bheesham/3235211d11935c94be09d31810350593 |
I believe this issue is due to a problem with recent versions of autoconf, and that autoconf 2.69 solves the issue. Please check 9abb138. Could someone check if this solves the issue? |
Yes, it's fixed. |
Beeing on: I encountered the same error.
The issue appears to persist. |
I don't know much about configure, but the Debian patch:
appears to kick in only when |
Sorry, You are absolutely right. I did not carefully read about the patch and referred to something not carefully inspected. I am not able to say if this patch was applied across different packages. It makes sense that this would be a problem across multiple programs linking to the math library. I just build and installed gambit on a new system and made sure I am on a commit which incorporates the linked fix. The error is relevant to me and the workaround was still required. I am unable to interpret the changes on the file |
Well, I have to apologize, I should have tried it before commenting, because it does fix the problem, but I have no understanding why. Marc, do you want to put this in, maybe without fully understanding it? |
I just tested the debian "fix" with |
I'm going to install the Debian patch soon unless I hear otherwise. |
I compared the
Further down the file, I found just one reference to a missing reference:
If I can assist, let me know. |
What do you mean "when the workaround-argument is supplied"? What's the "workaround-argument"?
Where did the lines on the right come from? Did you compose them? or get them from somewhere?
I don't understand this either. Why is After removing |
After running this my configure looks like the left side.
I did not want to imply anything. I just noted that without supplying the
I am unable to make sense of it either. I just wanted to leave my last attempt so that maybe someone has an idea.
As long as it works across the supported operating systems it should be fine then. |
I tested it both with and without --enable-cplusplus.
Hopefully fixed with 79e5c51 |
Fedora 36 x86_64, at e98430b. After running ./config.status, make gives:
gcc -Wno-unused -Wno-write-strings -Wdisabled-optimization -fwrapv -fno-strict-aliasing -fno-trapping-math -fno-math-errno -fschedule-insns2 -foptimize-sibling-calls -fomit-frame-pointer -fPIC -fno-common -mpc64 -Wno-unused -Wno-write-strings -Wdisabled-optimization -fwrapv -fno-strict-aliasing -fno-trapping-math -fno-math-errno -fschedule-insns2 -foptimize-sibling-calls -fomit-frame-pointer -fPIC -fno-common -mpc64 -rdynamic -I"../include" -o gsi _gsi.o gsi.o "../lib/libgambit.so" libgambitgsi.so
/usr/bin/ld: ../lib/libgambit.so: undefined reference to
sincos' /usr/bin/ld: ../lib/libgambit.so: undefined reference to
asinh'/usr/bin/ld: ../lib/libgambit.so: undefined reference to
floor' /usr/bin/ld: ../lib/libgambit.so: undefined reference to
log1p'/usr/bin/ld: ../lib/libgambit.so: undefined reference to
ceil' /usr/bin/ld: ../lib/libgambit.so: undefined reference to
cosh'/usr/bin/ld: ../lib/libgambit.so: undefined reference to
tan' /usr/bin/ld: ../lib/libgambit.so: undefined reference to
tanh'/usr/bin/ld: ../lib/libgambit.so: undefined reference to
asin' /usr/bin/ld: ../lib/libgambit.so: undefined reference to
atanh'/usr/bin/ld: ../lib/libgambit.so: undefined reference to
log' /usr/bin/ld: ../lib/libgambit.so: undefined reference to
atan'/usr/bin/ld: ../lib/libgambit.so: undefined reference to
expm1' /usr/bin/ld: ../lib/libgambit.so: undefined reference to
sinh'/usr/bin/ld: ../lib/libgambit.so: undefined reference to
acos' /usr/bin/ld: ../lib/libgambit.so: undefined reference to
exp'/usr/bin/ld: ../lib/libgambit.so: undefined reference to
sin' /usr/bin/ld: ../lib/libgambit.so: undefined reference to
hypot'/usr/bin/ld: ../lib/libgambit.so: undefined reference to
acosh' /usr/bin/ld: ../lib/libgambit.so: undefined reference to
pow'/usr/bin/ld: ../lib/libgambit.so: undefined reference to
atan2' /usr/bin/ld: ../lib/libgambit.so: undefined reference to
ilogb'/usr/bin/ld: ../lib/libgambit.so: undefined reference to `cos'
collect2: error: ld returned 1 exit status
make[1]: *** [makefile:207: gsi] Error 1
make[1]: Leaving directory '/home/vonbrand/tmp/SCHEME/gambit/gsi'
make: *** [makefile:543: core-recursive] Error 1
The text was updated successfully, but these errors were encountered: