关于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
-
我安装试试,安装完了告诉你嘿嘿
-
@赵一铭 好的,谢谢。总是好奇新版本有啥好东西,总想看看。
-
已经编译到热物理模型了,还没出现问题。我直接在我的系统上下载编译的:下载下来,
./Allwmake
,目前没问题啊。你具体怎么做的? -
-
@赵一铭 而且我有同学和师兄都已经按照这个编译成功了,而我在虚拟机和双系统下都编不成功。很是奇怪,加点儿背。:crying:
-
那个写的太繁琐了,我用岳哥那个虚拟机,直接下载1706,然后编译就好了,现在已经全部编译完了。
-
@赵一铭 我这里不知道为什么总是出错,错误提示大概就是上面的样子,每一次出错的地方还不一样。虚拟机和ubuntu系统我都试过了。结果都这样。最理想的一次是icofoam编好了,但是发现其他的有一些求解器,还有blockmesh都没编好。
-
结论:在出错后,不断尝试重复编译七次之后,终于成功了,给大家提个醒,遇到困难,不要灰心,不要放弃,多尝试几次或许就好了。愿大家不要像我一样点背。天天好运。
-
OMG...辛苦辛苦....我也编译完了,暂时还没玩..
天天好运 -
@maoyanjun_dut 我编译完了都没有出错,但是使用paraview出错,说是your opengl driver don not support require opengl feature for basic rendering, please exit and older version。关键我不知道如何更新旧的版本。
-
@mohui 你这个是显卡驱动太旧了吧。试着更新一下驱动试试。
-
@maoyanjun_dut 关键显示的信息是指换成older version版本,所以 how?
-
https://www.paraview.org/download/
在这里直接下载bin文件,然后双击打开paraview,省去编译步骤。
-
@mohui 在 关于OpenFOAM-v1706安装失败的问题 中说:
现在在计算文件中添加了后缀.foam文档,但是打开之后不能显示计算结果。
默认显示第二个时间步的结果,如果没有第二个时间步,就没有结果
-
zcfd好像有个paraview的superbuild,可以参考一下。是把所有pv的第三方全部编译的。
-
@maoyanjun_dut ,您好,我想问下,您的OPENFOAM-v1706最后是怎么编译成功的,我现在在UBUNTU18.04上编译的时候,总是出现
这个问题,是需要改原先安装包的文件配置吗?谢谢您,麻烦您了
1/21