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-swig&arch=mipsel&ver=1.4-1&stamp=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

Reply via email to