Skip to content

./Allwmake fails to find the location for including phaseSystem.H etc #93

@djinnome

Description

@djinnome

Hi folks,

I am using Ubuntu 18.04 and
After installing openfoam2406 through apt-get and starting it up, I created a python virtual environment for bird called openfoam.

$ git clone https://github.com/NREL/BioReactorDesign
$ cd BioReactorDesign
$ pyenv virtualenv 3.10.16 openfoam
$ pyenv local openfoam
$ pip install uv
$ uv pip install -e .
Using Python 3.10.16 environment at: /home/zuck016/.pyenv/versions/3.10.16/envs/openfoam
Resolved 28 packages in 1.71s
      Built nrel-bird @ file:///home/zuck016/Projects/BioReactorDesign
Prepared 1 package in 1.42s
Uninstalled 1 package in 0.94ms
Installed 1 package in 1ms
 ~ nrel-bird==0.0.18 (from file:///home/zuck016/Projects/BioReactorDesign)

Then I tried to make birdmultiphaseEulerFoam but it fails to link the local files correctly and fails. Is this because I have a super old version of Ubuntu? Or is it something else?

$ cd ./OFsolvers/birdmultiphaseEulerFoam
$ openfoam2406 --help

Usage: openfoam [OPTION] [[--] application ...]

options:
  -c                Shell commands read from the first non-option argument
  -Dkey[=value]     Define key/value to pass as a preference
  -sp               Single precision
  -dp               Double precision
  -spdp             Mixed single/double precision
  -int32            Label-size 32
  -int64            Label-size 64
  -etc=DIR          Additional project etc/ directory
  -prefix=DIR       Alternative OpenFOAM project directory
  -show-api         Print META-INFO api value and exit
  -show-patch       Print META-INFO patch value and exit
  -show-prefix      Print project directory and exit
  -test-tutorial    Forward arguments to bin/foamTestTutorial
  -init=FILE        Alternative initialization file (expert option)
  -version          Same as -show-api
  -verbose          Set FOAM_VERBOSE=true (interactive only)
  --                The end of option processing.
                    An argument of - or / is equivalent to --.
  -help             Print the usage

Open an interactive bash session with an OpenFOAM environment,
or run an OpenFOAM application (with arguments) after first sourcing
the OpenFOAM etc/bashrc file from the project directory:
(/usr/lib/openfoam/openfoam2406)

For a persistent OpenFOAM environment, the following can be added to your
~/.bashrc file:

    source /usr/lib/openfoam/openfoam2406/etc/bashrc

For more information: www.openfoam.com

$ openfoam2406 
openfoam = /usr/lib/openfoam/openfoam2406

 * Using:     OpenFOAM-v2406 (2406) - visit www.openfoam.com
 * Build:     _9bfe8264-20241212 (patch=241212)
 * Arch:      label=32;scalar=64
 * Platform:  linux64GccDPInt32Opt (mpi=sys-openmpi)

OpenFOAM shell session - use 'exit' to quit

openfoam2406:~/Projects/BioReactorDesign/OFsolvers/birdmultiphaseEulerFoam/
zuck016$ ls
Allwclean  functionObjects  interfacialCompositionModels  multiphaseCompressibleMomentumTransportModels  multiphaseReactions  README.md
Allwmake   include          interfacialModels             multiphaseEulerFoam                            phaseSystems
openfoam2406:~/Projects/BioReactorDesign/OFsolvers/birdmultiphaseEulerFoam/
zuck016$ ./Allwclean 
wclean libso phaseSystems
wclean libso interfacialModels
wclean libso interfacialCompositionModels
wclean libso multiphaseCompressibleMomentumTransportModels
wclean libso multiphaseSystems
wclean libso functionObjects
openfoam2406:~/Projects/BioReactorDesign/OFsolvers/birdmultiphaseEulerFoam/
zuck016$ ./Allwmake 
TargetType: 
Compiling enabled on 4 cores
wmake functionObjects
    ln: ./lnInclude
Making dependencies: disengagement.C
Making dependencies: phaseMap.C
Making dependencies: sizeDistribution.C
Making dependencies: phaseForces.C
wmkdepend: could not open 'wmkdepend: could not open 'phaseSystem.H' for source file 'phaseForces/phaseForces.C': No such file or directory
populationBalanceModel.H' for source file 'sizeDistribution/sizeDistribution.C': No such file or directory
wmkdepend: could not open 'setWriter.H' for source file 'sizeDistribution/sizeDistribution.C': No such file or directory
wmkdepend: could not open 'phaseSystem.H' for source file 'phaseMap/phaseMap.C': No such file or directory
wmkdepend: could not open 'phaseSystem.H' for source file 'disengagement/disengagement.C': No such file or directory
wmkdepend: could not open 'BlendedInterfacialModel.H' for source file 'phaseForces/phaseForces.C': No such file or directory
wmkdepend: could not open 'dragModel.H' for source file 'phaseForces/phaseForces.C': No such file or directory
wmkdepend: could not open 'virtualMassModel.H' for source file 'phaseForces/phaseForces.C': No such file or directory
wmkdepend: could not open 'liftModel.H' for source file 'phaseForces/phaseForces.C': No such file or directory
wmkdepend: could not open 'wallLubricationModel.H' for source file 'phaseForces/phaseForces.C': No such file or directory
wmkdepend: could not open 'turbulentDispersionModel.H' for source file 'phaseForces/phaseForces.C': No such file or directory
g++ -std=c++14 -m64 -pthread -DOPENFOAM=2406 -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  -DNoRepository -ftemplate-depth-100  -I../phaseSystems/lnInclude -I../interfacialModels/lnInclude -I/usr/lib/openfoam/openfoam2406/src/transportModels/lnInclude -I/usr/lib/openfoam/openfoam2406/src/thermophysicalModels/basic/lnInclude -I/usr/lib/openfoam/openfoam2406/src/MomentumTransportModels/momentumTransportModels/lnInclude -I/usr/lib/openfoam/openfoam2406/src/MomentumTransportModels/compressible/lnInclude -I/usr/lib/openfoam/openfoam2406/src/MomentumTransportModels/phaseCompressible/lnInclude -I/usr/lib/openfoam/openfoam2406/src/finiteVolume/lnInclude -I/usr/lib/openfoam/openfoam2406/src/meshTools/lnInclude -I/usr/lib/openfoam/openfoam2406/src/fileFormats/lnInclude -I/usr/lib/openfoam/openfoam2406/src/functionObjects/field/lnInclude -I/usr/lib/openfoam/openfoam2406/src/sampling/lnInclude -iquote. -IlnInclude -I/usr/lib/openfoam/openfoam2406/src/OpenFOAM/lnInclude -I/usr/lib/openfoam/openfoam2406/src/OSspecific/POSIX/lnInclude   -fPIC -c sizeDistribution/sizeDistribution.C -o Make/linux64GccDPInt32Opt/sizeDistribution/sizeDistribution.o
g++ -std=c++14 -m64 -pthread -DOPENFOAM=2406 -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  -DNoRepository -ftemplate-depth-100  -I../phaseSystems/lnInclude -I../interfacialModels/lnInclude -I/usr/lib/openfoam/openfoam2406/src/transportModels/lnInclude -I/usr/lib/openfoam/openfoam2406/src/thermophysicalModels/basic/lnInclude -I/usr/lib/openfoam/openfoam2406/src/MomentumTransportModels/momentumTransportModels/lnInclude -I/usr/lib/openfoam/openfoam2406/src/MomentumTransportModels/compressible/lnInclude -I/usr/lib/openfoam/openfoam2406/src/MomentumTransportModels/phaseCompressible/lnInclude -I/usr/lib/openfoam/openfoam2406/src/finiteVolume/lnInclude -I/usr/lib/openfoam/openfoam2406/src/meshTools/lnInclude -I/usr/lib/openfoam/openfoam2406/src/fileFormats/lnInclude -I/usr/lib/openfoam/openfoam2406/src/functionObjects/field/lnInclude -I/usr/lib/openfoam/openfoam2406/src/sampling/lnInclude -iquote. -IlnInclude -I/usr/lib/openfoam/openfoam2406/src/OpenFOAM/lnInclude -I/usr/lib/openfoam/openfoam2406/src/OSspecific/POSIX/lnInclude   -fPIC -c phaseForces/phaseForces.C -o Make/linux64GccDPInt32Opt/phaseForces/phaseForces.o
g++ -std=c++14 -m64 -pthread -DOPENFOAM=2406 -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  -DNoRepository -ftemplate-depth-100  -I../phaseSystems/lnInclude -I../interfacialModels/lnInclude -I/usr/lib/openfoam/openfoam2406/src/transportModels/lnInclude -I/usr/lib/openfoam/openfoam2406/src/thermophysicalModels/basic/lnInclude -I/usr/lib/openfoam/openfoam2406/src/MomentumTransportModels/momentumTransportModels/lnInclude -I/usr/lib/openfoam/openfoam2406/src/MomentumTransportModels/compressible/lnInclude -I/usr/lib/openfoam/openfoam2406/src/MomentumTransportModels/phaseCompressible/lnInclude -I/usr/lib/openfoam/openfoam2406/src/finiteVolume/lnInclude -I/usr/lib/openfoam/openfoam2406/src/meshTools/lnInclude -I/usr/lib/openfoam/openfoam2406/src/fileFormats/lnInclude -I/usr/lib/openfoam/openfoam2406/src/functionObjects/field/lnInclude -I/usr/lib/openfoam/openfoam2406/src/sampling/lnInclude -iquote. -IlnInclude -I/usr/lib/openfoam/openfoam2406/src/OpenFOAM/lnInclude -I/usr/lib/openfoam/openfoam2406/src/OSspecific/POSIX/lnInclude   -fPIC -c phaseMap/phaseMap.C -o Make/linux64GccDPInt32Opt/phaseMap/phaseMap.o
g++ -std=c++14 -m64 -pthread -DOPENFOAM=2406 -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  -DNoRepository -ftemplate-depth-100  -I../phaseSystems/lnInclude -I../interfacialModels/lnInclude -I/usr/lib/openfoam/openfoam2406/src/transportModels/lnInclude -I/usr/lib/openfoam/openfoam2406/src/thermophysicalModels/basic/lnInclude -I/usr/lib/openfoam/openfoam2406/src/MomentumTransportModels/momentumTransportModels/lnInclude -I/usr/lib/openfoam/openfoam2406/src/MomentumTransportModels/compressible/lnInclude -I/usr/lib/openfoam/openfoam2406/src/MomentumTransportModels/phaseCompressible/lnInclude -I/usr/lib/openfoam/openfoam2406/src/finiteVolume/lnInclude -I/usr/lib/openfoam/openfoam2406/src/meshTools/lnInclude -I/usr/lib/openfoam/openfoam2406/src/fileFormats/lnInclude -I/usr/lib/openfoam/openfoam2406/src/functionObjects/field/lnInclude -I/usr/lib/openfoam/openfoam2406/src/sampling/lnInclude -iquote. -IlnInclude -I/usr/lib/openfoam/openfoam2406/src/OpenFOAM/lnInclude -I/usr/lib/openfoam/openfoam2406/src/OSspecific/POSIX/lnInclude   -fPIC -c disengagement/disengagement.C -o Make/linux64GccDPInt32Opt/disengagement/disengagement.o
In file included from phaseMap/phaseMap.C:26:0:
phaseMap/phaseMap.H:61:10: fatal error: phaseSystem.H: No such file or directory
 #include "phaseSystem.H"
          ^~~~~~~~~~~~~~~
compilation terminated.
In file included from phaseForces/phaseForces.C:26:0:
phaseForces/phaseForces.H:71:10: fatal error: phaseSystem.H: No such file or directory
 #include "phaseSystem.H"
          ^~~~~~~~~~~~~~~
compilation terminated.
/usr/lib/openfoam/openfoam2406/wmake/rules/General/transform:37: recipe for target 'Make/linux64GccDPInt32Opt/phaseMap/phaseMap.o' failed
make: *** [Make/linux64GccDPInt32Opt/phaseMap/phaseMap.o] Error 1
make: *** Waiting for unfinished jobs....
/usr/lib/openfoam/openfoam2406/wmake/rules/General/transform:37: recipe for target 'Make/linux64GccDPInt32Opt/phaseForces/phaseForces.o' failed
make: *** [Make/linux64GccDPInt32Opt/phaseForces/phaseForces.o] Error 1
In file included from disengagement/disengagement.C:26:0:
disengagement/disengagement.H:86:10: fatal error: phaseSystem.H: No such file or directory
 #include "phaseSystem.H"
          ^~~~~~~~~~~~~~~
compilation terminated.
/usr/lib/openfoam/openfoam2406/wmake/rules/General/transform:37: recipe for target 'Make/linux64GccDPInt32Opt/disengagement/disengagement.o' failed
make: *** [Make/linux64GccDPInt32Opt/disengagement/disengagement.o] Error 1
In file included from sizeDistribution/sizeDistribution.C:26:0:
sizeDistribution/sizeDistribution.H:77:10: fatal error: populationBalanceModel.H: No such file or directory
 #include "populationBalanceModel.H"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
/usr/lib/openfoam/openfoam2406/wmake/rules/General/transform:37: recipe for target 'Make/linux64GccDPInt32Opt/sizeDistribution/sizeDistribution.o' failed
make: *** [Make/linux64GccDPInt32Opt/sizeDistribution/sizeDistribution.o] Error 1
openfoam2406:~/Projects/BioReactorDesign/OFsolvers/birdmultiphaseEulerFoam/
zuck016$ 

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions