CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Compiling my own source code: 'libNULL.so' is up to date (https://www.cfd-online.com/Forums/openfoam-programming-development/177976-compiling-my-own-source-code-libnull-so-up-date.html)

MrNinainaidi September 25, 2016 21:47

Compiling my own source code: 'libNULL.so' is up to date
 
Hi FOAMers,

I am suddenly having trouble compiling my source code (it was working perfectly fine).
I have read through the thread posted by lindstroem.
http://www.cfd-online.com/Forums/ope...xecutable.html

I use wclean libso followed by wmake libso, and the following message is what Ive got from the compilation.

Code:

wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file primitives/CRandomSFMT/CRandomSFMT.C
Making dependency list for source file primitives/StochasticLib/StochasticLib.C
Making dependency list for source file eulerianStatistics/eulerianStatistics.C
SOURCE=primitives/CRandomSFMT/CRandomSFMT.C ; 
  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100
  -I/share/apps/OpenFOAM/OpenFOAM-2.4.x/src/finiteVolume/lnInclude
  -I/share/apps/OpenFOAM/OpenFOAM-2.4.x/src/meshTools/lnInclude
  -I/share/apps/OpenFOAM/OpenFOAM-2.4.x/src/OpenFOAM/lnInclude
  -IlnInclude -I.
  -I/share/apps/OpenFOAM/OpenFOAM-2.4.x/src/OpenFOAM/lnInclude
  -I/share/apps/OpenFOAM/OpenFOAM-2.4.x/src/OSspecific/POSIX/lnInclude 
  -fPIC -c $SOURCE -o Make/linux64Gcc47DPOpt/CRandomSFMT.o
SOURCE=primitives/StochasticLib/StochasticLib.C ; 
  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100
  -I/share/apps/OpenFOAM/OpenFOAM-2.4.x/src/finiteVolume/lnInclude
  -I/share/apps/OpenFOAM/OpenFOAM-2.4.x/src/meshTools/lnInclude
  -I/share/apps/OpenFOAM/OpenFOAM-2.4.x/src/OpenFOAM/lnInclude
  -IlnInclude -I.
  -I/share/apps/OpenFOAM/OpenFOAM-2.4.x/src/OpenFOAM/lnInclude
  -I/share/apps/OpenFOAM/OpenFOAM-2.4.x/src/OSspecific/POSIX/lnInclude 
  -fPIC -c $SOURCE -o Make/linux64Gcc47DPOpt/StochasticLib.o
SOURCE=eulerianStatistics/eulerianStatistics.C ; 
  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100
  -I/share/apps/OpenFOAM/OpenFOAM-2.4.x/src/finiteVolume/lnInclude
  -I/share/apps/OpenFOAM/OpenFOAM-2.4.x/src/meshTools/lnInclude
  -I/share/apps/OpenFOAM/OpenFOAM-2.4.x/src/OpenFOAM/lnInclude
  -IlnInclude -I.
  -I/share/apps/OpenFOAM/OpenFOAM-2.4.x/src/OpenFOAM/lnInclude
  -I/share/apps/OpenFOAM/OpenFOAM-2.4.x/src/OSspecific/POSIX/lnInclude 
  -fPIC -c $SOURCE -o Make/linux64Gcc47DPOpt/eulerianStatistics.o
'libNULL.so' is up to date.

BTW I am doing code development on a remote cluster, and I have to constantly change my source code there and clean and recompile it. It was all working fine when suddenly the compiler cannot figure out the name of the libraries that I am trying to compile.

I have tried to compile the same code on my local computer and it worked. The following message is what the last line of the message I provided above should look like.

Code:

'/home/longfei/OpenFOAM/longfei-2.4.x/platforms/linux64GccDPOpt/lib/libmmcFOAM.so' is up to date.
It seems that the compiler is confused about what name should be assigned to the library and where to put it.

How can I solve this problem? Is there anyone else having the similar issue?
Thanks in advance for your help! Best wishes.

PRATBHARAT November 30, 2020 05:27

libNULL.so error while compiling
 
Hello,
Did you find the solution? I am getting the same error.


All times are GMT -4. The time now is 12:08.