yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #10067
Re: [Bug 1234682] [NEW] ImportError when compiling debug version
2013/10/3 Reza Housseini <reza.housseini@xxxxxxxxx>:
> ImportError: /home/jaeg/code/yade/install/debug/lib/x86_64-linux-gnu/yade-2013-10-01.git-e7840c4/libyade.so: undefined symbol: omp_get_max_threads
>
> I explicitly added the -fopenmp flag and enabled OpenMP.
What you mean here?
If your compiler supports OpenMP, all necessary flags should be added
"automatically" through OpenMP_CXX_FLAGS variable [1]. You do not
need to add -fopenmp explicitly.
Need to look at the cmake-output from configuration-step. It should
definitely say you, what is missed.
[1] https://github.com/yade/trunk/blob/master/CMakeLists.txt#L126
--
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.
https://bugs.launchpad.net/bugs/1234682
Title:
ImportError when compiling debug version
Status in Yet Another Dynamic Engine:
New
Bug description:
When compiling with the DEBUG=ON flag, I get the following error when
launching yade:
File "./yade-2013-10-01.git-e7840c4", line 121, in <module>
import yade
File "/home/jaeg/code/yade/install/debug/lib/x86_64-linux-gnu/yade-2013-10-01.git-e7840c4/py/yade/__init__.py", line 65, in <module>
import boot
ImportError: /home/jaeg/code/yade/install/debug/lib/x86_64-linux-gnu/yade-2013-10-01.git-e7840c4/libyade.so: undefined symbol: omp_get_max_threads
I explicitly added the -fopenmp flag and enabled OpenMP.
To manage notifications about this bug go to:
https://bugs.launchpad.net/yade/+bug/1234682/+subscriptions
References