fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_REENTRANT -c -o liblastfmlib_la-lastfmscrobbler.lo `test -f 'lastfmlib/lastfmscrobbler.cpp' || echo './'`lastfmlib/lastfmscrobbler.cpp /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_REENTRANT -c -o liblastfmlib_la-lastfmscrobblerc.lo `test -f 'lastfmlib/lastfmscrobblerc.cpp' || echo './'`lastfmlib/lastfmscrobblerc.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_REENTRANT -c lastfmlib/urlclient.cpp -fPIC -DPIC -o .libs/liblastfmlib_la-urlclient.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_REENTRANT -c lastfmlib/lastfmclient.cpp -fPIC -DPIC -o .libs/liblastfmlib_la-lastfmclient.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_REENTRANT -c lastfmlib/lastfmscrobbler.cpp -fPIC -DPIC -o .libs/liblastfmlib_la-lastfmscrobbler.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_REENTRANT -c lastfmlib/lastfmscrobblerc.cpp -fPIC -DPIC -o .libs/liblastfmlib_la-lastfmscrobblerc.o BUILDSTDERR: In file included from lastfmlib/lastfmclient.cpp:28: BUILDSTDERR: lastfmlib/utils/stringoperations.h: In function 'std::__cxx11::string StringOperations::toWstring(T&)': BUILDSTDERR: lastfmlib/utils/stringoperations.h:62:22: error: could not convert 'ss.std::__cxx11::basic_stringstream::str()' from 'basic_string' to 'basic_string' BUILDSTDERR: return ss.str(); BUILDSTDERR: ~~~~~~^~ BUILDSTDERR: make[1]: *** [Makefile:513: liblastfmlib_la-lastfmclient.lo] Error 1 BUILDSTDERR: make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/builddir/build/BUILD/lastfmlib-0.4.0' BUILDSTDERR: make: *** [Makefile:326: all] Error 2 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.KNmY2j (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.KNmY2j (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, 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/lastfmlib.spec