|
[Sponsors] |
November 21, 2021, 21:22 |
Problems compiling DIVEMesh
|
#1 | |||
New Member
Faro Schäfer
Join Date: Nov 2021
Posts: 10
Rep Power: 6 |
When trying to compile DIVEMesh with "make j 8" there seems to be a namespace issue in driver.h with 'data'. Thus the compilation can not be completed.
I followed the steps from the installation videos: Quote:
**System information:** - REEF3D 21.10 - DIVEMesh 21.10 - OpenMPI 4.1.o - Hypre 2.23.0 - OS Ubuntu Here is the output from the compilation: Quote:
Quote:
Last edited by zweihuehner; November 21, 2021 at 21:39. Reason: question wasn't finished |
||||
November 22, 2021, 09:00 |
|
#2 |
Senior Member
Arun Kamath
Join Date: Nov 2014
Location: Trondheim, Norway
Posts: 265
Rep Power: 14 |
Seems like a compiler issue on your local machine.
DiveMESH uses only g++ and has no dependencies. So problems compiling this are quite rare (and therefore I haven't seen a lot a problems) and generally compiler related. Could you please post the output you get for: which gcc which g++ What I also find strange is that while you get an error during the compilation (from the first console output pasted above), the output that denotes the making of the executable is printed out in full (the last output).
__________________
Arun X years with REEF3D |
|
November 22, 2021, 09:19 |
|
#3 | ||
New Member
Faro Schäfer
Join Date: Nov 2021
Posts: 10
Rep Power: 6 |
Thank you for the quick reply.
Quote:
Quote:
|
|||
November 22, 2021, 09:37 |
|
#4 |
Senior Member
Arun Kamath
Join Date: Nov 2014
Location: Trondheim, Norway
Posts: 265
Rep Power: 14 |
The last quote in your original post is correct.
Starts with g++ -w -O3 -march=native -o ./bin/DiveMESH ... ends with build/src/topo.o as expected. Could you please confirm that the DIVEMesh/bin folder is actually empty? Meanwhile I will check if there are any issues with gcc-11
__________________
Arun X years with REEF3D |
|
November 22, 2021, 09:54 |
|
#5 | |
New Member
Faro Schäfer
Join Date: Nov 2021
Posts: 10
Rep Power: 6 |
DIVEMesh/bin is empty.
And I am very sorry there is also output at the very end: Quote:
I forgot to quote it as the maximum number of letters was exceeded. |
||
November 22, 2021, 09:57 |
|
#6 |
Senior Member
Arun Kamath
Join Date: Nov 2014
Location: Trondheim, Norway
Posts: 265
Rep Power: 14 |
No problem
But I can at this stage confirm that compiling fails with gcc-11. We are looking into it and a fix might come soon. In the meantime, as a temp fix: sudo update-alternatives --remove-all gcc sudo update-alternatives --remove-all g++ sudo apt-get install gcc-9.3.0 g++-9.3.0 should help? (This is the highest version I have confirmation currently for a successful compilation on a Linux machine)
__________________
Arun X years with REEF3D Last edited by kamath; November 22, 2021 at 09:58. Reason: command to remove gcc before installing new versions added |
|
November 22, 2021, 10:34 |
|
#7 | |
New Member
Faro Schäfer
Join Date: Nov 2021
Posts: 10
Rep Power: 6 |
Compiles beautifully now!
Your recommended commands didn't work for me, however I did the following instead: Quote:
Versions are now both 9.4.0. |
||
November 23, 2021, 08:19 |
|
#8 |
Super Moderator
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 403
Rep Power: 19 |
Should be fixed in the newest DIVMesh release candidate, should be now compatible with gcc v11.
|
|
November 23, 2021, 10:28 |
|
#9 |
New Member
Faro Schäfer
Join Date: Nov 2021
Posts: 10
Rep Power: 6 |
Thanks a lot !
|
|
Tags |
divemesh |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Various problems compiling interFoam with CFDSupport's v1706 port of OpenFOAM | ndtrong | OpenFOAM Programming & Development | 9 | April 10, 2020 12:56 |
[OpenFOAM.org] Problems with Compiling OpenFOAM-2.1.1 in Ubuntu 16.04 | charles4allme | OpenFOAM Installation | 17 | May 31, 2018 10:01 |
[waves2Foam] Problems compiling with Ubuntu 14.04 and OpenFOAM 3.0.1 | kenrichaiz | OpenFOAM Community Contributions | 4 | December 1, 2016 04:05 |
Problems while compiling OpenFOAM15 with OpenSuse 103 | coompressor | OpenFOAM Installation | 3 | November 7, 2008 01:57 |
Problems with compiling CFD code! | ravi | Main CFD Forum | 1 | July 12, 2004 12:28 |