|
[Sponsors] |
January 7, 2021, 20:31 |
Compiling new BC
|
#1 |
New Member
Mehrshad Amini
Join Date: Sep 2017
Posts: 10
Rep Power: 9 |
Hello all,
I am trying to compile a new boundary condition on a supercomputer that I have access to it. Although it was compiled before on my personal laptop, it gives me an error here. Please see the error as below: ------------------------------------------------------------------------ ln: ./lnInclude Making dependency list for source file turbulentKineticEnergyInletFvPatchScalarField.C g++ -std=c++11 -m64 -pthread -DOPENFOAM=2006 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -Wl,-rpath,/storage/work/m/mxa261/sw7/spack/opt/spack/linux-rhel7-ivybridge/gcc-8.3.1/openfoam-2006_201012-c37dslk27grmp5gnwpoot22qb2g4wtus/platforms/linux64GccDPInt32-spack/lib -DNoRepository -ftemplate-depth-100 -I/storage/work/m/mxa261/sw7/spack/opt/spack/linux-rhel7-ivybridge/gcc-8.3.1/openfoam-2006_201012-c37dslk27grmp5gnwpoot22qb2g4wtus/src/finiteVolume/lnInclude -I/storage/work/m/mxa261/sw7/spack/opt/spack/linux-rhel7-ivybridge/gcc-8.3.1/openfoam-2006_201012-c37dslk27grmp5gnwpoot22qb2g4wtus/src/meshTools/lnInclude -iquote. -IlnInclude -I/storage/work/m/mxa261/sw7/spack/opt/spack/linux-rhel7-ivybridge/gcc-8.3.1/openfoam-2006_201012-c37dslk27grmp5gnwpoot22qb2g4wtus/src/OpenFOAM/lnInclude -I/storage/work/m/mxa261/sw7/spack/opt/spack/linux-rhel7-ivybridge/gcc-8.3.1/openfoam-2006_201012-c37dslk27grmp5gnwpoot22qb2g4wtus/src/OSspecific/POSIX/lnInclude -fPIC -c turbulentKineticEnergyInletFvPatchScalarField.C -o Make/linux64GccDPInt32-spack/turbulentKineticEnergyInletFvPatchScalarField.o mkdir: cannot create directory '': No such file or directory make: *** [/storage/work/m/mxa261/sw7/spack/opt/spack/linux-rhel7-ivybridge/gcc-8.3.1/openfoam-2006_201012-c37dslk27grmp5gnwpoot22qb2g4wtus/wmake/makefiles/general:182: /libturbulentKineticEnergyInlet.so] Error 1 --------------------------------------------------------------------------------- I could not figure it out yet. I would appreciate the help in advance. Please see the file/option as follow: The files is as below: -------------------------------------------------------------------------------- turbulentKineticEnergyInletFvPatchScalarField.C LIB = $(FOAM_USER_LIBBIN)/libturbulentKineticEnergyInlet -------------------------------------------------------------------------------- The option is as below: -------------------------------------------------------------------------- EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude LIB_LIBS = \ -lfiniteVolume \ -lmeshTools ----------------------------------------------------------------------------- Best, Mehrshad |
|
January 16, 2021, 11:55 |
|
#2 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
Do you have writing rights to the directories you want to write your .so file
|
|
January 16, 2021, 14:04 |
|
#3 |
New Member
Mehrshad Amini
Join Date: Sep 2017
Posts: 10
Rep Power: 9 |
Hi Michael,
Actually I could compile the BC by changing the following in the file: "FOAM_USER_LIBBIN" to "FOAM_LIBBIN" In addition, when I run "echo $FOAM_USER_APPBIN" I got a blank line of output. I think it is not set here. I think the environment variable "FOAM_USER_APPBIN" is not recognized at all. Do you know any solution for it? Thank you in advance. Best, Mehrshad |
|
January 16, 2021, 18:08 |
|
#4 |
New Member
Mehrshad Amini
Join Date: Sep 2017
Posts: 10
Rep Power: 9 |
I solved the issue.
First I source the bashrc file. Then, the "echo $FOAM_USER_APPBIN" worked. It gives me the corresponding address: /storage/home/mxa261/OpenFOAM/mxa261-v2006/platforms/linux64GccDPInt32-spack/bin However, I had to create the directories manually. I do not know why it was not already there! After that, the compilation worked by using wmake command. Best, Mehrshad |
|
January 21, 2021, 07:11 |
|
#5 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Quote:
In most cases the spack installation will use modules to setup the environment, which means that it may fail to set up somethings. Not entirely sure. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
olaFlow - Errors in compiling and tutorial running | GrivalszkiP | OpenFOAM Running, Solving & CFD | 1 | October 14, 2020 18:50 |
[OpenFOAM.org] Compiling OpenFOAM 5.0 on the Titan Supercomputer | wildfire230 | OpenFOAM Installation | 20 | May 6, 2020 08:30 |
Getting error both interpreting and compiling | serene6390 | Fluent UDF and Scheme Programming | 1 | October 27, 2017 01:49 |
[OpenFOAM.org] Trouble Compiling OpenFOAM-dev using Intel Compiler 15 for use on Xeon Phi | foamer123 | OpenFOAM Installation | 9 | August 20, 2015 15:03 |
Help with KIVA4 source code compiling | geothokar | Main CFD Forum | 0 | September 3, 2010 06:40 |