CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] undefined symbols in .so libraries when compiling swak4foam 0.4.2 on foam extend 4.1

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 26, 2018, 09:41
Default undefined symbols in .so libraries when compiling swak4foam 0.4.2 on foam extend 4.1
  #1
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
Hello,


i tried to compile swak4foam 0.4.2 which comes with the foam-extend version 4.1.



I compile it under suse 42.3.



The compilation of foam extend went fine and i could execute some application without problems.



Also the the compilation of swak4foam seam to have gone fine (see the attached log file) but

than I tried to compute the mass flow at some patches and the following
error popped up:


pimpleDyMOversetFoam: symbol lookup error: /home/michael/foam/site/4.1/lib/linux64GccDPOpt/libsimpleFunctionObjects.so: undefined symbol: _ZN4Foam24switchableNotImplementedERKNS_4wordERKNS _10dictionaryE



When investigating the reason of this errors I used the command nm -u to identify

the undefined symbols in the shared object files.



For example the command nm -u libsimpleFunctionObjects.so gives a lot of undefined
symbols (see the second file for a complete output)


by executing c++filt _ZN4Foam13fvsPatchFieldINS_10SymmTensorIdEEE25patc hConstructorTablePtr_E
Foam::fvsPatchField<Foam::SymmTensor<double> >:atchConstructorTablePtr_


I realized that the undefined symbols are pointing to some really basic function which

should be correctly defined in a successful compilation of foam-extend 4.1. I assume the compilation of foam-extend 4.1 went fine since i could execute a few of the application (i did not try all of course).



So i presume some environment are set wrongly. unfortunately I could not figure out which one. Maybe i did some other mistake.


Does anyone have an idea what possibly have gone wrong?



If
Attached Files
File Type: gz log.Allwmake.gz (36.8 KB, 1 views)
File Type: gz libsimpleFunctionObjectsundifindsymbols.gz (5.2 KB, 1 views)
mAlletto is offline   Reply With Quote

Old   August 27, 2018, 21:35
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by mAlletto View Post
Hello,


i tried to compile swak4foam 0.4.2 which comes with the foam-extend version 4.1.



I compile it under suse 42.3.



The compilation of foam extend went fine and i could execute some application without problems.



Also the the compilation of swak4foam seam to have gone fine (see the attached log file) but

than I tried to compute the mass flow at some patches and the following
error popped up:


pimpleDyMOversetFoam: symbol lookup error: /home/michael/foam/site/4.1/lib/linux64GccDPOpt/libsimpleFunctionObjects.so: undefined symbol: _ZN4Foam24switchableNotImplementedERKNS_4wordERKNS _10dictionaryE



When investigating the reason of this errors I used the command nm -u to identify

the undefined symbols in the shared object files.



For example the command nm -u libsimpleFunctionObjects.so gives a lot of undefined
symbols (see the second file for a complete output)


by executing c++filt _ZN4Foam13fvsPatchFieldINS_10SymmTensorIdEEE25patc hConstructorTablePtr_E
Foam::fvsPatchField<Foam::SymmTensor<double> >:atchConstructorTablePtr_


I realized that the undefined symbols are pointing to some really basic function which

should be correctly defined in a successful compilation of foam-extend 4.1. I assume the compilation of foam-extend 4.1 went fine since i could execute a few of the application (i did not try all of course).



So i presume some environment are set wrongly. unfortunately I could not figure out which one. Maybe i did some other mistake.


Does anyone have an idea what possibly have gone wrong?



If

That is a strange one. Which compiler version are you using? Also: the one that comes with the system or the one with OpenFOAM


The switchableNotImplemented should be in libswak4FoamParsers.so. Maybe that is not linked to simpleFunctionObjects. Could you try inserting that into the libs-list in controlDict before simpleFunctionObjects?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   August 28, 2018, 16:44
Default
  #3
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
Hello Bernhard,


when i did as you suggested i got the following error message:


It seems that the method simpleFunctionObject::movePoints is not properly implemented (neither in the class or any appropriate subclasses).
If you think that it should work anyway add the entry

ignore_unimplemented_simpleFunctionObject::movePoi nts true;

to the dictionary "::massFlow" and we will go on. Alternativly properly implement the method.

Anyway: I'll go die now



--> FOAM FATAL ERROR:
Not implemented

From function simpleFunctionObject::movePoints
in file helpers/switchableNotImplemented.C at line 80.

FOAM aborting


Than I followed the suggestion in the error messaged and it worked.
mAlletto is offline   Reply With Quote

Old   August 29, 2018, 07:02
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by mAlletto View Post
Hello Bernhard,


when i did as you suggested i got the following error message:


It seems that the method simpleFunctionObject::movePoints is not properly implemented (neither in the class or any appropriate subclasses).
If you think that it should work anyway add the entry

ignore_unimplemented_simpleFunctionObject::movePoi nts true;

to the dictionary "::massFlow" and we will go on. Alternativly properly implement the method.

Anyway: I'll go die now



--> FOAM FATAL ERROR:
Not implemented

From function simpleFunctionObject::movePoints
in file helpers/switchableNotImplemented.C at line 80.

FOAM aborting


Than I followed the suggestion in the error messaged and it worked.

Thanks feedback. Seems that I never stumbled on this because I hardly use simpleFunctionObjects alone. I'll fix that
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[foam-extend.org] Foam extend 3.1 rpmBuild error. Saideep OpenFOAM Installation 2 September 25, 2016 20:34
Sig Density Based Solver installation with FOAM Extend 3.2 qjh888 OpenFOAM Bugs 0 September 21, 2016 09:16
[foam-extend.org] Foam extend 3.1 rpmBuild error. Saideep OpenFOAM Installation 0 May 9, 2016 15:50
[swak4Foam] Basic Error when installing swak4foam with foam extend 3.0 mnobrega OpenFOAM Community Contributions 6 April 1, 2014 02:47
Statically Compiling OpenFOAM Issues herzfeldd OpenFOAM Installation 21 January 6, 2009 10:38


All times are GMT -4. The time now is 16:10.