Skip to content

OSError and SegFault encountered when building p11-Kit against 32 bit Python-3.11.2 using 64 bit time flags #104351

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

Open
TabLand opened this issue May 10, 2023 · 0 comments
Labels
build The build process and cross-build type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@TabLand
Copy link
Contributor

TabLand commented May 10, 2023

Hi Team,

I followed the instructions for Linux From Scratch (LFS) book version 11.3, which builds p11-kit-0.24.1 using the following dependencies:

Python-3.11.2
meson-1.1.0

Most of the (userspace) packages have been build with the following 64-bit flags...

CPPFLAGS="-D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64"

... with the exception of the below packages:

binutils-2.40 (build fails, requires further investigation)
gcc-12.2.0 (not required)
grub-2.06 (LFS instructions explicitly advised not to)
linux-6.1.11 (not required)

The following error is encountered:

ijtaba@lfs:/sources/p11-kit-0.24.1$ mkdir p11-build && cd p11-build && meson --prefix=/usr --buildtype=release \ 
  -Dtrust_paths=/etc/pki/anchors && ninja
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/mesonbuild/mesonmain.py", line 193, in run
    return options.run_func(options)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mesonbuild/msetup.py", line 309, in run
    app.generate()
  File "/usr/lib/python3.11/site-packages/mesonbuild/msetup.py", line 186, in generate
    self._generate(env)
  File "/usr/lib/python3.11/site-packages/mesonbuild/msetup.py", line 194, in _generate
    mlog.debug('Build started at', datetime.datetime.now().isoformat())
                                   ^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 75] Value too large for defined data type

ERROR: Unhandled python OSError. This is probably not a Meson bug, but an issue with your build environment.
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
Segmentation fault

Able to replicate this issue in python, which suggests its not just tied to p11-kit:

ijtaba@lfs:/sources/cpython$ python3 -c 'import datetime; print(datetime.datetime.now())'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
OSError: [Errno 75] Value too large for defined data type
Segmentation fault

Found whilst preparing my environment to replicate issue #101732
Will investigate this further when I get a chance. I was not able to replicate this issue in Python 3.12.0a7+

ijtaba@lfs:/sources/cpython$ ./python -c 'import datetime; print(datetime.datetime.now())'
2023-05-10 13:10:25.833959
ijtaba@lfs:/sources/cpython$ ./python --version
Python 3.12.0a7+
@TabLand TabLand added the type-crash A hard crash of the interpreter, possibly with a core dump label May 10, 2023
@arhadthedev arhadthedev added build The build process and cross-build and removed build The build process and cross-build labels May 10, 2023
@iritkatriel iritkatriel added the build The build process and cross-build label Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

No branches or pull requests

3 participants