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

Problems with ninja command

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 12, 2023, 09:02
Exclamation Problems with ninja command
  #1
New Member
 
Gianmarco Farro
Join Date: Apr 2023
Posts: 3
Rep Power: 3
Gianmarco$ is on a distinguished road
After downloading the source code of SU2 7.5.1 from github and switching to the 'develop' branch from the 'master' one, I tried to build the 'build' (enabling CoolProp and disabling CGNS support) via the command

./meson.py build -Denable-coolprop=true -Denable-cgns=false

This seemed to work. When I run the command to install

./ninja -C build install

I get the following error:

[497/509] Linking target SU2_GEO/src/SU2_GEO
FAILED: SU2_GEO/src/SU2_GEO
c++ -o SU2_GEO/src/SU2_GEO SU2_GEO/src/SU2_GEO.p/SU2_GEO.cpp.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/usr/lib/x86_64-linux-gnu/openmpi/lib -Wl,-rpath-link,/usr/lib/x86_64-linux-gnu/openmpi/lib -Wl,--start-group externals/metis/libmetis.a externals/parmetis/libparmetis.a externals/tecio/teciompisrc/libteciompi.a subprojects/CoolProp/libCoolProp.a Common/src/libSU2Common.a -L/usr/lib/x86_64-linux-gnu/openmpi/lib -L/usr//lib -lmpi /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so -L/usr/lib/x86_64-linux-gnu/openmpi/lib -L/usr//lib -lmpi -L/usr/lib/x86_64-linux-gnu/openmpi/lib -L/usr//lib -lmpi -L/usr/lib/x86_64-linux-gnu/openmpi/lib -L/usr//lib -lmpi -L/usr/lib/x86_64-linux-gnu/openmpi/lib -L/usr//lib -lmpi -L/usr/lib/x86_64-linux-gnu/openmpi/lib -L/usr//lib -lmpi -L/usr/lib/x86_64-linux-gnu/openmpi/lib -L/usr//lib -lmpi -L/usr/lib/x86_64-linux-gnu/openmpi/lib -L/usr//lib -lmpi -Wl,--end-group
/usr/bin/ld: impossibile trovare -lmpi
/usr/bin/ld: impossibile trovare -lmpi
/usr/bin/ld: impossibile trovare -lmpi
/usr/bin/ld: impossibile trovare -lmpi
/usr/bin/ld: impossibile trovare -lmpi
/usr/bin/ld: impossibile trovare -lmpi
/usr/bin/ld: impossibile trovare -lmpi
/usr/bin/ld: impossibile trovare -lmpi
collect2: error: ld returned 1 exit status
[502/509] Compiling C++ object SU2_DEF/src/SU2_DEF.p/drivers_CDiscAdjDeformationDriver.cpp.o
ninja: build stopped: subcommand failed.


What I tried then was to disable the MPI support and try again with the ninja command. This time I got a different error:

[405/411] Linking target SU2_CFD/src/SU2_CFD
FAILED: SU2_CFD/src/SU2_CFD
c++ -o SU2_CFD/src/SU2_CFD SU2_CFD/src/SU2_CFD.p/SU2_CFD.cpp.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -Wl,--start-group SU2_CFD/src/libSU2core.a externals/tecio/teciosrc/libtecio.a subprojects/CoolProp/libCoolProp.a Common/src/libSU2Common.a -Wl,--end-group -pthread
subprojects/CoolProp/libCoolProp.a.p/src_Backends_REFPROP_REFPROPMixtureBackend.cpp.o: nella funzione "getFunctionPointer(char const*, DLLNameManglingStyle)":
REFPROPMixtureBackend.cpp:(.text+0xcc4): riferimento non definito a "dlsym"
subprojects/CoolProp/libCoolProp.a.p/src_Backends_REFPROP_REFPROPMixtureBackend.cpp.o: nella funzione "load_REFPROP(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)":
REFPROPMixtureBackend.cpp:(.text+0x2108): riferimento non definito a "dlopen"
REFPROPMixtureBackend.cpp:(.text+0x2561): riferimento non definito a "dlerror"
subprojects/CoolProp/libCoolProp.a.p/src_Backends_REFPROP_REFPROPMixtureBackend.cpp.o: nella funzione "unload_REFPROP(std::__cxx11::basic_string<cha r, std::char_traits<char>, std::allocator<char> >&)":
REFPROPMixtureBackend.cpp:(.text+0x278c): riferimento non definito a "dlclose"
REFPROPMixtureBackend.cpp:(.text+0x27d1): riferimento non definito a "dlerror"
collect2: error: ld returned 1 exit status
[407/411] Compiling C++ object SU2_DEF/src/SU2_DEF.p/drivers_CDiscAdjDeformationDriver.cpp.o
ninja: build stopped: subcommand failed


