Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 1928144 - volk fails to build with Python 3.10: string comparison in cmake '3.10.0' < '3.4'
Summary: volk fails to build with Python 3.10: string comparison in cmake '3.10.0' < '...
Alias: None
Product: Fedora
Classification: Fedora
Component: volk
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact:
Depends On:
Blocks: PYTHON3.10
TreeView+ depends on / blocked
Reported: 2021-02-12 13:32 UTC by Tomáš Hrnčiar
Modified: 2021-02-15 22:04 UTC (History)
3 users (show)

Fixed In Version: volk-2.4.1-4.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2021-02-15 22:04:14 UTC
Type: Bug

Attachments (Terms of Use)

Description Tomáš Hrnčiar 2021-02-12 13:32:31 UTC
volk fails to build with Python 3.10.0a5.

-- The C compiler identification is GNU 11.0.0
-- The CXX compiler identification is GNU 11.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HAVE_CX_LIMITED_RANGE
-- Performing Test HAVE_CX_LIMITED_RANGE - Success
-- Performing Test HAVE_C_LIMITED_RANGE
-- Performing Test HAVE_C_LIMITED_RANGE - Success
-- Build type not specified: defaulting to release.
-- Build type set to Release.
-- Could NOT find Git (missing: GIT_EXECUTABLE) 
-- Building Volk with cpu_features
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for getauxval
-- Looking for getauxval - found
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.10", minimum required is "3") 
-- Python checking for python >= 3.4
-- Python checking for python >= 3.4 - not found
-- Python checking for mako >= 0.4.2
-- Python checking for mako >= 0.4.2 - found
CMake Error at CMakeLists.txt:146 (message):
  Python 3.4 or greater required to build VOLK

cmake wrongly detects Python 3.1 instead of Python 3.10. 

The problem is in line #160 in CMakeLists.txt
VOLK_PYTHON_CHECK_MODULE("python >= 3.4" sys "sys.version.split()[0] >= '3.4'" PYTHON_MIN_VER_FOUND)

>>> sys.version.split()[0]
>>> sys.version.split()[0] >= '3.4'

For the build logs, see:

For all our attempts to build volk with Python 3.10, see:

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.10:

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Jaroslav Škarvada 2021-02-15 21:26:02 UTC
Thanks for analysis, upstream ticket:

Comment 2 Fedora Update System 2021-02-15 22:04:14 UTC
FEDORA-2021-d35822d731 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.