Summary: | python 2.5.4-r2 USE=threads - ./libpython2.5.so: undefined reference to `sem_init' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Bernd Martin Wollny <bm.wollny> |
Component: | New packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED NEEDINFO | ||
Severity: | minor | CC: | bircoph, jer, patrick, patrizio.bassi |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
python build log
Build OK |
Description
Bernd Martin Wollny
2009-01-25 07:25:31 UTC
So what is the pthreads lib going to do with python? Last time I had a look the python interpreter doesn't use it, so it's a no-op as far as I can tell. You can use threads inside of python. All modern languages supports threads see http://www.wellho.net/solutions/python-python-threads-a-first-example.html for a threading example. Boost-python supports threads too. The CPython interpreter is using "green" threads, which means that it looks like one thread to the rest of the OS. It does not in any way support the pthreads lib out of the box, so I don't see how randomly adding it affects anything. Created attachment 179750 [details]
python build log
Build without LDFLAGS="-pthreaad"
Created attachment 179751 [details]
Build OK
this was build with LDFLAGS="-lpthread"
Please have a look at the log files. You will see that python is using the pthread library. Please post your `emerge --info' too. I don't see what could inject the acml stuff. Possibly something in CFLAGS. Meanwhile, this isn't really a major bug. With a stable system, I can compile 2.5.4-r2 fine. Please reopen this bug report with the requested information and any other information that may be key to solving this problem (note: injecting -lFOO flags into LDFLAGS is bad even as a workaround). *** Bug 288929 has been marked as a duplicate of this bug. *** for me it fails even after manually adding the pthread flag can you please reopen? Jeroen, Patrik, for me this is starting to be a very blocking issue as i cannot compile any python version with threads use flag, required by several packages. Can you reopen? i can take over and provide all info/logs/details you may been. Thanks the error is in the configure too.... checking for poll... yes checking for pthread_init... no checking for putenv... yes but seems not stopping so not adding the proper flags For what it's worth, I just ran in to someone having this issue wtih 2.7.9. Tracked it down to "-fopenmp" in /etc/portage/make.conf CFLAGS. |