DevHeads.net

Help needed regarding a build failure on x32 for python-twisted, might be kernel related

Hello,

I'm trying to build the new python-twisted 18.9.0, but it fails on 32 bits architecture:

BUILDSTDERR: In file included from /usr/include/asm/socket.h:1,
BUILDSTDERR: from /usr/include/bits/socket.h:393,
BUILDSTDERR: from /usr/include/sys/socket.h:33,
BUILDSTDERR: from src/twisted/python/_sendmsg.c:16:
BUILDSTDERR: src/twisted/python/_sendmsg.c: In function 'init_sendmsg':
BUILDSTDERR: src/twisted/python/_sendmsg.c:158:64: error: '__kernel_long_t' undeclared (first use in this function)
BUILDSTDERR: 158 | if (-1 == PyModule_AddIntConstant(module, "SCM_TIMESTAMP", SCM_TIMESTAMP)) {
BUILDSTDERR: | ^~~~~~~~~~~~~
BUILDSTDERR: src/twisted/python/_sendmsg.c:158:64: note: each undeclared identifier is reported only once for each function it appears in
BUILDSTDERR: error: command 'gcc' failed with exit status 1

<a href="https://koji.fedoraproject.org/koji/taskinfo?taskID=33279740" title="https://koji.fedoraproject.org/koji/taskinfo?taskID=33279740">https://koji.fedoraproject.org/koji/taskinfo?taskID=33279740</a>

The relevant code in src/twisted/python/_sendmsg.c:

#if defined(SCM_TIMESTAMP)
if (-1 == PyModule_AddIntConstant(module, "SCM_TIMESTAMP", SCM_TIMESTAMP)) {
return;
}
#endif

<a href="https://github.com/twisted/twisted/blob/trunk/src/twisted/python/_sendmsg.c#L157" title="https://github.com/twisted/twisted/blob/trunk/src/twisted/python/_sendmsg.c#L157">https://github.com/twisted/twisted/blob/trunk/src/twisted/python/_sendms...</a>

This seems related to the recent changes in the kernel regarding year 2038 bug and timestamps:
<a href="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/uapi/asm-generic/socket.h?id=887feae36aee6c08e0dafcdaa5ba921abbb2c56b" title="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/uapi/asm-generic/socket.h?id=887feae36aee6c08e0dafcdaa5ba921abbb2c56b">https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commi...</a>

Anyone has any insight as to what might be happening and how to solve it?

Thanks,

Robert-André

Comments

Re: Help needed regarding a build failure on x32 for python-twis

By Florian Weimer at 03/08/2019 - 03:34

* Robert-André Mauchin:

Since this has come up repeatedly in other contexts leading to
confusion:

This is not an x32 build. I don't think Fedora has any x32 builders.

x32 is a distinct, incompatible architecture from i386/i686 and x86-64,
requiring different binaries.

Thanks,
Florian

Re: Help needed regarding a build failure on x32 for python-twis

By Laura Abbott at 03/07/2019 - 18:55

On 3/7/19 2:23 PM, Robert-André Mauchin wrote:
See <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1686419" title="https://bugzilla.redhat.com/show_bug.cgi?id=1686419">https://bugzilla.redhat.com/show_bug.cgi?id=1686419</a>