You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
We need to verify user has recent version of Python and error out during install if not.
@feiliuesmf was using Python 2.7 and did not receive any warning that you need Python 3.6+.
1) On the SGIs, I ran into this error (again building babeltrace with python enabled). This seems like a really odd case where system headers and python 2.7 headers do not agree on POSIX standards. I will need to see if there are alternative solutions including a custom build of python. You can see the python used is 2.7. Gcc used is 9.2.0
In file included from /usr/include/python2.7/pyconfig.h:6,
from /usr/include/python2.7/Python.h:8,
from py-common.c:31:
/usr/include/python2.7/pyconfig-64.h:1191: error: "_POSIX_C_SOURCE" redefined [-Werror]
1191 | #define _POSIX_C_SOURCE 200112L
|
In file included from /usr/include/errno.h:28,
from ../../src/logging/log.h:12,
from py-common.c:27:
/usr/include/features.h:168: note: this is the location of the previous definition
168 | # define _POSIX_C_SOURCE 200809L
Describe the solution you'd like
Clear description of requirement in the quick start (if not there).
Runtime check during install_dependencies.sh - if Python version is < 3.6 then exit with a clear message.
The text was updated successfully, but these errors were encountered:
@ryanlong1004 we need to check during install_dependencies.sh before pip install is ever run. Babeltrace2 will fail to build the python bindings during install_dependencies.sh if the version of Python is too old.
Is your feature request related to a problem? Please describe.
We need to verify user has recent version of Python and error out during install if not.
@feiliuesmf was using Python 2.7 and did not receive any warning that you need Python 3.6+.
Describe the solution you'd like
The text was updated successfully, but these errors were encountered: