Repository navigation
Linux build/compilation not linking to mpich #3032
Replies: 1 comment 1 reply
|
Why To check which one that is: echo | cpp -include mpi.h -dM - | grep -E "define (MPICH_VERSION|OMPI_MAJOR_VERSION) "Fix: let the MPICH compiler wrappers drive the whole build, and start from a clean build directory (meson caches the compilers): rm -rf build
CC=mpicc.mpich CXX=mpicxx.mpich ./meson.py setup build -Dcustom-mpi=true
./ninja -C build install
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to compile SU2 from source. The steps I'm following are: download 8.6.0 source from GitHub, run
./meson.py setup build -Dcustom-mpi=true -Dextra-deps=mpich, put the environment variables (SU2_RUN, SU2_HOME, etc) into my bashrc, then run./ninja -C build install.I have mpich installed on my computer and the meson.py script runs without any compilcations, but the ninja compilation fails at the linking stage with errors like:
"/usr/bin/ld: initbalance.c:(.text+0x18a1): undefined reference to 'ompi_mpi_op_sum' ".I'm not sure what I'm doing wrong because I was able to compile SU2 on my main pc just fine following these same steps, but on my laptop it doesn't work.
All reactions