Boot error for secondly developed YADE

Asked by Ocean

Dear all,

I’m now doing some modification on the source code of Yade to achieve GPU acceleration for contact detection module using CUDA. ( Acturally, The file I have modified include CMakeFIles.txt, Omega, InsertionSortCollider. Also add some other new files to realize contact detection parallel ). The IDE I used is Kedevelop4.

The compile, build and install process is smooth and without error message. but at the very beginning running Yade, An ImportError error appear just like " ImportError:/.../Install/lib/x86_64-linux-gnu/yade-2014-03-15.git-c53eab0/py/yade/boot.so:undefined symbol: _ZN9SingletonI5OmegaE4selfE ".

It seems that there has some questions in file boot.so, then I use the original file boot.so to replace the new one, got another error after the welcome message " FATAL /home/zhy/Software/YADE/trunk/core/Omega.cpp:225 loadPlugins: /home/zhy/projects/GPU_YADE/Install/lib/x86_64-linux-gnu/yade-2014-03-15.git-c53eab0/libyade.so: undefined symbol `Aborted (core dumped) "

I feel confused about the two errors above. Is there somebody has ideas for the possible reason ?

Thanks a lot for your help in advance.
Ocean

Question information

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

Hi Ocean,

you can't just switch compiled files (boot.so) from different versions,
especially if you did some modifications..

undefined symbol: _ZN9SingletonI5OmegaE4selfE "

undefined symbol errors is because of you include some .hpp files, but the
result is not linked with corresponding compiled .cpp file (I am not
familiar with the correct terminology). Basically your program knows what
the code does (declared in .hpp file), but don't know how it should do it
(it misses the definition in .cpp file).

could you please place your modified files somewhere on the internet and
send us the link?

cheers
Jan

2016-01-19 10:37 GMT+01:00 Ocean <email address hidden>:

> New question #281177 on Yade:
> https://answers.launchpad.net/yade/+question/281177
>
> Dear all,
>
> I’m now doing some modification on the source code of Yade to achieve GPU
> acceleration for contact detection module using CUDA. ( Acturally, The file
> I have modified include CMakeFIles.txt, Omega, InsertionSortCollider. Also
> add some other new files to realize contact detection parallel ). The IDE I
> used is Kedevelop4.
>
> The compile, build and install process is smooth and without error
> message. but at the very beginning running Yade, An ImportError error
> appear just like "
> ImportError:/.../Install/lib/x86_64-linux-gnu/yade-2014-03-15.git-c53eab0/py/yade/boot.so:undefined
> symbol: _ZN9SingletonI5OmegaE4selfE ".
>
> It seems that there has some questions in file boot.so, then I use the
> original file boot.so to replace the new one, got another error after the
> welcome message " FATAL /home/zhy/Software/YADE/trunk/core/Omega.cpp:225
> loadPlugins:
> /home/zhy/projects/GPU_YADE/Install/lib/x86_64-linux-gnu/yade-2014-03-15.git-c53eab0/libyade.so:
> undefined symbol `Aborted (core dumped) "
>
> I feel confused about the two errors above. Is there somebody has ideas
> for the possible reason ?
>
> Thanks a lot for your help in advance.
> Ocean
>
> --
> You received this question notification because your team yade-users is
> an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Can you help with this problem?

Provide an answer of your own, or ask Ocean for more information if necessary.

To post a message you must log in.