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

Build Error ffor SU2-7.1.1 Master Branch on Fedora 34

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2021, 03:22
Default Build Error ffor SU2-7.1.1 Master Branch on Fedora 34
  #1
Senior Member
 
Sultan Islam
Join Date: Dec 2015
Location: Canada
Posts: 137
Rep Power: 10
EternalSeekerX is on a distinguished road
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.
I don't know if this is a user error on my side or what? I am using Gcc-11.2 and running OpenMPI-4.1.0.


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
EternalSeekerX is offline   Reply With Quote

Old   August 8, 2021, 07:21
Default
  #2
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 465
Rep Power: 13
pcg is on a distinguished road
Oh that was a problem we had with gcc 11.
The develop branch will build.
pcg is offline   Reply With Quote

Old   August 8, 2021, 21:10
Default Yes develop branch works
  #3
Senior Member
 
Sultan Islam
Join Date: Dec 2015
Location: Canada
Posts: 137
Rep Power: 10
EternalSeekerX is on a distinguished road
Quote:
Originally Posted by pcg View Post
Oh that was a problem we had with gcc 11.
The develop branch will build.
Hey thanks for the heads up, develop branch works, but for some reason I can get pastix 6 to work. I think I saw your reply in my github issue post. I am gonna be using su2 for external aerodynamic mostly, what am I missing if I don't use pastix support?

Thanks
EternalSeekerX 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
big difference between clockTime and executionTime LM4112 OpenFOAM Running, Solving & CFD 21 February 15, 2019 03:05
foam-extend-3.2 Pstream: "MPI_ABORT was invoked" craven.brent OpenFOAM Running, Solving & CFD 5 November 18, 2015 07:55
Building from Source on Windows using Cygwin64 ericthefatguy SU2 2 May 12, 2015 18:23
Compilation error with OpenFOAM 2.1.x Martin_ OpenFOAM Installation 28 January 15, 2013 06:58
openfoam 1.6 on debian etch romant OpenFOAM Installation 9 May 6, 2010 02:26


All times are GMT -4. The time now is 15:25.