Re: Problem compiling ROOT v5.32.00-rc2 with Python 2.6.4

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Wed, 30 Nov 2011 20:29:32 +0100


Hi Sébastien,

Apart from John's request, could you post the invocation of g++ for -o lib/libPyROOT.so (you did a parallel build, the line you quote is not related to the error message).

Cheers, Axel.

On 11/30/2011 05:55 PM, Sébastien Gadrat wrote:
> Dear all,
>
> I have problems compiling ROOT v5.32.00-rc2 with python 2.6.4 on x64
> system. If I remove the python support, ROOT is compiling well. Although
> the issue appears at the python module compilation, I am not sure it is
> really related to it, since the errors seems to be related to the thread
> support.
>
> Here is the errors I have got:
>
> g++ -shared -Wl,-soname,libSessionViewer.so -m64 -O2 -Wl,--no-undefined
> -o lib/libSessionViewer.so gui/sessionviewer/src/TProofPro
> gressDialog.o gui/sessionviewer/src/TProofProgressLog.o
> gui/sessionviewer/src/TProofProgressMemoryPlot.o gui/sessionviewer/src/TSe
> ssionDialogs.o gui/sessionviewer/src/TSessionLogView.o
> gui/sessionviewer/src/TSessionViewer.o gui/sessionviewer/src/G__SessionView
> er.o -Llib -lProof -lGui -lHist -lGpad -lGraf -lTree -lMathCore -Llib
> -lCore -lCint -ldl
> /usr/local/python/python-2.6/lib/python2.6/config/libpython2.6.a(thread.o):
> In function `_pythread_pthread_set_stacksize':
> /scratch/python.builddir/Python-2.6.4/Python/thread_pthread.h:519:
> undefined reference to `pthread_attr_setstacksize'
> /usr/local/python/python-2.6/lib/python2.6/config/libpython2.6.a(thread.o):
> In function `PyThread_release_lock':
> /scratch/python.builddir/Python-2.6.4/Python/thread_pthread.h:374:
> undefined reference to `sem_post'
> /usr/local/python/python-2.6/lib/python2.6/config/libpython2.6.a(thread.o):
> In function `PyThread_free_lock':
> /scratch/python.builddir/Python-2.6.4/Python/thread_pthread.h:320:
> undefined reference to `sem_destroy'
> /usr/local/python/python-2.6/lib/python2.6/config/libpython2.6.a(thread.o):
> In function `PyThread_allocate_lock':
> /scratch/python.builddir/Python-2.6.4/Python/thread_pthread.h:296:
> undefined reference to `sem_init'
> /usr/local/python/python-2.6/lib/python2.6/config/libpython2.6.a(thread.o):
> In function `PyThread_start_new_thread':
> /scratch/python.builddir/Python-2.6.4/Python/thread_pthread.h:171:
> undefined reference to `pthread_attr_setstacksize'
> /scratch/python.builddir/Python-2.6.4/Python/thread_pthread.h:181:
> undefined reference to `pthread_create'
> /scratch/python.builddir/Python-2.6.4/Python/thread_pthread.h:197:
> undefined reference to `pthread_detach'
> /usr/local/python/python-2.6/lib/python2.6/config/libpython2.6.a(thread.o):
> In function `PyThread_acquire_lock':
> /scratch/python.builddir/Python-2.6.4/Python/thread_pthread.h:351:
> undefined reference to `sem_trywait'
> /scratch/python.builddir/Python-2.6.4/Python/thread_pthread.h:349:
> undefined reference to `sem_wait'
> /usr/local/python/python-2.6/lib/python2.6/config/libpython2.6.a(posixmodule.o):
> In function `posix_forkpty':
> /scratch/python.builddir/Python-2.6.4/./Modules/posixmodule.c:3783:
> undefined reference to `forkpty'
> /usr/local/python/python-2.6/lib/python2.6/config/libpython2.6.a(posixmodule.o):
> In function `posix_openpty':
> /scratch/python.builddir/Python-2.6.4/./Modules/posixmodule.c:3723:
> undefined reference to `openpty'
> collect2: ld returned 1 exit status
> make: *** [lib/libPyROOT.so] Error 1
> make: *** Waiting for unfinished jobs....
>
>
> Does anyone have an idea ? Comment ?
> Thank you in advance,
>
> Sébastien
>
Received on Wed Nov 30 2011 - 20:29:39 CET

This archive was generated by hypermail 2.2.0 : Wed Nov 30 2011 - 23:50:02 CET