|
[Sponsors] |
Build Error ffor SU2-7.1.1 Master Branch on Fedora 34 |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Senior Member
Sultan Islam
Join Date: Dec 2015
Location: Canada
Posts: 145
Rep Power: 11 ![]() |
Hello friends,
So I'm trying to build SU2-7.1.1 from source on my Fedora 34 system. I run into this error: Code:
[ai-fe@ai-workstation SU2-master]$ ./ninja -C buld install ninja: Entering directory `buld' [3/840] Compiling C++ object Common/src/libSU2Common.a.p/grid_movement_CGridMovement.cpp.o FAILED: Common/src/libSU2Common.a.p/grid_movement_CGridMovement.cpp.o c++ -ICommon/src/libSU2Common.a.p -ICommon/src -I../Common/src -I../externals/CLI11 -I../externals/cgns/adf -Iexternals/cgns -I../externals/cgns -I../externa ls/metis/include -I../externals/metis/GKlib -I../externals/metis/libmetis -I../externals/parmetis/include -I../externals/parmetis/libparmetis -Iexternals/tec io -I../externals/tecio -Iexternals/tecio/teciompisrc -I../externals/tecio/teciompisrc -I/usr/include/openmpi-x86_64 -fdiagnostics-color=always -pipe -D_FILE _OFFSET_BITS=64 -std=c++11 -O3 -fPIC -pthread -Wno-empty-body -Wno-unused-parameter -Wno-deprecated-declarations -Wno-non-virtual-dtor -DHAVE_CGNS -DNDEBUG - DUSE_MIXED_PRECISION -DHAVE_MPI -DHAVE_METIS -DHAVE_PARMETIS -DHAVE_TECIO -DTECIOMPI -DHAVE_BLAS -DHAVE_LAPACK -MD -MQ Common/src/libSU2Common.a.p/grid_movem ent_CGridMovement.cpp.o -MF 'Common/src/libSU2Common.a.p/grid_movement_CGridMovement.cpp.o.d' -o Common/src/libSU2Common.a.p/grid_movement_CGridMovement.cpp. o -c ../Common/src/grid_movement/CGridMovement.cpp In file included from ../Common/src/grid_movement/../../include/grid_movement/../geometry/CGeometry.hpp:54, from ../Common/src/grid_movement/../../include/grid_movement/CGridMovement.hpp:30, from ../Common/src/grid_movement/CGridMovement.cpp:28: ../Common/src/grid_movement/../../include/grid_movement/../geometry/primal_grid/CPrimalGrid.hpp: In member function ‘virtual long unsigned int CPrimalGrid::G etColor()’: ../Common/src/grid_movement/../../include/grid_movement/../geometry/primal_grid/CPrimalGrid.hpp:242:61:error: ‘numeric_limits’ is not a member of ‘std’ 242 | inline virtual unsigned long GetColor(void) { return std::numeric_limits<unsigned long>::max(); } | ^~~~~~~~~~~~~~ ../Common/src/grid_movement/../../include/grid_movement/../geometry/primal_grid/CPrimalGrid.hpp:242:76:error: expected primary-expression before ‘unsigned’ 242 | inline virtual unsigned long GetColor(void) { return std::numeric_limits<unsigned long>::max(); } | ^~~~~~~~ ../Common/src/grid_movement/../../include/grid_movement/../geometry/primal_grid/CPrimalGrid.hpp:242:76:error: expected ‘;’ before ‘unsigned’ ../Common/src/grid_movement/../../include/grid_movement/../geometry/primal_grid/CPrimalGrid.hpp:242:89:error: expected unqualified-id before ‘>’ token 242 | inline virtual unsigned long GetColor(void) { return std::numeric_limits<unsigned long>::max(); } | ^ [12/840] Compiling C++ object externals/tecio/teciompisrc/libteciompi.a.p/SZLFEPartitionedZoneWriterMPI.cpp.o ninja: build stopped: subcommand failed. My meson command output was this: Code:
[ai-fe@ai-workstation SU2-master]$ ./meson.py buld -Denable-autodiff=true -Denable-directdiff=true -Denable-pywrapper=true -Dwith-mpi=enabled -Denable-mixedp rec=true -Denable-openblas=true -Dblas-name=blas --prefix=/home/ai-fe/.root/opt/SU2-Code/SU2-7.1.1 The Meson build system Version: 0.54.999 Source dir: /home/ai-fe/.root/opt/SU2-Code/SU2-master Build dir: /home/ai-fe/.root/opt/SU2-Code/SU2-master/buld Build type: native build Project name: SU2 Project version: 7.1.1 "Blackbird" C compiler for the host machine: cc (gcc 11.2.1 "cc (GCC) 11.2.1 20210728 (Red Hat 11.2.1-1)") C linker for the host machine: cc ld.bfd 2.35.1-41 C++ compiler for the host machine: c++ (gcc 11.2.1 "c++ (GCC) 11.2.1 20210728 (Red Hat 11.2.1-1)") C++ linker for the host machine: c++ ld.bfd 2.35.1-41 Host machine cpu family: x86_64 Host machine cpu: x86_64 Program python3 found: YES (/usr/bin/python3) Dependency mpi found: YES4.1.0(cached) Dependency mpi found: YES4.1.0(cached) Message: Boost sources found. Dependency blas found: YES3.9.0(cached) Program swig found: YES (/usr/bin/swig) Message: Using mpi4py from /home/ai-fe/.local/lib/python3.9/site-packages/mpi4py/include Found pkg-config: /usr/bin/pkg-config (1.7.3) Dependency python found: YES (pkgconfig) Program install.sh found: YES (/bin/sh /home/ai-fe/.root/opt/SU2-Code/SU2-master/SU2_PY/pySU2/install.sh) Message: ------------------------------------------------------------------------- | ___ _ _ ___ | | / __| | | |_ ) Release 7.1.1 "Blackbird" | | \__ \ |_| |/ / | | |___/\___//___| Meson Configuration Summary | | | ------------------------------------------------------------------------- Option Value --------------------- TecIO: true CGNS: true AD (reverse): true AD (forward): true Python Wrapper: true Intel-MKL: false OpenBlas: true PaStiX: false Mixed Float: true Please be sure to add the $SU2_HOME and $SU2_RUN environment variables, and update your $PATH (and $PYTHONPATH if applicable) with $SU2_RUN Based on the input to this configuration, add these lines to your .bashrc file: export SU2_RUN=/home/ai-fe/.root/opt/SU2-Code/SU2-7.1.1/bin export SU2_HOME=/home/ai-fe/.root/opt/SU2-Code/SU2-master export PATH=$PATH:$SU2_RUN export PYTHONPATH=$PYTHONPATH:$SU2_RUN Use './ninja -C buld install' to compile and install SU2 Build targets in project: 20 Found ninja-1.10.0.git at /home/ai-fe/.root/opt/SU2-Code/SU2-master/ninja |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Pedro Gomes
Join Date: Dec 2017
Posts: 467
Rep Power: 14 ![]() |
Oh that was a problem we had with gcc 11.
The develop branch will build. |
|
![]() |
![]() |
![]() |
![]() |
#3 | |
Senior Member
Sultan Islam
Join Date: Dec 2015
Location: Canada
Posts: 145
Rep Power: 11 ![]() |
Quote:
Thanks |
||
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
big difference between clockTime and executionTime | LM4112 | OpenFOAM Running, Solving & CFD | 21 | February 15, 2019 04:05 |
foam-extend-3.2 Pstream: "MPI_ABORT was invoked" | craven.brent | OpenFOAM Running, Solving & CFD | 5 | November 18, 2015 08:55 |
Building from Source on Windows using Cygwin64 | ericthefatguy | SU2 | 2 | May 12, 2015 19:23 |
Compilation error with OpenFOAM 2.1.x | Martin_ | OpenFOAM Installation | 28 | January 15, 2013 07:58 |
openfoam 1.6 on debian etch | romant | OpenFOAM Installation | 9 | May 6, 2010 03:26 |