|
[Sponsors] |
Compiling own solver: 'libNULL.so' is up to date. but not executable |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 2, 2012, 08:19 |
Compiling own solver: 'libNULL.so' is up to date. but not executable
|
#1 |
Senior Member
Join Date: Nov 2010
Posts: 113
Rep Power: 16 |
Hi All,
I wrote a slightly modified solver in OF1.6-ext which basically works. After I had problems compiling another solver, i "wcleaned" to working one (without any modifications) and ran wmake libso again. The compiler says 'libNULL.so' is up to date. but the solver is not executable. I have no idea where to dig for the error, as I made no changes! So I'm open for any ideas Best wishes |
|
July 2, 2012, 08:33 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings lindstroem,
Here's how to use wmake and wclean:
Bruno
__________________
|
|
July 2, 2012, 08:55 |
|
#3 |
Senior Member
Join Date: Nov 2010
Posts: 113
Rep Power: 16 |
Hi Bruno,
thanks for that quick and helpful answer. With just wmake i get a bunch of errors i never so before, that's why I tried wmake libso (which I understand is not correct, but I was "desperate" ) They are all something like libinterfaceProperties.so: undefined reference to 'FOAM::... I just rebuilt all the transportmodels I use, but it did not help.. Best wishes and thanks again |
|
July 2, 2012, 09:13 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
The trick is usually to add to the library list of the respective libraries for which you're using include folders. But some cases things get tricky...
Example: https://github.com/OpenFOAM/OpenFOAM...m/Make/options Code:
EXE_INC = \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/turbulenceModels \ -I$(LIB_SRC)/turbulenceModels/compressible/RAS/RASModel \ -I$(LIB_SRC)/finiteVolume/cfdTools \ -I$(LIB_SRC)/finiteVolume/lnInclude EXE_LIBS = \ -lbasicThermophysicalModels \ -lspecie \ -lcompressibleTurbulenceModel \ -lcompressibleRASModels \ -lfiniteVolume \ -lmeshTools
__________________
|
|
July 2, 2012, 09:41 |
|
#5 |
Senior Member
Join Date: Nov 2010
Posts: 113
Rep Power: 16 |
Hi again,
thanks for that hint.. And here it gets weird, because I just copied the solver from my Laptop (where it compiles) to my local machine where I get the errors. So it seems not to be a problem of the solver or the missing libraries, correct? Most missing references refer to Foam::UIPstream or any other U**steam. Best wishes! Lindstroem |
|
July 2, 2012, 10:01 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Lindstroem,
Ooooh... that's not very good news... the missing lib option would be "-lPstream", but when that happens, something might be misconfigured somewhere... without more specific information, it's complicated to identify the real issue. Best regards, Bruno
__________________
|
|
July 3, 2012, 12:19 |
|
#7 |
Senior Member
Join Date: Nov 2010
Posts: 113
Rep Power: 16 |
Hi Bruno
Thanks for your hint again. The error is now /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lPstream so is the lib somehow missing? ./Allwmake for the whole OF reports everything is up to date... One thing that came into my mind what i might have changed is that i wanted to compile paraview with the "python-filter feature". Maybe I missconfigured something that day.. If you have any idea, I'd be glad to hear it, otherwise I'll need to recompile I think... Thanks! |
|
July 3, 2012, 12:29 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Lindstroem,
I should've written this the other day... The following gives a trail of information about which MPI is configured to be used by your OpenFOAM installation: Code:
which mpirun echo $WM_MPLIB echo $MPI_ARCH_PATH echo $FOAM_MPI ls -l $FOAM_LIBBIN/$FOAM_MPI Best regards, Bruno
__________________
|
|
July 3, 2012, 12:47 |
|
#9 |
Senior Member
Join Date: Nov 2010
Posts: 113
Rep Power: 16 |
Hi Bruno,
thanks for your help. Code:
/local/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/bin/mpirun OPENMPI /local/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt Allwmake reports Code:
'/local/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/openmpi-1.4.3/libPstream.so' is up to date. Thank you so much.. |
|
July 3, 2012, 13:20 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Very, very strange... looks like FOAM_MPI is not being kept around for some weird reason...
Do you have multiple OpenFOAM installations? If so, how are you keeping them apart? Which commit of 1.6-ext are you using? Code:
git log -1
__________________
|
|
July 3, 2012, 14:27 |
|
#11 |
Senior Member
Join Date: Nov 2010
Posts: 113
Rep Power: 16 |
Hi Bruno,
its from Date: Tue Feb 8 20:42:35 2011 +0000 But I think i'll just recompile it, because as I said, it has worked before.. And the time we (especially you) invested here is maybe already too much. I somehow messed it up.. Thank you again for your help!! Lindstroem |
|
July 4, 2012, 12:42 |
|
#12 |
Senior Member
Join Date: Nov 2010
Posts: 113
Rep Power: 16 |
Hi Bruno,
just want to let you know, that it works now.. I recompiled it, and had exactly the same problems as before. The foamInstallationTest showed, that the $MPI_ARCH_PATH was not set. I'm wondering what went wrong, but I think, the path has been unset somehow.. So i basically did not change anything, but it works now, sourcing the etc/bashrc as usual.. One question arises although. The new OF-Version also provided a new Paraview (3.12). In this Version I cannot switch "decompose polyhedron" as before, do you know, where I can get this option back? Thanks in advance! Lindstroem |
|
July 4, 2012, 14:07 |
|
#13 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
This is untrue, pv312 is able to decompose polyhedra. Are you maybe using paraFoam?
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
July 4, 2012, 14:32 |
|
#14 |
Senior Member
Join Date: Nov 2010
Posts: 113
Rep Power: 16 |
Sorry, I did not want to say, that paraview does not offer this anymore, but I just cannot find the option.
Yes I am using paraFoam.. |
|
July 4, 2012, 19:32 |
|
#15 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
OK, time for a lesson on "which OpenFOAM reader am I using now?"
Best regards, Bruno
__________________
|
|
July 5, 2012, 03:06 |
|
#16 |
Senior Member
Join Date: Nov 2010
Posts: 113
Rep Power: 16 |
Hi Bruno,
thanks for your patience.. I was used to have it in the Object Inspector as you wrote. And I am using option No. 2 so I run paraFoam which creates the case.OpenFOAM file. My Object Inspector has only Extrapolate Patches, Include Zones, Include Sets, Show Patch Names, Cache Mesh, Update GUI. best wishes Lindstroem |
|
July 5, 2012, 19:17 |
|
#17 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Lindstroem,
You've got several possibilities, such as:
Bruno
__________________
|
|
July 6, 2012, 03:15 |
|
#18 |
Senior Member
Join Date: Nov 2010
Posts: 113
Rep Power: 16 |
Hi Bruno,
thank you very much, it works again I copied the 2.0 paraFoam script and made an alias for paraFoam with the builtin command. Thanks!! Back in business |
|
November 30, 2020, 06:32 |
|
#19 | |
New Member
Pratyush Kumar
Join Date: Jun 2019
Location: Mumbai
Posts: 19
Rep Power: 7 |
Quote:
I am facing the same issue of -o libNULL.so while compiling. However, in my case I am getting "libPstram.so" while running the last command. Can you tell me why am I facing this problem ? Thanks in advance ! |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
different results between serial solver and parallel solver | wlt_1985 | FLUENT | 11 | October 12, 2018 09:23 |
OpenCL linear solver for OpenFoam 1.7 (alpha) will come out very soon | qinmaple | OpenFOAM Announcements from Other Sources | 4 | August 10, 2012 12:00 |
CFX 5.5 | Roued | CFX | 1 | October 2, 2001 17:49 |
Setting a B.C using UserFortran in 4.3 | tokai | CFX | 10 | July 17, 2001 17:25 |
Error during Solver | cfd guy | CFX | 4 | May 8, 2001 07:04 |