May 5, 2020, 23:41
|
Openfoam7 Compile error on CentOS7
|
#1
|
New Member
zizhou huang
Join Date: Jul 2019
Posts: 18
Rep Power: 6
|
Hi FOAMers,
I was trying to compile OpenFOAM7 on CentOS7 without root permission, by following https://openfoam.org/download/7-source/. However, I got error when The log file is shown below.
Quote:
Allwmake /home/zh1476/OpenFOAM/OpenFOAM-7
make: Nothing to be done for `all'.
========================================
Start ThirdParty Allwmake
========================================
========================================
Build MPI libraries if required
========================================
Build Scotch decomposition library scotch_6.0.6
/home/zh1476/OpenFOAM/ThirdParty-7/platforms/linux64GccDPInt32/scotch_6.0.6
scotch header in /home/zh1476/OpenFOAM/ThirdParty-7/platforms/linux64GccDPInt32/scotch_6.0.6/include
scotch libs in /home/zh1476/OpenFOAM/ThirdParty-7/platforms/linux64GccDPInt32/lib
========================================
Build PTScotch decomposition library scotch_6.0.6 (uses MPI)
/home/zh1476/OpenFOAM/ThirdParty-7/platforms/linux64GccDPInt32/scotch_6.0.6
ptscotch header in /home/zh1476/OpenFOAM/ThirdParty-7/platforms/linux64GccDPInt32/scotch_6.0.6/include/openmpi-system
ptscotch libs in /home/zh1476/OpenFOAM/ThirdParty-7/platforms/linux64GccDPInt32/lib/openmpi-system
========================================
Build Metis decomposition
optional component Metis was not found
========================================
Build CGAL
skipped because foamyHexMesh is not selected
========================================
Done ThirdParty Allwmake
========================================
Allwmake src
no git description found
Allwmake src/Pstream
wmake dummy
wmake mpi
Allwmake libo src/OSspecific/POSIX
found <sys/inotify.h> -- enabling inotify for file monitoring.
wmake libo .
wmake OpenFOAM
wmake fileFormats
wmake surfMesh
flex -+ -o/home/zh1476/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/src/surfMesh/surfaceFormats/stl/STLsurfaceFormatASCII.L.C -f surfaceFormats/stl/STLsurfaceFormatASCII.L && g++ -std=c++11 -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 -I/home/zh1476/OpenFOAM/OpenFOAM-7/src/fileFormats/lnInclude -IlnInclude -I. -I/home/zh1476/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude -I/home/zh1476/OpenFOAM/OpenFOAM-7/src/OSspecific/POSIX/lnInclude -fPIC -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds -c /home/zh1476/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/src/surfMesh/surfaceFormats/stl/STLsurfaceFormatASCII.L.C -o /home/zh1476/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/src/surfMesh/surfaceFormats/stl/STLsurfaceFormatASCII.o
/home/zh1476/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/src/surfMesh/surfaceFormats/stl/STLsurfaceFormatASCII.L.C:301:10: fatal error: FlexLexer.h: No such file or directory
301 |
| ^
compilation terminated.
make: *** [/home/zh1476/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/src/surfMesh/surfaceFormats/stl/STLsurfaceFormatASCII.o] Error 1
|
The version of software is listed below.
Quote:
bash-4.2$ gcc --version
gcc (GCC) 9.1.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
bash-4.2$ cmake --version
cmake version 3.16.3
CMake suite maintained and supported by Kitware (kitware.com/cmake).
bash-4.2$ mpirun --version
mpirun (Open MPI) 4.0.2
Report bugs to http://www.open-mpi.org/community/help/
bash-4.2$ flex --version
flex 2.6.4
|
Can someone help me fix this error? Thanks a lot!
Last edited by zizhou; May 7, 2020 at 02:57.
|
|
|