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 -Wno-unknown-pragmas -Wall -Wcast-align -Wundef -Wformat-security -Wwrite-strings -Wno-sign-compare -Wno-conversion -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -x c++ -std=c++14 -Woverloaded-virtual -Wno-class-memaccess -Wsuggest-override -flifetime-dse=1 -include obj/Release/emu.h -o "obj/Release/src/mame/drivers/mpu5.o" -c "../../../../../src/mame/drivers/mpu5.cpp" BUILDSTDERR: ../../../../../src/mame/drivers/mpu5.cpp: In member function 'virtual void mpu5_state::machine_start()': BUILDSTDERR: ../../../../../src/mame/drivers/mpu5.cpp:544:56: warning: cast from 'u8*' {aka 'unsigned char*'} to 'uint32_t*' {aka 'unsigned int*'} increases required alignment of target type [-Wcast-align] BUILDSTDERR: m_cpuregion = (uint32_t*)memregion( "maincpu" )->base(); BUILDSTDERR: ^ Compiling src/mame/drivers/mpu4sw.cpp... g++ -MMD -MP -MP -DNDEBUG -DCRLF=2 -DLSB_FIRST -DXMD_H -DFLAC__NO_DLL -DMAME_NOASM -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DPTR64=1 -I"../../../../../src/osd" -I"../../../../../src/emu" -I"../../../../../src/devices" -I"../../../../../src/mame" -I"../../../../../src/lib" -I"../../../../../src/lib/util" -I"../../../../../src/lib/netlist" -I"../../../../../3rdparty" -I"../../../../generated/mame/layout" -I"../../../../../scripts" -pipe -O2 -fno-strict-aliasing -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 -Wno-unknown-pragmas -Wall -Wcast-align -Wundef -Wformat-security -Wwrite-strings -Wno-sign-compare -Wno-conversion -Wno-error=deprecated-declarations -Wno-unused-result -Wno-array-bounds -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -x c++ -std=c++14 -Woverloaded-virtual -Wno-class-memaccess -Wsuggest-override -flifetime-dse=1 -include obj/Release/emu.h -o "obj/Release/src/mame/drivers/mpu4sw.o" -c "../../../../../src/mame/drivers/mpu4sw.cpp" Archiving libbarcrest.a... rm -f ../../../../../scripts/mame_mame/libbarcrest.a ar -rcs ../../../../../scripts/mame_mame/libbarcrest.a obj/Release/src/mame/drivers/mpu2.o obj/Release/src/mame/drivers/mpu3.o obj/Release/src/mame/drivers/mpu4.o obj/Release/src/mame/drivers/mpu4avan.o obj/Release/src/mame/drivers/mpu4bwb.o obj/Release/src/mame/drivers/mpu4concept.o obj/Release/src/mame/drivers/mpu4crystal.o obj/Release/src/mame/drivers/mpu4dealem.o obj/Release/src/mame/drivers/mpu4empire.o obj/Release/src/mame/drivers/mpu4mdm.o obj/Release/src/mame/drivers/mpu4misc.o obj/Release/src/mame/drivers/mpu4mod2sw.o obj/Release/src/mame/drivers/mpu4mod4yam.o obj/Release/src/mame/drivers/mpu4plasma.o obj/Release/src/mame/drivers/mpu4sw.o obj/Release/src/mame/drivers/mpu4union.o obj/Release/src/mame/drivers/mpu4vid.o obj/Release/src/mame/drivers/mpu5.o obj/Release/src/mame/machine/mpu4.o BUILDSTDERR: make: *** [makefile:1291: linux] Error 2 BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.9mLPgV (%build) RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.9mLPgV (%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/mame.spec