[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#995867: xtensor: mipsel FTBFS (relocation truncated to fit: R_MIPS_CALL16)

On 2021-10-27 10:24, Adrian Bunk wrote:
On Sat, Oct 09, 2021 at 06:17:54PM +0200, Drew Parsons wrote:
Source: xtensor
Followup-For: Bug #995867
Control: retitle -1 mipsel FTBFS (relocation truncated to fit: R_MIPS_CALL16)

The problem with undefined `__umodsi3' `__udivsi3' is not easily

While -march=native is kinda OKish for test-only programs that do not
end up in the binary package, it compiles differently depending on the

-march=native is known to have this breakage on the oldest buildds
(eberlin, mipsel-aql-0{1,2}).


The patch below builds for me for mipsel on eller.

+BUILD_OPTIONS += -Darch_native_supported=OFF

Thanks Adrian. My own tests showed that switching off debug symbols was the main thing that needed to be done (apart from dealing with the relocation truncated issue). Both -O0 and -O2 compile, if -g is switched off.

-g0 is more elegant than the make syntax hack I uploaded, so I'll update to -Os -g0 for a future upload.

Since these are runtime tests (compiled fresh for the test), I like the idea of keeping -march=native, since it will emulate what users will experience when they use xtensor in their own local projects.

But I'll apply -Darch_native_supported=OFF for mipsel (that gives a cleaner debian/rules than hacking CXXFLAGS with -mxgot)


Reply to: