Summary: | dev-lang/hugs98-2003.11 fails when --use-hopengl AND --with-pthreads used | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | ferret <ferret-bgo> |
Component: | Current packages | Assignee: | Andres Loeh (RETIRED) <kosmikus> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | simons |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
ferret
2003-12-01 17:18:04 UTC
If the compilation fails "outside" of Gentoo, too, I think the Hugs developers should know about it. I'd report the problem to them as well, if I were you. My uneducated best guess about the source of the problem is that your OpenGL installation can't deal with threading. Maybe you should try re-compiling your OpenGL stuff to make sure it has been translated with the current gcc, glibc and kernel environment? (a) Yes, you should definitely also report it to the Hugs developers if it is not only a Gentoo-specific bug. (b) Yes, it's still good that you report it here. I have been able to reproduce the problem on another machine where I run nvidia drivers. I will run a few more tests ... kosmikus Could it be that those nvidia drivers don't support threading? Bug submitted... although I'm pretty convinced now that Peter Simons has hit the nail on the head: compiling hugs after an "opengl-update xfree" was absolutely fine. I have looked at the docs associated with the nVidia drivers (which are pretty useless, actually), and while they do mention pthreads the only bugs they mention associated with them are very old and almost certainly irrelevant. (the link is ftp://download.nvidia.com/XFree86/Linux-x86/1.0-4496/README.txt - search for "pthreads".) But then saying that, there are a few recent references on the nVidia Linux forums with this bug in action: http://www.nvnews.net/vbulletin/showthread.php?s=2fe48c773200d0967c120426508752d2&threadid=21254 http://www.nvnews.net/vbulletin/showthread.php?s=2fe48c773200d0967c120426508752d2&threadid=11965 So yeah, I'm definitely in favour of blaming this on the nvidia drivers at this stage. :) In the meantime, this will prevent pthreads being used for anyone using nvidia opengl libraries: --- hugs98-2003.11.ebuild.old 2003-12-04 10:25:30.683320232 +0000 +++ hugs98-2003.11.ebuild 2003-12-04 10:28:18.019881208 +0000 @@ -22,6 +22,11 @@ local myconf if [ `use opengl` ]; then myconf="--enable-hopengl" + if [ ! `grep opengl/nvidia/lib /etc/env.d/09opengl` ]; then + myconf="$myconf --with-pthreads" + fi + else + myconf="--with-pthreads" fi # When timing is enabled, the build will fail at some @@ -49,7 +54,6 @@ --infodir=/usr/share/info \ --mandir=/usr/share/man \ --enable-ffi \ - --with-pthreads \ --enable-profiling \ ${myconf} || die "./configure failed" cd .. There is now a provision in the ebuild to fix this. Not sure how it got there. This is a forgotten lost bug now, then, and it works for me with the new ebuild. > There is now a provision in the ebuild to fix this. Not sure how it got there. I wish that would ever happen to me. :-) I am sorry. I should have closed the bug or at least said something when I added the fix. Thanks, ferret, for providing it. I think I left the bug open because I was not sure that this is really a good solution for the problem ... Best, ks |