Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mcepl opened this issue Jun 7, 2024 · 2 comments
Open

Comments

@mcepl
Copy link

mcepl commented Jun 7, 2024

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.

@JanWielemaker
Copy link
Member

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?

@mcepl
Copy link
Author

mcepl commented Jun 8, 2024

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants