On 27 September 2018 at 18:42, Adrian Bunk wrote: | Control: tags -1 patch | | On Thu, Sep 27, 2018 at 12:01:56PM +0200, Mattia Rizzolo wrote: | > Source: quantlib-swig | > Version: 1.13-5 | > Severity: serious | > | > https://buildd.debian.org/status/fetch.php?pkg=quantlib-swig&arch=mips64el&ver=1.13-6&stamp=1536543309&raw=0 | > | > g++ -shared -Wl,-z,relro -O0 -g0 -DBOOST_NO_AUTO_PTR -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-mips64-3.6/QuantLib/quantlib_wrap.o -lQuantLib -o build/lib.linux-mips64-3.6/QuantLib/_QuantLib.cpython-36m-mips64el-linux-gnuabi64.so -fopenmp | > /usr/bin/ld: build/temp.linux-mips64-3.6/QuantLib/quantlib_wrap.o: in function `SWIG_TypeCheck': | > quantlib_wrap.cpp:(.text+0x34c): relocation truncated to fit: R_MIPS_CALL16 against `strcmp@@GLIBC_2.0' | > /usr/bin/ld: build/temp.linux-mips64-3.6/QuantLib/quantlib_wrap.o: in function `SWIG_MangledTypeQueryModule': | > quantlib_wrap.cpp:(.text+0x924): relocation truncated to fit: R_MIPS_CALL16 against `strcmp@@GLIBC_2.0' | > /usr/bin/ld: build/temp.linux-mips64-3.6/QuantLib/quantlib_wrap.o: in function `SWIG_PackVoidPtr': | > quantlib_wrap.cpp:(.text+0xf18): relocation truncated to fit: R_MIPS_CALL16 against `strcpy@@GLIBC_2.0' | > /usr/bin/ld: build/temp.linux-mips64-3.6/QuantLib/quantlib_wrap.o: in function `SWIG_UnpackVoidPtr': | > quantlib_wrap.cpp:(.text+0xf94): relocation truncated to fit: R_MIPS_CALL16 against `strcmp@@GLIBC_2.0' | > /usr/bin/ld: build/temp.linux-mips64-3.6/QuantLib/quantlib_wrap.o: in function `SWIG_PackDataName': | > quantlib_wrap.cpp:(.text+0x110c): relocation truncated to fit: R_MIPS_CALL16 against `strncpy@@GLIBC_2.0' | > /usr/bin/ld: build/temp.linux-mips64-3.6/QuantLib/quantlib_wrap.o: in function `SWIG_UnpackDataName': | > quantlib_wrap.cpp:(.text+0x119c): relocation truncated to fit: R_MIPS_CALL16 against `strcmp@@GLIBC_2.0' | > /usr/bin/ld: quantlib_wrap.cpp:(.text+0x11c0): relocation truncated to fit: R_MIPS_CALL16 against `memset@@GLIBC_2.0' | > /usr/bin/ld: build/temp.linux-mips64-3.6/QuantLib/quantlib_wrap.o: in function `SWIG_Python_str_AsChar(_object*)': | > quantlib_wrap.cpp:(.text+0x128c): relocation truncated to fit: R_MIPS_CALL16 against `PyBytes_AsStringAndSize' | > /usr/bin/ld: build/temp.linux-mips64-3.6/QuantLib/quantlib_wrap.o: in function `SWIG_Python_str_FromChar(char const*)': | > quantlib_wrap.cpp:(.text+0x138c): relocation truncated to fit: R_MIPS_CALL16 against `PyUnicode_FromString' | > /usr/bin/ld: build/temp.linux-mips64-3.6/QuantLib/quantlib_wrap.o: in function `SWIG_Python_ErrorType(int)': | > quantlib_wrap.cpp:(.text+0x1430): relocation truncated to fit: R_MIPS_GOT_DISP against `PyExc_IOError' | > /usr/bin/ld: quantlib_wrap.cpp:(.text+0x1444): additional relocation overflows omitted from the output | > collect2: error: ld returned 1 exit status | > error: command 'g++' failed with exit status 1 | > make: *** [debian/rules:99: build-stamp] Error 1 | > dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2 | | Fix: | | --- debian/rules.old 2018-09-27 13:19:35.115830704 +0000 | +++ debian/rules 2018-09-27 13:19:58.764303410 +0000 | @@ -55,7 +55,7 @@ | ## also remove mips, mipsel as they are getting taken care of below | ## edd 09 Sep 2018 adding mips64el here as well as it recently timed out | #ifneq "$(findstring $(cpu), m68k arm armeb s390 powerpc armel armhf mips mipsel)" "" | -ifneq "$(findstring $(cpu), m68k arm armeb s390 armel mips64el)" "" | +ifneq "$(findstring $(cpu), m68k arm armeb s390 armel)" "" | compilerflags = -O0 -g0 -DBOOST_NO_AUTO_PTR | endif | | @@ -63,7 +63,7 @@ | ## edd 27 May 2012 move to previos section | ## edd 06 Dec 2014 patch by Dejan Latinovic (see #772028) to add -mxgot | ## edd 23 Jun 2016 patch by Daniel Knezevic (see #827979) to add gcc-min-expand=20 | -ifneq "$(findstring $(cpu), mipsel mips)" "" | +ifneq "$(findstring $(cpu), mipsel mips mips64el)" "" | #compilerflags = -O2 -g0 | compilerflags = -O0 -g0 -mxgot --param ggc-min-expand=20 -DBOOST_NO_AUTO_PTR | endif
Well spotted, thanks so much! Applied, and build running now. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org