undefined reference to `MPI::UNSIGNED_LONG' /usr/bin/ld: ../src/.libs/libmusic.so: undefined reference to `MPI::LONG' /usr/bin/ld: ../src/.libs/libmusic.so: undefined reference to `MPI::DOUBLE' /usr/bin/ld: ../src/.libs/libmusic.so: undefined reference to `MPI::GROUP_EMPTY' /usr/bin/ld: ../src/.libs/libmusic.so: undefined reference to `MPI::Init(int&, char**&)' /usr/bin/ld: ../src/.libs/libmusic.so: undefined reference to `MPI::IN_PLACE' /usr/bin/ld: ../src/.libs/libmusic.so: undefined reference to `vtable for MPI::Intercomm' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:580: eventsource] Error 1 make[2]: Entering directory '/builddir/build/BUILD/MUSIC-a78a8e2c90b07274db94265db75c320dbb01f9fb/MUSIC-a78a8e2c90b07274db94265db75c320dbb01f9fb-mpich/utils' g++ -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/include/mpich-riscv64 -pedantic -Wall -Wno-long-long -g -O3 -MT viewevents-viewevents.o -MD -MP -MF .deps/viewevents-viewevents.Tpo -c -o viewevents-viewevents.o `test -f 'viewevents.cpp' || echo './'`viewevents.cpp mv -f .deps/viewevents-viewevents.Tpo .deps/viewevents-viewevents.Po make[2]: Leaving directory '/builddir/build/BUILD/MUSIC-a78a8e2c90b07274db94265db75c320dbb01f9fb/MUSIC-a78a8e2c90b07274db94265db75c320dbb01f9fb-mpich/utils' make[2]: Entering directory '/builddir/build/BUILD/MUSIC-a78a8e2c90b07274db94265db75c320dbb01f9fb/MUSIC-a78a8e2c90b07274db94265db75c320dbb01f9fb-mpich/utils' g++ -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/include/mpich-riscv64 -pedantic -Wall -Wno-long-long -g -O3 -MT viewevents-VisualiseNeurons.o -MD -MP -MF .deps/viewevents-VisualiseNeurons.Tpo -c -o viewevents-VisualiseNeurons.o `test -f 'VisualiseNeurons.cpp' || echo './'`VisualiseNeurons.cpp mv -f .deps/viewevents-VisualiseNeurons.Tpo .deps/viewevents-VisualiseNeurons.Po make[2]: Leaving directory '/builddir/build/BUILD/MUSIC-a78a8e2c90b07274db94265db75c320dbb01f9fb/MUSIC-a78a8e2c90b07274db94265db75c320dbb01f9fb-mpich/utils' make[1]: *** [Makefile:439: all-recursive] Error 1 make: *** [Makefile:367: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.ERDfEJ (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.ERDfEJ (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/MUSIC.spec