Bug#772028: quantlib-swig FTBFS on testing for mips/mipsel
Hi Dirk, I had tested it on 4 different boards using sbuild (chroot), broadcom: mipsel and cavium: mips/mipsel. On all boards, quantlib-swig initially failed with same error. Applying my patch, package was built successfully on all boards. If you need any additional testing, please contact me. Regards, Dejan -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#772028: quantlib-swig FTBFS on testing for mips/mipsel
On 5 December 2014 at 11:09, Dejan Latinovic wrote: | | | | Hi Dirk, | | I had tested it on 4 different boards using sbuild (chroot), | broadcom: mipsel and cavium: mips/mipsel. | | On all boards, quantlib-swig initially failed with same error. | Applying my patch, package was built successfully on all boards. Awesome. I just spent two days with the QuantLin guys, and am still traveling, but I will apply your patch early next week. Thanks a bunch, Dirk | | | If you need any additional testing, | please contact me. | | | Regards, | Dejan -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#772028: quantlib-swig FTBFS on testing for mips/mipsel
Package: quantlib-swig Version: 1.4-1 Tags: sid patch Severity: important Justification: FTBFS User: debian-m...@lists.debian.org Usertags: mips-patch Package quantlib-swig FTBFS on mips/mipsel with an error: g++ -shared -Wl,-z,relro -O0 -g0 build/temp.linux-mips64-2.7/QuantLib/quantlib_wrap.o -lQuantLib -o build/lib.linux-mips64-2.7/QuantLib/_QuantLib.so build/temp.linux-mips64-2.7/QuantLib/quantlib_wrap.o: In function `SWIG_PackDataName': quantlib_wrap.cpp:(.text+0x10b0): relocation truncated to fit: R_MIPS_CALL16 against `strncpy@@GLIBC_2.0' build/temp.linux-mips64-2.7/QuantLib/quantlib_wrap.o: In function `SWIG_Python_ErrorType(int)': quantlib_wrap.cpp:(.text+0x137c): relocation truncated to fit: R_MIPS_GOT16 against `PyExc_ValueError' build/temp.linux-mips64-2.7/QuantLib/quantlib_wrap.o: In function `SWIG_Python_AddErrorMsg(char const*)': quantlib_wrap.cpp:(.text+0x1410): relocation truncated to fit: R_MIPS_CALL16 against `PyErr_Occurred' quantlib_wrap.cpp:(.text+0x1488): relocation truncated to fit: R_MIPS_CALL16 against `PyErr_Clear' quantlib_wrap.cpp:(.text+0x14f0): relocation truncated to fit: R_MIPS_CALL16 against `PyErr_Format' build/temp.linux-mips64-2.7/QuantLib/quantlib_wrap.o: In function `SWIG_Python_AppendOutput(_object*, _object*)': quantlib_wrap.cpp:(.text+0x18c4): relocation truncated to fit: R_MIPS_CALL16 against `PyList_SetItem' build/temp.linux-mips64-2.7/QuantLib/quantlib_wrap.o: In function `SWIG_Python_UnpackTuple(_object*, char const*, int, int, _object**)': quantlib_wrap.cpp:(.text+0x1a0c): relocation truncated to fit: R_MIPS_CALL16 against `PyErr_Format' quantlib_wrap.cpp:(.text+0x1b48): relocation truncated to fit: R_MIPS_CALL16 against `PyErr_Format' quantlib_wrap.cpp:(.text+0x1bc4): relocation truncated to fit: R_MIPS_CALL16 against `PyErr_Format' build/temp.linux-mips64-2.7/QuantLib/quantlib_wrap.o: In function `SwigPyClientData_New': quantlib_wrap.cpp:(.text+0x1f24): relocation truncated to fit: R_MIPS_CALL16 against `PyErr_Occurred' quantlib_wrap.cpp:(.text+0x1f48): additional relocation overflows omitted from the output collect2: error: ld returned 1 exit status error: command 'g++' failed with exit status 1 https://buildd.debian.org/status/fetch.php?pkg=quantlib-swigarch=mipselver=1.4-1stamp=1405951271 Using mxgot flag for mips/mipsel solves this issue for me. Patch that contains this fix for mips/mipsel is attached. With this patch I was able to successfully build quantlib-swig for both mips and mipsel. Could you please consider including this patch. Regards, Dejandiff -uNr quantlib-swig-1.4.orig/debian/rules quantlib-swig-1.4/debian/rules --- quantlib-swig-1.4.orig/debian/rules 2014-11-28 18:26:04.0 +0100 +++ quantlib-swig-1.4/debian/rules 2014-11-28 18:27:49.0 +0100 @@ -49,7 +49,7 @@ ## edd 26 Jun 2007 use cpu test, not arch test -- thanks to Riku via #430709 ## edd 26 Oct 2007 s390+powerpc also die, so add'em (and remove mips(el), see next item) ## edd 27 May 2012 added mips/mipsel/armel/armhf here too -ifneq $(findstring $(cpu), m68k arm armeb s390 powerpc armel armhf mips mipsel) +ifneq $(findstring $(cpu), m68k arm armeb s390 powerpc armel armhf) compilerflags = -O0 -g0 endif @@ -59,6 +59,9 @@ #compilerflags = -O2 -g0 #endif +ifneq $(findstring $(cpu), mipsel mips) +compilerflags = -O0 -g0 -mxgot +endif ## edd 25 Dec 2002 g++-3.2 for s390
Bug#772028: quantlib-swig FTBFS on testing for mips/mipsel
On 4 December 2014 at 13:54, Dejan Latinovic wrote: | | | Package: quantlib-swig | Version: 1.4-1 | Tags: sid patch | Severity: important | Justification: FTBFS | User: debian-m...@lists.debian.org | Usertags: mips-patch | | | | Package quantlib-swig FTBFS on mips/mipsel with an error: | | g++ -shared -Wl,-z,relro -O0 -g0 build/temp.linux-mips64-2.7/QuantLib/quantlib_wrap.o -lQuantLib -o build/lib.linux-mips64-2.7/QuantLib/_QuantLib.so | build/temp.linux-mips64-2.7/QuantLib/quantlib_wrap.o: In function `SWIG_PackDataName': | quantlib_wrap.cpp:(.text+0x10b0): relocation truncated to fit: R_MIPS_CALL16 against `strncpy@@GLIBC_2.0' | build/temp.linux-mips64-2.7/QuantLib/quantlib_wrap.o: In function `SWIG_Python_ErrorType(int)': | quantlib_wrap.cpp:(.text+0x137c): relocation truncated to fit: R_MIPS_GOT16 against `PyExc_ValueError' | build/temp.linux-mips64-2.7/QuantLib/quantlib_wrap.o: In function `SWIG_Python_AddErrorMsg(char const*)': | quantlib_wrap.cpp:(.text+0x1410): relocation truncated to fit: R_MIPS_CALL16 against `PyErr_Occurred' | quantlib_wrap.cpp:(.text+0x1488): relocation truncated to fit: R_MIPS_CALL16 against `PyErr_Clear' | quantlib_wrap.cpp:(.text+0x14f0): relocation truncated to fit: R_MIPS_CALL16 against `PyErr_Format' | build/temp.linux-mips64-2.7/QuantLib/quantlib_wrap.o: In function `SWIG_Python_AppendOutput(_object*, _object*)': | quantlib_wrap.cpp:(.text+0x18c4): relocation truncated to fit: R_MIPS_CALL16 against `PyList_SetItem' | build/temp.linux-mips64-2.7/QuantLib/quantlib_wrap.o: In function `SWIG_Python_UnpackTuple(_object*, char const*, int, int, _object**)': | quantlib_wrap.cpp:(.text+0x1a0c): relocation truncated to fit: R_MIPS_CALL16 against `PyErr_Format' | quantlib_wrap.cpp:(.text+0x1b48): relocation truncated to fit: R_MIPS_CALL16 against `PyErr_Format' | quantlib_wrap.cpp:(.text+0x1bc4): relocation truncated to fit: R_MIPS_CALL16 against `PyErr_Format' | build/temp.linux-mips64-2.7/QuantLib/quantlib_wrap.o: In function `SwigPyClientData_New': | quantlib_wrap.cpp:(.text+0x1f24): relocation truncated to fit: R_MIPS_CALL16 against `PyErr_Occurred' | quantlib_wrap.cpp:(.text+0x1f48): additional relocation overflows omitted from the output | collect2: error: ld returned 1 exit status | error: command 'g++' failed with exit status 1 | | https://buildd.debian.org/status/fetch.php?pkg=quantlib-swigarch=mipselver=1.4-1stamp=1405951271 | | Using mxgot flag for mips/mipsel solves this issue for me. | | Patch that contains this fix for mips/mipsel is attached. | | | With this patch I was able to successfully build quantlib-swig | for both mips and mipsel. | | | Could you please consider including this patch. Yes. I am currently traveling for a workshop. I can look into when I get back. I have a feeling, though, that this was once in, and then removed, so it may be worth checking why these changes were made. Do you have a mips or mipsel box where you could test? Or are you saying that you did test already? Dirk | | | Regards, | Dejan | [DELETED ATTACHMENT add-mxgot-for-mips.patch, text/x-patch] -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org