GNU bug report logs -
#69812
Python fails to build on Alpine linux
Previous Next
Full log
Message #8 received at 69812 <at> debbugs.gnu.org (full text, mbox):
Hi!
Tomas Volf <~@wolfsden.cz> skribis:
> 0:02:13 load avg: 9.09 Re-running test_fcntl in verbose mode (matching: test_fcntl_64_bit)
> struct.pack: b'\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
> test_fcntl_64_bit (test.test_fcntl.TestFcntl) ... ERROR
>
> ======================================================================
> ERROR: test_fcntl_64_bit (test.test_fcntl.TestFcntl)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/tmp/guix-build-python-3.10.7.drv-0/Python-3.10.7/Lib/test/test_fcntl.py", line 140, in test_fcntl_64_bit
> fcntl.fcntl(fd, cmd, flags)
> OSError: [Errno 22] Invalid argument
This test looks like this:
--8<---------------cut here---------------start------------->8---
def test_fcntl_64_bit(self):
# Issue #1309352: fcntl shouldn't fail when the third arg fits in a
# C 'long' but not in a C 'int'.
try:
cmd = fcntl.F_NOTIFY
# This flag is larger than 2**31 in 64-bit builds
flags = fcntl.DN_MULTISHOT
except AttributeError:
self.skipTest("F_NOTIFY or DN_MULTISHOT unavailable")
fd = os.open(os.path.dirname(os.path.abspath(TESTFN)), os.O_RDONLY)
try:
fcntl.fcntl(fd, cmd, flags)
finally:
os.close(fd)
--8<---------------cut here---------------end--------------->8---
I suspect this is due to:
# CONFIG_DNOTIFY is not set
On Guix System, I have:
--8<---------------cut here---------------start------------->8---
$ zgrep CONFIG_DNOTIFY /proc/config.gz
CONFIG_DNOTIFY=y
$ uname -r
6.6.18-gnu
--8<---------------cut here---------------end--------------->8---
:-/
Ludo’.
This bug report was last modified 1 year and 93 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.