8: note: a field of same name but different type is defined in another translation unit level_lexer.cpp:232:8: note: type 'int' should match type 'yy_size_t' ../lib/gamelib/audp_parser.tab.cpp:138: warning: type 'union YYSTYPE' violates the C++ One Definition Rule [-Wodr] /builddir/build/BUILD/warzone2100/lib/framework/resource_parser.h:43: note: a different type is defined in another translation unit 43 | typedef union YYSTYPE | ../lib/gamelib/../lib/gamelib/audp_parser.ypp:41: note: the first difference of corresponding definitions is field 'fval' ../lib/framework/resource_parser.ypp:53: note: a field with different name is defined in another translation unit ../lib/gamelib/audp_parser.tab.cpp:348: warning: type 'union yyalloc' violates the C++ One Definition Rule [-Wodr] ../lib/framework/resource_parser.cpp:335: note: a different type is defined in another translation unit ../lib/gamelib/audp_parser.tab.cpp:351: note: the first difference of corresponding definitions is field 'yyvs_alloc' ../lib/framework/resource_parser.cpp:338: note: a field of same name but different type is defined in another translation unit ../lib/gamelib/audp_parser.tab.cpp:348: note: type 'union YYSTYPE' itself violates the C++ One Definition Rule In function 'initTerrain', inlined from 'init3DView' at /builddir/build/BUILD/warzone2100/src/display3d.cpp:1289:18: /builddir/build/BUILD/warzone2100/src/terrain.cpp:684:78: warning: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=] 684 | sectors = std::unique_ptr (new Sector[xSectors * ySectors]()); | ^ /usr/include/c++/12/new: In function 'init3DView': /usr/include/c++/12/new:128:26: note: in a call to allocation function 'operator new []' declared here 128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^ /usr/bin/ld: /tmp/cc8MXnMz.ltrans31.ltrans.o: in function `.L0 ': /builddir/build/BUILD/warzone2100/3rdparty/discord-rpc/src/discord_rpc.cpp:406: undefined reference to `__atomic_exchange_1' /usr/bin/ld: /tmp/cc8MXnMz.ltrans31.ltrans.o: in function `.L0 ': /usr/include/c++/12/riscv64-redhat-linux/bits/gthr-default.h:779: undefined reference to `__atomic_exchange_1' /usr/bin/ld: /usr/include/c++/12/riscv64-redhat-linux/bits/gthr-default.h:779: undefined reference to `__atomic_exchange_1' /usr/bin/ld: /usr/include/c++/12/riscv64-redhat-linux/bits/gthr-default.h:779: undefined reference to `__atomic_exchange_1' /usr/bin/ld: /usr/include/c++/12/riscv64-redhat-linux/bits/gthr-default.h:779: undefined reference to `__atomic_exchange_1' /usr/bin/ld: /tmp/cc8MXnMz.ltrans73.ltrans.o:/usr/include/c++/12/bits/atomic_base.h:506: more undefined references to `__atomic_exchange_1' follow collect2: error: ld returned 1 exit status gmake[2]: *** [src/CMakeFiles/warzone2100.dir/build.make:2220: src/warzone2100] Error 1 gmake[2]: Leaving directory '/builddir/build/BUILD/warzone2100/redhat-linux-build' gmake[1]: Leaving directory '/builddir/build/BUILD/warzone2100/redhat-linux-build' gmake[1]: *** [CMakeFiles/Makefile2:1454: src/CMakeFiles/warzone2100.dir/all] Error 2 gmake: *** [Makefile:159: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.ya0el4 (%build) Bad exit status from /var/tmp/rpm-tmp.ya0el4 (%build) RPM build errors: 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/warzone2100.spec