edhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -rdynamic -lsndfile CMakeFiles/resample-sndfile.dir/tests/resample-sndfile.c.o -o resample-sndfile -Wl,-rpath,/builddir/build/BUILD/libresample-0.1.3: libresample.so.1.0 -lm BUILDSTDERR: /usr/bin/ld: CMakeFiles/compareresample.dir/tests/compareresample.c.o: in function `runtest': BUILDSTDERR: /builddir/build/BUILD/libresample-0.1.3/tests/compareresample.c:105: undefined reference to `src_simple' BUILDSTDERR: collect2: error: ld returned 1 exit status make[2]: Leaving directory '/builddir/build/BUILD/libresample-0.1.3' BUILDSTDERR: make[2]: *** [CMakeFiles/compareresample.dir/build.make:88: compareresample] Error 1 BUILDSTDERR: make[1]: *** [CMakeFiles/Makefile2:187: CMakeFiles/compareresample.dir/all] Error 2 BUILDSTDERR: make[1]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/builddir/build/BUILD/libresample-0.1.3' [100%] Built target testresample BUILDSTDERR: /usr/bin/ld: CMakeFiles/resample-sndfile.dir/tests/resample-sndfile.c.o: in function `memset': BUILDSTDERR: /usr/include/bits/string_fortified.h:71: undefined reference to `sf_open' BUILDSTDERR: /usr/bin/ld: CMakeFiles/resample-sndfile.dir/tests/resample-sndfile.c.o: in function `main': BUILDSTDERR: /builddir/build/BUILD/libresample-0.1.3/tests/resample-sndfile.c:93: undefined reference to `sf_command' BUILDSTDERR: /usr/bin/ld: /builddir/build/BUILD/libresample-0.1.3/tests/resample-sndfile.c:101: undefined reference to `sf_command' BUILDSTDERR: /usr/bin/ld: CMakeFiles/resample-sndfile.dir/tests/resample-sndfile.c.o: in function `printf': BUILDSTDERR: /usr/include/bits/stdio2.h:107: undefined reference to `sf_open' BUILDSTDERR: /usr/bin/ld: CMakeFiles/resample-sndfile.dir/tests/resample-sndfile.c.o: in function `main': BUILDSTDERR: /builddir/build/BUILD/libresample-0.1.3/tests/resample-sndfile.c:147: undefined reference to `sf_readf_float' BUILDSTDERR: /usr/bin/ld: /builddir/build/BUILD/libresample-0.1.3/tests/resample-sndfile.c:170: undefined reference to `sf_writef_float' BUILDSTDERR: /usr/bin/ld: /builddir/build/BUILD/libresample-0.1.3/tests/resample-sndfile.c:193: undefined reference to `sf_open' BUILDSTDERR: /usr/bin/ld: /builddir/build/BUILD/libresample-0.1.3/tests/resample-sndfile.c:83: undefined reference to `sf_strerror' BUILDSTDERR: /usr/bin/ld: CMakeFiles/resample-sndfile.dir/tests/resample-sndfile.c.o: in function `fprintf': BUILDSTDERR: /usr/include/bits/stdio2.h:100: undefined reference to `sf_close' BUILDSTDERR: /usr/bin/ld: CMakeFiles/resample-sndfile.dir/tests/resample-sndfile.c.o: in function `main': BUILDSTDERR: /builddir/build/BUILD/libresample-0.1.3/tests/resample-sndfile.c:69: undefined reference to `sf_close' BUILDSTDERR: collect2: error: ld returned 1 exit status make[2]: Leaving directory '/builddir/build/BUILD/libresample-0.1.3' make[1]: Leaving directory '/builddir/build/BUILD/libresample-0.1.3' RPM build errors: BUILDSTDERR: make[2]: *** [CMakeFiles/resample-sndfile.dir/build.make:88: resample-sndfile] Error 1 BUILDSTDERR: make[1]: *** [CMakeFiles/Makefile2:150: CMakeFiles/resample-sndfile.dir/all] Error 2 BUILDSTDERR: make: *** [Makefile:144: all] Error 2 BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.B7tr2j (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.B7tr2j (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 636, in do 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/libresample.spec