Skip to content

could not open some source file while ‘wmake’ #8

@zhanggh97

Description

@zhanggh97

I was learning Openfoam9 by Ubuntu-20.04 in WSL.
I created a new folder named ‘solver’ in $WM_PROJECT_USER_DIR and I copyed the folder 'icoFoam' to it.
When I used the command 'wmake', the system told me:

Making dependency list for source file icoFoam.C
could not open file fvmSup.C for source file icoFoam.C due to No such file or directory
could not open file gaussGrad.H for source file icoFoam.C due to No such file or directory
g++ -std=c++14 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -g -I/home/zhanggh/OpenFOAM/OpenFOAM-9/src/finiteVolume/lnInclude -I/home/zhanggh/OpenFOAM/OpenFOAM-9/src/meshTools/lnInclude -IlnInclude -I. -I/home/zhanggh/OpenFOAM/OpenFOAM-9/src/OpenFOAM/lnInclude -I/home/zhanggh/OpenFOAM/OpenFOAM-9/src/OSspecific/POSIX/lnInclude -fPIC -c icoFoam.C -o Make/linux64GccDPInt32Opt/icoFoam.o
In file included from /home/zhanggh/OpenFOAM/OpenFOAM-9/src/finiteVolume/lnInclude/fvcGrad.H:124,
from /home/zhanggh/OpenFOAM/OpenFOAM-9/src/finiteVolume/lnInclude/fvc.H:49,
from /home/zhanggh/OpenFOAM/OpenFOAM-9/src/finiteVolume/lnInclude/fvCFD.H:8,
from icoFoam.C:32:
/home/zhanggh/OpenFOAM/OpenFOAM-9/src/finiteVolume/lnInclude/fvcGrad.C:29:10: fatal error: /home/zhanggh/OpenFOAM/OpenFOAM-9/src/finiteVolume/lnInclude/gaussGrad.H: Permission denied
29 | #include "gaussGrad.H"
| ^~~~~~~~~~~~~
compilation terminated.
make: *** [/home/zhanggh/OpenFOAM/OpenFOAM-9/wmake/rules/General/transform:26: Make/linux64GccDPInt32Opt/icoFoam.o] Error 1

I checked the permission of 'gaussGrad.H' and 'fvmSup.C', and both of them are 777.
Does anyone know this problem and how to fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions