CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] Errors compiling OpenFOAM-5.0

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 11, 2018, 11:00
Default Errors compiling OpenFOAM-5.0
  #1
New Member
 
Join Date: Jan 2018
Posts: 2
Rep Power: 0
renardf is on a distinguished road
Dear Foamers,
Trying to install OpenFOAM-5.0 on linux CentOS 64 bits, with gcc-6.2.0 and mpich-3.2.1 (user installed), I succeeded with scotch and paraview, with a lot of OpenFOAM tools, but I got the following error messages that I can't solve.
Can someone help me ?
Thank you

I'm giving only the main messages among a lot :

...
Allwmake /cea/dsku/u-pong/hal3/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/applications/solvers/compressible/rhoCentralFoam
wmake BCs
wmake dsmcFoam
wmake mdEquilibrationFoam
wmake rhoPimpleDyMFoam
wmake rhoPorousSimpleFoam
wmake sonicDyMFoam
wmake laminarFlameSpeed
wmake rhoReactingBuoyantFoam
wmake adjointOutletPressure
wmake tractionDisplacement
wmake cavitatingDyMFoam
wmake adjointOutletVelocity
wmake SCOPE
wmake PDRModels
wmake dragModels
wmake basic
wmake PDRDragModel
wmake turbulence
wmake PDRkEpsilon
wmake XiEqModels
wmake basicXiSubXiEq
wmake XiGModels
wmake basicXiSubG
wmake XiModels
wmake algebraic
wmake fixed
wmake transport
wmake XiEqModels
wmake Gulder
wmake instabilityXiEq
wmake SCOPEBlendXiEq
wmake SCOPEXiEq
wmake XiEqModel
wmake XiGModels
wmake instabilityG
wmake KTS
wmake XiGModel

...

mpicc -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 -O3 -DNoRepository -ftemplate-depth-100 -I.. -I/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/src/finiteVolume/lnInclude -I/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/src/transportModels/twoPhaseMixture/lnInclude -I/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/src/transportModels -I/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/src/transportModels/incompressible/lnInclude -I/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/src/transportModels/interfaceProperties/lnInclude -I/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/src/TurbulenceModels/turbulenceModels/lnInclude -I/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/src/TurbulenceModels/incompressible/lnInclude -I/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/src/thermophysicalModels/barotropicCompressibilityModel/lnInclude -I/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/src/dynamicMesh/lnInclude -I/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/src/meshTools/lnInclude -I/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/src/dynamicFvMesh/lnInclude -IlnInclude -I. -I/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/src/OpenFOAM/lnInclude -I/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/cavitatingDyMFoam.o -L/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/platforms/linux64GccDPInt32Opt/lib \
-lturbulenceModels -lincompressibleTurbulenceModels -lbarotropicCompressibilityModel -lfiniteVolume -lfvOptions -ldynamicMesh -ldynamicFvMesh -lmeshTools -lOpenFOAM -ldl -lpthread \
-lm -o /cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/platforms/linux64GccDPInt32Opt/bin/cavitatingDyMFoam
mpicc -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 -O3 -DNoRepository -ftemplate-depth-100 -I/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/src/TurbulenceModels/turbulenceModels/lnInclude -I/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/src/TurbulenceModels/incompressible/lnInclude -I/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/src/TurbulenceModels/compressible/lnInclude -I/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/src/transportModels -I/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/src/transportModels/incompressible/singlePhaseTransportModel -I/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/src/finiteVolume/lnInclude -I/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/src/meshTools/lnInclude -IlnInclude -I. -I/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/src/OpenFOAM/lnInclude -I/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/adjointOutletPressure/adjointOutletPressureFvPatchScalarField.o Make/linux64GccDPInt32Opt/adjointOutletVelocity/adjointOutletVelocityFvPatchVectorField.o Make/linux64GccDPInt32Opt/adjointShapeOptimizationFoam.o -L/cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/platforms/linux64GccDPInt32Opt/lib \
-lturbulenceModels -lincompressibleTurbulenceModels -lincompressibleTransportModels -lfiniteVolume -lmeshTools -lfvOptions -lOpenFOAM -ldl -lpthread \
-lm -o /cea/home/b5/renardf/OpenFOAM/OpenFOAM-5.0/platforms/linux64GccDPInt32Opt/bin/adjointShapeOptimizationFoam
Make/linux64GccDPInt32Opt/electrostaticFoam.o: In function `_ZNK4Foam3tmpINS_5FieldIdEEE5clearEv.part.101':
electrostaticFoam.C:(.text+0x1e): undefined reference to `operator delete[](void*)'
electrostaticFoam.C:(.text+0x26): undefined reference to `operator delete(void*)'
Make/linux64GccDPInt32Opt/electrostaticFoam.o: In function `_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESa IcEE12_M_constructIPcEEvT_S7_St20forward_iterator_ tag.isra.182':
electrostaticFoam.C:(.text+0x80): undefined reference to `std::__throw_logic_error(char const*)'
electrostaticFoam.C:(.text+0xcb): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)'
Make/linux64GccDPInt32Opt/electrostaticFoam.o: In function `_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basi c_stringIT_T0_T1_EEPKS5_OS8_.constprop.331':
electrostaticFoam.C:(.text+0x429): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)'
Make/linux64GccDPInt32Opt/electrostaticFoam.o: In function `_ZNK4Foam3tmpINS_12fvPatchFieldIdEEE5clearEv.part .78':
electrostaticFoam.C:(.text+0x4d0): undefined reference to `operator delete(void*)'
electrostaticFoam.C:(.text+0x4de): undefined reference to `operator delete[](void*)'
electrostaticFoam.C:(.text+0x4e6): undefined reference to `operator delete(void*)'
renardf is offline   Reply With Quote

Old   January 12, 2018, 09:35
Default
  #2
New Member
 
Join Date: Jan 2018
Posts: 2
Rep Power: 0
renardf is on a distinguished road
I solved the problem by modifying the wmake/rules/linux64Gcc/c++ in two steps :
- first set CC = g++ -std=c++11 -m64

- errors occur with MPI_ files not found. Then I set : CC = mpicc -std=c++11 -m64
and I run the Allwmake again
renardf is offline   Reply With Quote

Reply

Tags
openfoam-5.0

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 12:58
p_rgh initial residual no change with different settings manuc OpenFOAM Running, Solving & CFD 3 June 26, 2018 16:53
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 07:15
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 16:33
Critical errors during OpenFoam installation in OpenSuse 11.0 amscosta OpenFOAM 5 May 1, 2009 15:06


All times are GMT -4. The time now is 08:36.