-
Notifications
You must be signed in to change notification settings - Fork 36
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
Kernel module not loading in latest GAP #328
Comments
As far as I know we do not use any of the time out code
|
Could this be something to do with compiling without the -pthread flag?
|
@james-d-mitchell Yeah, I was wondering that, too. But then I don't quite see why it worked before my PR. Also, we only use |
That's right we are not using hpcgap, but we are using pthread through
ourselves in the kernel module, indirectly via C++11 std::thread
|
Hmm. So, can you reproduce the issue locally? |
For what is worth, I cannot, on Mac OS X 10.11.6 |
but then, there is no need for |
I can reproduce the issue on my machine - in fact the output I posted is on my office PC (Debian testing). |
I haven't figured out why this is broken, but it can be fixed by adding a single line to GAP's diff --git a/configure.ac b/configure.ac
index 3ba5a8061..021388642 100644
--- a/configure.ac
+++ b/configure.ac
@@ -536,6 +536,7 @@ dnl check for timing functions
AC_CHECK_HEADERS([sys/time.h])
AC_CHECK_FUNCS([getrusage gettimeofday clock_gettime clock_getres])
AC_CHECK_FUNCS([setitimer])
+AC_CHECK_LIB([rt], [timer_create])
dnl check for functions dealing with virtual memory
AC_CHECK_FUNCS([vm_allocate sbrk madvise sysconf]) Does this make any kind of sense? I'm currently setting up a Semigroups Travis build to test this. EDIT: I can confirm that this does fix it. |
So, if I manually add |
Thanks @fingolfin, but this doesn't seem to do anything, or I am not using it correctly. I put
under the |
We use it in GAP, of course, so you can look there for an example of how we use it; namely we just have
Did you verify that the |
Ah thanks @fingolfin, the macro was not getting substituted correctly. Now it is, but I still can't get this to work. I added |
I think I have a fix |
So, it does appear that I have fixed this, the approach of using AX_PTHREAD, unfortunately did not work, I don't understand why, as it seemed like it should. |
Fixed by James's PR. |
Since a very recent change in GAP master, the Semigroups kernel module is not loaded properly:
This problem is introduced in GAP commit Remove the timeout code by @fingolfin. It's not clear to me how this change causes the problem, but I'm guessing we rely on some of the timeout code which has been removed.
This is causing Travis tests to fail.
The text was updated successfully, but these errors were encountered: