Bug#969498: mame FTBFS on mips64el: error: relocation overflow

Adrian Bunk bunk at debian.org
Thu Sep 3 20:29:54 BST 2020


Source: mame
Version: 0.224+dfsg.1-2
Severity: serious
Tags: patch ftbfs

https://buildd.debian.org/status/fetch.php?pkg=mame&arch=mips64el&ver=0.224%2Bdfsg.1-2&stamp=1598916733&raw=0

...
../../../../../scripts/mame_mame/libbarcrest.a(mpu4sw.o):mpu4sw.cpp:function mpu4_state::init_m4debug(): error: relocation overflow: 19 against '__stack_chk_guard' defined in /lib/mips64el-linux-gnuabi64/ld.so.1
../../../../../scripts/mame_mame/libbarcrest.a(mpu4sw.o):mpu4sw.cpp:function mpu4_state::init_m4debug(): error: relocation overflow: 11 against 'operator delete(void*, unsigned long)' defined in /usr/lib/gcc/mips64el-linux-gnuabi64/10/libstdc++.so
../../../../../scripts/mame_mame/libbarcrest.a(mpu4sw.o):mpu4sw.cpp:function mpu4_state::init_m4debug(): error: relocation overflow: 11 against 'operator delete(void*, unsigned long)' defined in /usr/lib/gcc/mips64el-linux-gnuabi64/10/libstdc++.so
...
collect2: error: ld returned 1 exit status
make[4]: *** [mame.make:269: ../../../../../mame] Error 1


Fix:

--- debian/rules.old	2020-09-02 04:34:20.632503810 +0000
+++ debian/rules	2020-09-02 20:48:04.220264071 +0000
@@ -116,6 +116,7 @@
 ifeq ($(DEB_HOST_ARCH),mips64el)
 DEB_OPTS += \
     NOASM=1
+export DEB_CXXFLAGS_MAINT_APPEND += -mxgot
 endif
 
 ifeq ($(DEB_HOST_ARCH),powerpc)



More information about the Pkg-games-devel mailing list