swipl-devel icon indicating copy to clipboard operation
swipl-devel copied to clipboard

[s390x] fails to build ... division by zero in (SIZEOF_WORD/SIZEOF_CODE)

Open mcepl opened this issue 1 year ago • 2 comments
trafficstars

When building swipl 9.3.7 for openSUSE/Factory the build fails on s390x architecture:

[  236s] /home/abuild/rpmbuild/BUILD/swipl-9.3.7/src/pl-incl.h:593:45: error: division by zero in #if
[  236s]   593 | #define CODES_PER_WORD          (SIZEOF_WORD/SIZEOF_CODE)

Complete build log with details of all packages used and all steps taken to reproduce.

mcepl avatar Jun 07 '24 17:06 mcepl

Hmm. SIZEOF_CODE is defined as SIZEOF_VOIDP. The logs say

[   81s] -- Check size of void * - done

But no indication about the result. It is a bit hard to see why the size checks do not work. They need to work to get everything compiled correctly ... Possibly you can get hold of CMakeCache.txt and the CMake log files?

JanWielemaker avatar Jun 08 '24 09:06 JanWielemaker

This and more in https://mcepl.fedorapeople.org/tmp/swipl-9.3.7-build.tar.gz Build log is https://mcepl.fedorapeople.org/tmp/_log-swipl-s390x.txt

Build for openSUSE/Factory (host machine is SLE-15-SP4, if it matters).

mcepl avatar Jun 08 '24 13:06 mcepl