Error after launching the program

Asked by Przemek

Hi,

I have a problem with some kind of error after launching the simulation.

Welcome to Yade 2021-04-06.git-54b855f
Using python version: 3.8.10 (default, Sep 28 2021, 16:10:42)
[GCC 9.3.0]
Traceback (most recent call last):
  File "/home/przemek/DEMlab/install/bin/yade", line 151, in <module>
    import yade
  File "/home/przemek/DEMlab/install/lib/x86_64-linux-gnu/yade-2021-04-06.git-54b855f/py/yade/__init__.py", line 75, in <module>
    from yade import boot
ImportError: /home/przemek/DEMlab/install/lib/x86_64-linux-gnu/yade-2021-04-06.git-54b855f/libdem.so: undefined symbol: _ZTVN4yade11Gl1_CpmPhysE

I don't know why it appear, because earlier it worked.
Do you have any suggestions?

BR
Przemek

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Przemek
Solved:
Last query:
Last reply:
Revision history for this message
Jan Stránský (honzik) said (last edit ):
#1

Hello,

please provide more information [1], like if it is package or compiled Yade, if compiled how did you compile it etc.

> after launching the simulation.

what is "the simulation"?
can you start yade alone?
Under what circumstances the error occures?

> earlier it worked.

What does "earlier" mean? Did you do any changes to the program or system?

> undefined symbol: _ZTVN4yade11Gl1_CpmPhysE

These errors comes from wrongly linked executable after compilation, meaning that the program requires Gl1_CpmPhys, but it does not know what it is (it was compiled, but not linked correctly).

Cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask

Revision history for this message
Przemek (przemekn) said :
#2

Hi,

it is compiled Yade (if you remember I'm trying to use DEM in my thesis :) )

Right now I can't start yade alone. It's wierd...

I'm working only on my files with new laws. But earlier it worked correctly, and now... error.

> These errors comes from wrongly linked executable after compilation, meaning that the program requires Gl1_CpmPhys, but it does not know what it is (it was compiled, but not linked correctly).

But where I should change the path. I don't change any headers before the last compiling.

BR
Przemek

Revision history for this message
Jan Stránský (honzik) said :
#3

One option is to try fresh cmake / make process (from scratch).

> I'm working only on my files with new laws.

Could you share them?

Cheers
Jan

Revision history for this message
Przemek (przemekn) said :
#4

Ok, I will do it.

> Could you share them?

Ofcourse, but currently I'm working on them. So maybe it will be better to share them after validation and verification :)

Revision history for this message
Karol Brzezinski (kbrzezinski) said :
#5

Does your script try to load Yade simulation saved by different compilation of Yade? If so, it probably won't work. Prepare a new save with current version.

Cheers,
Karol

Revision history for this message
Przemek (przemekn) said :
#6

Hi Karol,

I don't load saved simulation. I started new one.
But like Jan suggested, I make fresh cmake and now it works.
Thanks!

Przemek

Revision history for this message
Przemek (przemekn) said :
#7

It works.