Hi, im tryng to use madgraph on a cluster so I uploaded it from my local directory and I need to install lhapdf and i followed
https://twiki.cern.ch/twiki/bin/view/Sandbox/InstallingMadgraphAndLHAPF
but when I do >make this error occurs:
[asandron@lemaitre3 LHAPDF-6.2.3]$ make
Making all in src
make[1]: Entering directory `/home/users/a/s/asandron/MADGRAPH/LHAPDF-6.2.3/src'
Making all in yamlcpp
make[2]: Entering directory `/home/users/a/s/asandron/MADGRAPH/LHAPDF-6.2.3/src/yamlcpp'
make[2]: Nessuna operazione da eseguire per «all».
make[2]: Leaving directory `/home/users/a/s/asandron/MADGRAPH/LHAPDF-6.2.3/src/yamlcpp'
make[2]: Entering directory `/home/users/a/s/asandron/MADGRAPH/LHAPDF-6.2.3/src'
make[2]: Nessuna operazione da eseguire per «all-am».
make[2]: Leaving directory `/home/users/a/s/asandron/MADGRAPH/LHAPDF-6.2.3/src'
make[1]: Leaving directory `/home/users/a/s/asandron/MADGRAPH/LHAPDF-6.2.3/src'
Making all in include
make[1]: Entering directory `/home/users/a/s/asandron/MADGRAPH/LHAPDF-6.2.3/include'
Making all in LHAPDF
make[2]: Entering directory `/home/users/a/s/asandron/MADGRAPH/LHAPDF-6.2.3/include/LHAPDF'
make all-am
make[3]: Entering directory `/home/users/a/s/asandron/MADGRAPH/LHAPDF-6.2.3/include/LHAPDF'
make[3]: Leaving directory `/home/users/a/s/asandron/MADGRAPH/LHAPDF-6.2.3/include/LHAPDF'
make[2]: Leaving directory `/home/users/a/s/asandron/MADGRAPH/LHAPDF-6.2.3/include/LHAPDF'
make[2]: Entering directory `/home/users/a/s/asandron/MADGRAPH/LHAPDF-6.2.3/include'
make[2]: Nessuna operazione da eseguire per «all-am».
make[2]: Leaving directory `/home/users/a/s/asandron/MADGRAPH/LHAPDF-6.2.3/include'
make[1]: Leaving directory `/home/users/a/s/asandron/MADGRAPH/LHAPDF-6.2.3/include'
Making all in wrappers
make[1]: Entering directory `/home/users/a/s/asandron/MADGRAPH/LHAPDF-6.2.3/wrappers'
Making all in python
make[2]: Entering directory `/home/users/a/s/asandron/MADGRAPH/LHAPDF-6.2.3/wrappers/python'
CC="g++" CXX="g++" /opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/bin/python setup.py install --install-lib=build/ --force
running install
running build
running build_ext
building 'lhapdf' extension
g++ -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -O2 -ftree-vectorize -march=native -fno-math-errno -fPIC -O2 -ftree-vectorize -march=native -fno-math-errno -fPIC -fPIC -I/home/users/a/s/asandron/MADGRAPH/LHAPDF-6.2.3/include -I/home/users/a/s/asandron/MADGRAPH/LHAPDF-6.2.3/include -I/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9 -c lhapdf.cpp -o build/temp.linux-x86_64-3.9/lhapdf.o -I/home/ucl/curl/asandron/MADGRAPH/3.0.4-sudakov/HEPTools/LHAPDF-6.2.3/include
lhapdf.cpp: In function ‘int __Pyx_modinit_type_init_code()’:
lhapdf.cpp:16895:26: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
16895 | __pyx_type_6lhapdf_PDF.tp_print = 0;
| ^~~~~~~~
lhapdf.cpp:16906:27: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
16906 | __pyx_type_6lhapdf_Info.tp_print = 0;
| ^~~~~~~~
lhapdf.cpp:16917:29: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
16917 | __pyx_type_6lhapdf_PDFSet.tp_print = 0;
| ^~~~~~~~
lhapdf.cpp:16938:30: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
16938 | __pyx_type_6lhapdf_PDFInfo.tp_print = 0;
| ^~~~~~~~
lhapdf.cpp:16949:29: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
16949 | __pyx_type_6lhapdf_AlphaS.tp_print = 0;
| ^~~~~~~~
In file included from /opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/unicodeobject.h:1026,
from /opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/Python.h:106,
from lhapdf.cpp:4:
lhapdf.cpp: In function ‘int __Pyx_ParseOptionalKeywords(PyObject*, PyObject***, PyObject*, PyObject**, Py_ssize_t, const char*)’:
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
261 | PyUnicode_WSTR_LENGTH(op) : \
| ^~~~~~~~~~~~~~~~~~~~~
lhapdf.cpp:18507:22: note: in expansion of macro ‘PyUnicode_GET_SIZE’
18507 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^~~~~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations]
262 | ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
lhapdf.cpp:18507:22: note: in expansion of macro ‘PyUnicode_GET_SIZE’
18507 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^~~~~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
264 | PyUnicode_WSTR_LENGTH(op)))
| ^~~~~~~~~~~~~~~~~~~~~
lhapdf.cpp:18507:22: note: in expansion of macro ‘PyUnicode_GET_SIZE’
18507 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^~~~~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
261 | PyUnicode_WSTR_LENGTH(op) : \
| ^~~~~~~~~~~~~~~~~~~~~
lhapdf.cpp:18507:52: note: in expansion of macro ‘PyUnicode_GET_SIZE’
18507 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^~~~~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations]
262 | ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
lhapdf.cpp:18507:52: note: in expansion of macro ‘PyUnicode_GET_SIZE’
18507 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^~~~~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
264 | PyUnicode_WSTR_LENGTH(op)))
| ^~~~~~~~~~~~~~~~~~~~~
lhapdf.cpp:18507:52: note: in expansion of macro ‘PyUnicode_GET_SIZE’
18507 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^~~~~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
261 | PyUnicode_WSTR_LENGTH(op) : \
| ^~~~~~~~~~~~~~~~~~~~~
lhapdf.cpp:18523:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
18523 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^~~~~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations]
262 | ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
lhapdf.cpp:18523:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
18523 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^~~~~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
264 | PyUnicode_WSTR_LENGTH(op)))
| ^~~~~~~~~~~~~~~~~~~~~
lhapdf.cpp:18523:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
18523 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^~~~~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
261 | PyUnicode_WSTR_LENGTH(op) : \
| ^~~~~~~~~~~~~~~~~~~~~
lhapdf.cpp:18523:59: note: in expansion of macro ‘PyUnicode_GET_SIZE’
18523 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^~~~~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:262:33: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations]
262 | ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
lhapdf.cpp:18523:59: note: in expansion of macro ‘PyUnicode_GET_SIZE’
18523 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^~~~~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:451:61: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
264 | PyUnicode_WSTR_LENGTH(op)))
| ^~~~~~~~~~~~~~~~~~~~~
lhapdf.cpp:18523:59: note: in expansion of macro ‘PyUnicode_GET_SIZE’
18523 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
| ^~~~~~~~~~~~~~~~~~
/opt/sw/arch/easybuild/2021b/software/Python/3.9.6-GCCcore-11.2.0/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
error: command '/opt/sw/arch/easybuild/2021b/software/GCCcore/11.2.0/bin/g++' failed with exit code 1
make[2]: *** [all-local] Errore 1
make[2]: Leaving directory `/home/users/a/s/asandron/MADGRAPH/LHAPDF-6.2.3/wrappers/python'
make[1]: *** [all-recursive] Errore 1
make[1]: Leaving directory `/home/users/a/s/asandron/MADGRAPH/LHAPDF-6.2.3/wrappers'
make: *** [all-recursive] Errore 1
wht's the problem?
Antonio