Installation problem(Win64bit+vs2008+pycuda2011.2.2+boost1.38)

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Installation problem(Win64bit+vs2008+pycuda2011.2.2+boost1.38)

CiCi
Hi,

Have someone met this error when building pycuda?

the following is the error description:

thread.obj : error LNK2019: unresolved external symbol "void __cdecl pycudaboost::tss_cl
eanup_implemented(void)" (?tss_cleanup_implemented@pycudaboost@@YAXXZ)" referenced in
function "void __cdecl pycudaboost::`anonymous namespace'::create_current_thread_tls
_key(void)" (?create_current_thread_tls_key@?A0x33f885c9@pycudaboost@@YAXXZ)


Waiting for help on line...

Thanks.

CiCi
a chinese student
Reply | Threaded
Open this post in threaded view
|

Re: Installation problem(Win64bit+vs2008+pycud a2011.2.2+boost1.38)

Jon Wright
Dear CiCi,

Here is a patch for your problem (I sent it to the pyopencl list). From
what I gathered on the C++ sig this is OK if you are happy not to link
to a system boost library.

Best

Jon



$ git diff
diff --git a/aksetup_helper.py b/aksetup_helper.py
index 56f93b9..3c2ba69 100644
--- a/aksetup_helper.py
+++ b/aksetup_helper.py
@@ -577,6 +577,8 @@ def set_up_shipped_boost_if_requested(project_name,
conf):
          if sys.platform == "win32":
              source_files += glob(
                      "bpl-subset/bpl_subset/libs/thread/src/win32/*.cpp")
+            source_files += glob(
+                    "bpl-subset/bpl_subset/libs/thread/src/*.cpp")
          else:
              source_files += glob(
                      "bpl-subset/bpl_subset/libs/thread/src/pthread/*.cpp")
@@ -599,7 +601,7 @@ def set_up_shipped_boost_if_requested(project_name,
conf):
                  {
                      # do not pick up libboost link dependency on windows
                      "BOOST_ALL_NO_LIB": 1,
-
+                    "BOOST_THREAD_BUILD_DLL": 1,
                      "BOOST_MULTI_INDEX_DISABLE_SERIALIZATION": 1,
                      "BOOST_PYTHON_SOURCE": 1,
                      "boost": '%sboost' % project_name



On 26/02/2012 04:42, CiCi wrote:
 > I just solve the problem I have given above by updating from Git,but
 > Unfortunately I meet another problem!
 >
 > Here is the error description in pycuda building process:
 >
 >
 > * thread.obj : error LNK2019: unresolved external symbol "void __cdecl
 > pycudaboost::tss_cl
 > eanup_implemented(void)"
(?tss_cleanup_implemented@pycudaboost@@YAXXZ),该符号在
 > 函数 "void __cdecl pycudaboost::`anonymous
 > namespace'::create_current_thread_tls
 > _key(void)"
(?create_current_thread_tls_key@?A0x33f885c9@pycudaboost@@YAXXZ)
 > 中
 > 被引用*
 >
 >
 > I hope someone to help me as soon as possible, and I'll greatly
appreciate!
 > Thanks!
 >
 > CiCi
 >
 > -----
 > a chinese student
 > --
 > View this message in context:
http://pycuda.2962900.n2.nabble.com/pycuda-Installation-problem-on-windows-32bit-with-VS2008-tp7317227p7318511.html
 > Sent from the PyCuda mailing list archive at Nabble.com.
 >
 > _______________________________________________
 > PyCUDA mailing list
 > [hidden email]
 > http://lists.tiker.net/listinfo/pycuda
 >


On 28/02/2012 04:50, CiCi wrote:

> Hi,
>
> Have someone met this error when building pycuda?
>
> the following is the error description:
>
> *thread.obj : error LNK2019: unresolved external symbol "void __cdecl
> pycudaboost::tss_cl
> eanup_implemented(void)" (?tss_cleanup_implemented@pycudaboost@@YAXXZ)"
> referenced in
> function "void __cdecl pycudaboost::`anonymous
> namespace'::create_current_thread_tls
> _key(void)" (?create_current_thread_tls_key@?A0x33f885c9@pycudaboost@@YAXXZ)
> *
>
> Waiting for help on line...
>
> Thanks.
>
> CiCi
>
> -----
> a chinese student
> --
> View this message in context: http://pycuda.2962900.n2.nabble.com/Installation-problem-Win64bit-vs2008-pycuda2011-2-2-boost1-38-tp7324359p7324359.html
> Sent from the PyCuda mailing list archive at Nabble.com.
>
> _______________________________________________
> PyCUDA mailing list
> [hidden email]
> http://lists.tiker.net/listinfo/pycuda

_______________________________________________
PyCUDA mailing list
[hidden email]
http://lists.tiker.net/listinfo/pycuda
Reply | Threaded
Open this post in threaded view
|

Re: Installation problem(Win64bit+vs2008+pycud a2011.2.2+boost1.38)

Andreas Kloeckner
<#part sign=pgpmime>
Hi Jon,

On Tue, 28 Feb 2012 09:43:14 +0100, Jonathan WRIGHT <[hidden email]> wrote:
> Here is a patch for your problem (I sent it to the pyopencl list). From
> what I gathered on the C++ sig this is OK if you are happy not to link
> to a system boost library.

sorry for the long delay on this. I've merged the patch below [1] into
PyCUDA and PyOpenCL. Does that cover what you found? Or was there more?

In any case, thank you very much for figuring all this out!

Andreas

[1] https://github.com/inducer/aksetup/commit/9c2216cedf1bb0a23559a7d00bea412361cb6d9a


_______________________________________________
PyCUDA mailing list
[hidden email]
http://lists.tiker.net/listinfo/pycuda
Reply | Threaded
Open this post in threaded view
|

Re: Installation problem(Win64bit+vs2008+pycuda2011.2.2+boost1.38)

Andreas Kloeckner
In reply to this post by CiCi
<#part sign=pgpmime>
Dear CiCi,

On Mon, 27 Feb 2012 19:50:37 -0800 (PST), CiCi <[hidden email]> wrote:

> Have someone met this error when building pycuda?
>
> the following is the error description:
>
> *thread.obj : error LNK2019: unresolved external symbol "void __cdecl
> pycudaboost::tss_cl
> eanup_implemented(void)" (?tss_cleanup_implemented@pycudaboost@@YAXXZ)"
> referenced in
> function "void __cdecl pycudaboost::`anonymous
> namespace'::create_current_thread_tls
> _key(void)" (?create_current_thread_tls_key@?A0x33f885c9@pycudaboost@@YAXXZ)
> *
>
> Waiting for help on line...

Is your problem solved by Jon's patch?

Andreas

_______________________________________________
PyCUDA mailing list
[hidden email]
http://lists.tiker.net/listinfo/pycuda