y dangling reference to a temporary [-Werror=dangling-reference] 772 | const ter_t &xter_t = here.ter( examp ).obj(); | ^~~~~~ src/activity_actor.cpp:772:48: note: the temporary was destroyed at the end of the full expression '(& here)->map::ter((* & examp)).int_id::obj()' 772 | const ter_t &xter_t = here.ter( examp ).obj(); | ~~~~~~~~~~~~~~~~~~~~~^~ At global scope: cc1plus: note: unrecognized command-line option '-Wno-unknown-warning-option' may have been intended to silence earlier diagnostics cc1plus: all warnings being treated as errors make: *** [Makefile:962: obj/activity_actor.o] Error 1 g++ -DBACKTRACE -DLOCALIZE -DPREFIX="/usr" -DDATA_DIR_PREFIX -DUSE_HOME_DIR -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -ffast-math -Og -Werror -Wall -Wextra -Wformat-signedness -Wlogical-op -Wmissing-declarations -Wmissing-noreturn -Wnon-virtual-dtor -Wold-style-cast -Woverloaded-virtual -Wpedantic -Wsuggest-override -Wunused-macros -Wzero-as-null-pointer-constant -Wno-unknown-warning-option -Wredundant-decls -g -fsigned-char -std=c++14 -MMD -MP -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -c src/activity_handlers.cpp -o obj/activity_handlers.o g++ -DBACKTRACE -DLOCALIZE -DPREFIX="/usr" -DDATA_DIR_PREFIX -DUSE_HOME_DIR -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -ffast-math -Og -Werror -Wall -Wextra -Wformat-signedness -Wlogical-op -Wmissing-declarations -Wmissing-noreturn -Wnon-virtual-dtor -Wold-style-cast -Woverloaded-virtual -Wpedantic -Wsuggest-override -Wunused-macros -Wzero-as-null-pointer-constant -Wno-unknown-warning-option -Wredundant-decls -g -fsigned-char -std=c++14 -MMD -MP -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -c src/activity_item_handling.cpp -o obj/activity_item_handling.o src/activity_item_handling.cpp: In function 'std::unordered_set generic_multi_activity_locations(player&, const activity_id&)': src/activity_item_handling.cpp:2280:35: error: possibly dangling reference to a temporary [-Werror=dangling-reference] 2280 | const furn_t &f = here.furn( elem ).obj(); | ^ src/activity_item_handling.cpp:2280:60: note: the temporary was destroyed at the end of the full expression '(& here)->map::furn((* & elem)).int_id::obj()' 2280 | const furn_t &f = here.furn( elem ).obj(); | ~~~~~~~~~~~~~~~~~~~~~^~ At global scope: cc1plus: note: unrecognized command-line option '-Wno-unknown-warning-option' may have been intended to silence earlier diagnostics cc1plus: all warnings being treated as errors make: *** [Makefile:962: obj/activity_item_handling.o] Error 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.Z2l0px (%build) Bad exit status from /var/tmp/rpm-tmp.Z2l0px (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, 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/cataclysm-dda.spec