关于OpenFOAM-v1706安装失败的问题
-
我在virtualbox 上安装的Ubuntu16.04系统,上安装OpenFOAM-v1706,按照openfoamwiki上关于v1612+的安装指导[进行的安装,结果出现了如log文件中的错误。请各位帮忙看一下是什么原因导致的错误。GCC版本lgcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)
Making dependency list for source file data.C-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM -IlnInclude -I. -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OSspecific/POSIX/lnInclude -fPIC -c meshes/pointMesh/pointPatches/constraint/symmetry/symmetryPointPatch.C -o /home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM/meshes/pointMesh/pointPatches/constraint/symmetry/symmetryPointPatch.o g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1706 -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 -O3 -DNoRepository -ftemplate-depth-100 -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM -IlnInclude -I. -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OSspecific/POSIX/lnInclude -fPIC -c meshes/pointMesh/pointPatches/constraint/wedge/wedgePointPatch.C -o /home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM/meshes/pointMesh/pointPatches/constraint/wedge/wedgePointPatch.o g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1706 -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 -O3 -DNoRepository -ftemplate-depth-100 -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM -IlnInclude -I. -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OSspecific/POSIX/lnInclude -fPIC -c meshes/pointMesh/pointPatches/derived/coupled/coupledFacePointPatch.C -o /home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM/meshes/pointMesh/pointPatches/derived/coupled/coupledFacePointPatch.o g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1706 -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 -O3 -DNoRepository -ftemplate-depth-100 -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM -IlnInclude -I. -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OSspecific/POSIX/lnInclude -fPIC -c meshes/pointMesh/pointPatches/derived/wall/wallPointPatch.C -o /home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM/meshes/pointMesh/pointPatches/derived/wall/wallPointPatch.o g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1706 -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 -O3 -DNoRepository -ftemplate-depth-100 -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM -IlnInclude -I. -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OSspecific/POSIX/lnInclude -fPIC -c meshes/pointMesh/pointBoundaryMesh/pointBoundaryMesh.C -o /home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM/meshes/pointMesh/pointBoundaryMesh/pointBoundaryMesh.o g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1706 -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 -O3 -DNoRepository -ftemplate-depth-100 -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM -IlnInclude -I. -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OSspecific/POSIX/lnInclude -fPIC -c meshes/boundBox/boundBox.C -o /home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM/meshes/boundBox/boundBox.o g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1706 -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 -O3 -DNoRepository -ftemplate-depth-100 -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM -IlnInclude -I. -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OSspecific/POSIX/lnInclude -fPIC -c meshes/treeBoundBox/treeBoundBox.C -o /home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM/meshes/treeBoundBox/treeBoundBox.o meshes/boundBox/boundBox.C: In member function ‘Foam::tmp<Foam::Field<Foam::Vector<double> > > Foam::boundBox::points() const’: meshes/boundBox/boundBox.C:110:34: internal compiler error: Segmentation fault pointField& pt = tpoints.ref(); ^ g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1706 -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 -O3 -DNoRepository -ftemplate-depth-100 -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM -IlnInclude -I. -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OSspecific/POSIX/lnInclude -fPIC -c meshes/meshTools/matchPoints.C -o /home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM/meshes/meshTools/matchPoints.o Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions. /home/maoyanjun/OpenFOAM/OpenFOAM-v1706/wmake/rules/General/transform:28: recipe for target '/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM/meshes/boundBox/boundBox.o' failed make: *** [/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM/meshes/boundBox/boundBox.o] Error 1 make: *** Waiting for unfinished jobs....
-
准确的说应该是编译Thirdparty时就已经遇到的问题:
15%] Python Wrapping - generating vtkCellLinksPython.cxx [ 15%] Python Wrapping - generating vtkCellLocatorPython.cxx [ 15%] Python Wrapping - generating vtkCellTypesPython.cxx In file included from /usr/include/c++/5/random:49:0, from /usr/include/c++/5/bits/stl_algo.h:66, from /usr/include/c++/5/algorithm:62, from /home/maoyanjun/OpenFOAM/ThirdParty-v1706/build/linux64Gcc/ParaView-5.4.0/VTK/Common/Core/vtkSMPToolsInternal.h:15, from /home/maoyanjun/OpenFOAM/ThirdParty-v1706/ParaView-v5.4.0/VTK/Common/Core/vtkSMPTools.h:33, from /home/maoyanjun/OpenFOAM/ThirdParty-v1706/ParaView-v5.4.0/VTK/Common/ExecutionModel/vtkThreadedImageAlgorithm.cxx:27: /usr/include/c++/5/bits/random.h:4014:31: internal compiler error: Segmentation fault typename _CharT, typename _Traits> ^ [ 15%] Building CXX object VTK/Common/ExecutionModel/CMakeFiles/vtkCommonExecutionModel.dir/vtkTrivialConsumer.cxx.o Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions. VTK/Common/ExecutionModel/CMakeFiles/vtkCommonExecutionModel.dir/build.make:1287: recipe for target 'VTK/Common/ExecutionModel/CMakeFiles/vtkCommonExecutionModel.dir/vtkThreadedImageAlgorithm.cxx.o' failed make[2]: *** [VTK/Common/ExecutionModel/CMakeFiles/vtkCommonExecutionModel.dir/vtkThreadedImageAlgorithm.cxx.o] Error 1 make[2]: *** Waiting for unfinished jobs.... [ 15%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkCommonDataModelCS.dir/vtkDirectedAcyclicGraphClientServer.cxx.o [ 15%] Python Wrapping - generating vtkCompositeDataSetPython.cxx [ 15%] Python Wrapping - generating vtkCompositeDataIteratorPython.cxx [ 15%] Python Wrapping - generating vtkConePython.cxx [ 15%] Python Wrapping - generating vtkConvexPointSetPython.cxx [ 15%] Python Wrapping - generating vtkCubicLinePython.cxx [ 15%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkCommonDataModelCS.dir/vtkDirectedGraphClientServer.cxx.o [ 15%] Python Wrapping - generating vtkCylinderPython.cxx [ 15%] Python Wrapping - generating vtkDataSetCellIteratorPython.cxx [ 15%] Python Wrapping - generating vtkDataObjectCollectionPython.cxx [ 15%] Python Wrapping - generating vtkDataObjectPython.cxx [ 15%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkCommonDataModelCS.dir/vtkDistributedGraphHelperClientServer.cxx.o [ 15%] Python Wrapping - generating vtkDataObjectTypesPython.cxx [ 15%] Python Wrapping - generating vtkDataObjectTreePython.cxx [ 15%] Python Wrapping - generating vtkDataObjectTreeIteratorPython.cxx [ 15%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkCommonDataModelCS.dir/vtkEdgeListIteratorClientServer.cxx.o [ 15%] Python Wrapping - generating vtkDataSetAttributesPython.cxx [ 15%] Python Wrapping - generating vtkDataSetCollectionPython.cxx [ 15%] Python Wrapping - generating vtkDataSetPython.cxx [ 15%] Python Wrapping - generating vtkDirectedAcyclicGraphPython.cxx [ 15%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkCommonDataModelCS.dir/vtkEdgeTableClientServer.cxx.o CMakeFiles/Makefile2:2016: recipe for target 'VTK/Common/ExecutionModel/CMakeFiles/vtkCommonExecutionModel.dir/all' failed make[1]: *** [VTK/Common/ExecutionModel/CMakeFiles/vtkCommonExecutionModel.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 15%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkCommonDataModelCS.dir/vtkEmptyCellClientServer.cxx.o
-
结论:在出错后,不断尝试重复编译七次之后,终于成功了,给大家提个醒,遇到困难,不要灰心,不要放弃,多尝试几次或许就好了。愿大家不要像我一样点背。天天好运。
-
@maoyanjun_dut 我编译完了都没有出错,但是使用paraview出错,说是your opengl driver don not support require opengl feature for basic rendering, please exit and older version。关键我不知道如何更新旧的版本。
-
@maoyanjun_dut 关键显示的信息是指换成older version版本,所以 how?
-
@maoyanjun_dut ,您好,我想问下,您的OPENFOAM-v1706最后是怎么编译成功的,我现在在UBUNTU18.04上编译的时候,总是出现
这个问题,是需要改原先安装包的文件配置吗?谢谢您,麻烦您了