That did it! All the tests run fine.
In case anyone runs into the same problem, please keep in mind that
to compile boost with gcc 4.1.2 you have to use the same flag that
Andreas indicated earlier ('-DBOOST_PYTHON_NO_PY_SIGNATURES').
After running bootstrap.sh (see
you need to edit /tools/build/v2/user-config.jam under the boost directory,
and change the gcc configuration to
using gcc : 4.1.2 : gcc : cxxflags='-DBOOST_PYTHON_NO_PY_SIGNATURES' ;
Thanks again Andreas.
On 8/17/09, Andreas Klöckner <lists(a)informa.tiker.net> wrote:
That says that you're linking against the boost you built with
rebuild boost with 4.1, that you should get you a step further.
On Dienstag 18 August 2009, Christian Quaia wrote:
> Thanks Andreas.
> Sorry, I should have tried that before... Now the build and install
> work. However, when I run the tests I get another error:
> Traceback (most recent call last):
> File "./test/test_driver.py", line 475, in ?
> import pycuda.autoinit
>pycuda/autoinit.py", line 1, in ?
> import pycuda.driver as cuda
>pycuda/driver.py", line 1, in ?
> from _driver import *
> ImportError: /usr/lib64/libboost_python-gcc43-mt-1_39.so.1.39.0:
> undefined symbol:
> Thanks again for your help,
> On Mon, Aug 17, 2009 at 5:41 PM, Andreas
> Klöckner<lists(a)informa.tiker.net> wrote:
> > On Montag 17 August 2009, Christian Quaia wrote:
> >> Thanks Andreas.
> >> I got the git version, and things went a bit better, but I still have
> >> a problem.
> >> When I build pycuda now I get this error:
> >> /usr/include/boost-1_39/boost/type_traits/detail/cv_traits_impl.hpp:37:
> >> internal compiler error: in make_rtl_for_nonlocal_decl, at
> >> cp/decl.c:5067
> >> This is due to a bug in gcc 4.1.2, which was fixed in later versions.
> >> For this very reason I
> >> had to compile boost using gcc43, which is also installed on my
> >> machine in parallel to gcc.
> >> Is there a simple way, like for boost, to force pycuda to be built
> >> using gcc43 as a compiler?
> > Not easily, as Python should be built with a matching compiler.
> > But see this here for gcc 4.1 help:
> > http://is.gd/2lCd7
> > Andreas
> > _______________________________________________
> > PyCUDA mailing list
> > PyCUDA(a)tiker.net
> > http://tiker.net/mailman/listinfo/pycuda_tiker.net
> PyCUDA mailing list
PyCUDA mailing list