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

[OpenFOAM.com] OF-v1706 debug mode compilation error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 1, 2021, 06:24
Default OF-v1706 debug mode compilation error
  #1
SK2
New Member
 
Shubham
Join Date: Jul 2021
Posts: 3
Rep Power: 4
SK2 is on a distinguished road
I am try to compile open V-1706 in WSL on window 10 in debug mode.
Steps I followed:
1. I create new alias as :
alias of1706='source /opt/OpenFOAM/OpenFOAM-v1706/etc/bashrc'
alias of1706_dbg='source /opt/OpenFOAM/OpenFOAM-v1706/etc/bashrc_debug'

2. after sourcing it, I go to /opt/OpenFOAM/OpenFOAM-v1706/etc/ directory.

3. copy "bashrc" file and paste it with name "bashrc_debug".

4. go to $WM_PROJECT_DIR and run cmd "./Allwmake"

Compilation terminated with error. Screen output is :

========================================
2021-08-01 15:22:57 +0530
Starting OpenFOAM-v1706
Gcc63 ThirdParty compiler
linux64Gcc63DPInt32Debug, with OPENMPI openmpi-1.10.4

built wmake-bin for linux64Gcc63

========================================
Start ThirdParty Allwmake
========================================

========================================
Build MPI libraries if required
/opt/OpenFOAM/ThirdParty-v1706/platforms/linux64Gcc63/openmpi-1.10.4
Have openmpi shared library (openmpi-1.10.4)

========================================
Build Scotch decomposition library scotch_6.0.3
/opt/OpenFOAM/ThirdParty-v1706/platforms/linux64Gcc63DPInt32/scotch_6.0.3
scotch header in /opt/OpenFOAM/ThirdParty-v1706/platforms/linux64Gcc63DPInt32/scotch_6.0.3/include
scotch libs in /opt/OpenFOAM/ThirdParty-v1706/platforms/linux64Gcc63DPInt32/lib

========================================
Build pt-scotch decomposition library scotch_6.0.3 (with openmpi-1.10.4)
/opt/OpenFOAM/ThirdParty-v1706/platforms/linux64Gcc63DPInt32/scotch_6.0.3
ptscotch header in /opt/OpenFOAM/ThirdParty-v1706/platforms/linux64Gcc63DPInt32/scotch_6.0.3/include/openmpi-1.10.4
ptscotch libs in /opt/OpenFOAM/ThirdParty-v1706/platforms/linux64Gcc63DPInt32/lib/openmpi-1.10.4

========================================
Build Metis decomposition
Optional component (METIS) was not found


========================================
Build CGAL
Starting build: boost_1_64_0

./makeCGAL: 218: cd: can't cd to /opt/OpenFOAM/ThirdParty-v1706/boost_1_64_0
Error building: boost

---------------------------------------------------
Optional component (CGAL) had build issues
OpenFOAM will nonetheless remain largely functional
---------------------------------------------------


========================================
Build FFTW
Already has FFTW shared library

========================================
Done ThirdParty Allwmake
========================================

========================================
Compile OpenFOAM libraries

no git description found
wmakeLnInclude: linking include files to OpenFOAM/lnInclude
wmakeLnInclude: linking include files to OSspecific/POSIX/lnInclude
wmake dummy
wmake dummy
wclean mpi
wmake mpi
wmake mpi
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file PstreamGlobals.C
Making dependency list for source file UPstream.C
Making dependency list for source file UIPread.C
Making dependency list for source file UOPwrite.C
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 -O0 -fdefault-inline -ggdb3 -DFULLDEBUG -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -isystem /opt/OpenFOAM/ThirdParty-v1706/platforms/linux64Gcc63/openmpi-1.10.4/include -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1706/src/OSspecific/POSIX/lnInclude -fPIC -c UOPwrite.C -o /opt/OpenFOAM/OpenFOAM-v1706/build/linux64Gcc63DPInt32DebugOPENMPI/src/Pstream/mpi/UOPwrite.o
In file included from UOPwrite.C:30:0:
PstreamGlobals.H:41:17: fatal error: mpi.h: No such file or directory
#include <mpi.h>
^
compilation terminated.
make: *** [/opt/OpenFOAM/OpenFOAM-v1706/wmake/rules/General/transform:29: /opt/OpenFOAM/OpenFOAM-v1706/build/linux64Gcc63DPInt32DebugOPENMPI/src/Pstream/mpi/UOPwrite.o] Error 1
SK2 is offline   Reply With Quote

Reply


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
[swak4Foam] swak4foam openfoam 7 installation problem Andrea23 OpenFOAM Community Contributions 1 February 17, 2020 18:11
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 07:24
[swak4Foam] groovyBC: problems compiling: "flex: not found" and "undefined reference to ..." sega OpenFOAM Community Contributions 12 February 17, 2010 09:30
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 23:53.