Compiling own solver: 'libNULL.so' is up to date. but not executable
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 |
Greetings lindstroem,
Here's how to use wmake and wclean:
Bruno |
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 |
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 = \ |
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 |
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 |
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! |
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 Best regards, Bruno |
Hi Bruno,
thanks for your help. Code:
/local/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/bin/mpirun 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.. |
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 |
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 |
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 |
Quote:
|
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.. |
OK, time for a lesson on "which OpenFOAM reader am I using now?"
Best regards, Bruno |
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 |
Hi Lindstroem,
You've got several possibilities, such as:
Bruno |
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 :D |
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 ! |
All times are GMT -4. The time now is 23:43. |