Has anyone faced this problem before or can someone help me to solve it?
Gianmarco$ is offline   Reply With Quote

Old   April 12, 2023, 11:27
Default
  #2
Member
 
PENG YAN
Join Date: Jul 2021
Location: Italy
Posts: 34
Rep Power: 4
PENGGEGE777 is on a distinguished road
Hi, thanks for your interest in SU2 and CoolProp.


I succeeded the compilation and what I did is the following:


1. download SU2 develop branch
$ git clone https://github.com/su2code/SU2.git --branch=develop

2. compile
$ ./meson.py build -Denable-coolprop=true -Denable-cgns=false -Dwith-mpi=enabled --prefix=/home/yan/Downloads
3. build
$ ./ninja -C build install -j 4


If you encounter some issue with mpi, you can try:
$ sudo apt install libopenmpi-dev


Good luck.
PENGGEGE777 is offline   Reply With Quote

Old   June 26, 2023, 06:45
Default
  #3
Member
 
Vinzenz Götz
Join Date: Mar 2021
Location: Munich, Germany
Posts: 31
Rep Power: 5
Vinzmann is on a distinguished road
Hello Penggege,

I cannot figure out how to install SU2 with coolprop enabled.

When using ninja, I get errors like:

Code:
Compiling C++ object subprojects/CoolProp/libCoolProp.a.p/src_CPfilepaths.cpp.o
FAILED: subprojects/CoolProp/libCoolProp.a.p/src_CPfilepaths.cpp.o
c++ -Isubprojects/CoolProp/libCoolProp.a.p -Isubprojects/CoolProp -I../subprojects/CoolProp -I../subprojects/CoolProp/externals/Eigen -I../subprojects/CoolProp/externals/fmtlib -I../subprojects/CoolProp/include -I../subprojects/CoolProp/src -Isubprojects/CoolProp/__CMake_build -I../subprojects/CoolProp/__CMake_build -D_FILE_OFFSET_BITS=64 -std=gnu++11 -O3 -fPIC -m64 -DSHARED_PTR_TR1_MEMORY_HEADER -DSHARED_PTR_TR1_NAMESPACE -MD -MQ subprojects/CoolProp/libCoolProp.a.p/src_CPfilepaths.cpp.o -MF subprojects/CoolProp/libCoolProp.a.p/src_CPfilepaths.cpp.o.d -o subprojects/CoolProp/libCoolProp.a.p/src_CPfilepaths.cpp.o -c ../subprojects/CoolProp/src/CPfilepaths.cpp
In file included from ../subprojects/CoolProp/src/CPfilepaths.cpp:4:0:
../subprojects/CoolProp/include/CPstrings.h:14:103: fatal error: fmt/format.h: No such file or directory
 #    include "fmt/format.h"  // For addition of the string formatting functions and macros from fmtlib
                                                                                                       ^
compilation terminated.
[534/850] Compiling C++ object Common/src/libSU2Common.a.p/CConfig.cpp.o
ninja: build stopped: subcommand failed.
Would you have any idea on how I can install SU2 with coolprop?

I am building with Cmake from Source. SU2 Version is blackbird.

Thanks a bunch,
Vinz
Vinzmann is offline   Reply With Quote

Old   June 26, 2023, 17:12
Default
  #4
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 529
Rep Power: 17
bigfootedrockmidget is on a distinguished road
it looks like you are missing the fmt package. I think it's called libfmt-dev so you could try installing that with apt-get.
bigfootedrockmidget is offline   Reply With Quote

Reply

Tags
ninja installation failed, su2 installation error

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
[waves2Foam] waves2Foam on an Ubuntu 18.04 with OpenFOAM 1712 JGadelho OpenFOAM Community Contributions 36 April 27, 2024 16:46
Issue when I try to switch form branch master to develop cristopher_morales SU2 Installation 1 July 13, 2022 16:48
[waves2Foam] OF 2.2, problems using waveFoam, command not found Slein OpenFOAM Community Contributions 1 December 10, 2015 11:18
Problems after 'make install' command in Ubuntu Sparsh SU2 Installation 2 October 30, 2015 14:37
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55


All times are GMT -4. The time now is 22:09.