Hi, SZ Lin (林上智) <sz...@debian.org> 於 2018年12月18日 週二 下午2:18寫道: > > Hi, > > Ivo De Decker <iv...@debian.org> 於 2018年12月13日 週四 下午8:03寫道: > > > > package: src:libmodbus > > version: 3.1.4-1 > > severity: serious > > tags: ftbfs > > > > Hi, > > > > The latest version of libmodbus in unstable fails on mips, s390x: > > > > https://buildd.debian.org/status/package.php?p=libmodbus > > > > The failure happens in the testsuite. > > > > Based on the failing architectures, it might be an endianess issue. > > I've reproduced this issue with MIPS architecture. > > === > TEST FLOATS > 1/4 Set/get float ABCD: > Line 289: assertion error for 'equal_dword(tab_rp_registers, > UT_IREAL_ABCD)': FAILED Set float ABCD > ********** > === > > According to above information, it might be a float endianess issue > and there is a potential fix for it [1]. > > I will continually squeeze my time to track this issue. > > Any feedback is welcome. > > [1] https://github.com/stephane/libmodbus/issues/358 > > SZ
I've patched float endianness issue [1] and built successfully on mips, s390x, amd64 architecture. [1] https://salsa.debian.org/debian/libmodbus/blob/debian/master/debian/patches/Fix-float-endianness-issue-on-big-endian-arch.patch The new version of libmodbus will be uploaded if you don't have any concerns. Thanks. SZ > > > > > > Also, please note this error: > > > > ./unit-tests.sh: 17: ./unit-tests.sh: killall: not found > > > > This doesn't happen for the builds that succeed. I guess the killall is done > > when the tests fail. This means a dependency on psmisc is missing. > > Now fixed, thanks, > > SZ > > > > Thanks, > > > > Ivo