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

Python 3.11 build fails due to PYTHIA #71

Open
matthewfeickert opened this issue Jun 23, 2023 · 0 comments
Open

Python 3.11 build fails due to PYTHIA #71

matthewfeickert opened this issue Jun 23, 2023 · 0 comments

Comments

@matthewfeickert
Copy link
Member

Trying to get Python 3.11 working fails due to PYTHIA with

> [builder 5/8] RUN mkdir /code &&     cd /code &&     wget --quiet "[https://pythia.org/download/pythia${PYTHIA_VERSION:0:2}/pythia${PYTHIA_VERSION}.tgz](https://pythia.org/download/pythia$%7BPYTHIA_VERSION:0:2%7D/pythia$%7BPYTHIA_VERSION%7D.tgz)" &&     tar xvfz pythia${PYTHIA_VERSION}.tgz &&     cd pythia${PYTHIA_VERSION} &&     ./configure --help &&     export PYTHON_MINOR_VERSION="${PYTHON_VERSION%.*}" &&     ./configure       --prefix=/usr/local/venv       --arch=Linux       --cxx=g++       --enable-64bit       --with-gzip       --with-hepmc2=/usr/local/venv       --with-lhapdf6=/usr/local/venv       --with-fastjet3=/usr/local/venv       --with-python-bin=/usr/local/venv/bin/       --with-python-lib=/usr/local/venv/lib/python${PYTHON_MINOR_VERSION}       --with-python-include=/usr/local/include/python${PYTHON_MINOR_VERSION}       --cxx-common="-O2 -m64 -pedantic -W -Wall -Wshadow -fPIC -std=c++17"       --cxx-shared="-shared -std=c++17" &&     make -j$(($(nproc) - 1)) &&     make install &&     rm -rf /code:
480.5                  from include/pybind11/attr.h:13,
480.5                  from include/pybind11/pybind11.h:44,
480.5                  from src/Analysis.cpp:31:
480.5 /usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
480.5    22 | typedef struct _frame PyFrameObject;
480.5       |                ^~~~~~
484.5 make[1]: *** [Makefile:68: tmp/Analysis.o] Error 1
484.5 make[1]: Leaving directory '/code/pythia8306/plugins/python'
484.5 make: *** [Makefile:131: python] Error 2
484.5 rm tmp/LHAPDF6Plugin.o

This also happens with PYTHIA 8309 and so this is something to raise with the PYTHIA8 devs.

Originally posted by @matthewfeickert in #70 (comment)

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

1 participant