Project

General

Profile

Actions

Bug #42665

closed

./install-deps.sh fails with "Python.h: No such file or directory" for building xmlsec when python2 header file not installed

Added by Thomas Bechtold over 4 years ago. Updated over 4 years ago.

Status:
Duplicate
Priority:
Normal
Category:
build
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

This happens on an openSUSE Tumbleweed machine with ceph from git in version v15.0.0-6845-g3e718d3f4f .

Steps to reproduce:

- python-devel is not installed
- try to install deps

$ ./install-deps.sh
[...]

Building wheels for collected packages: pytest-instafail, xmlsec, repoze.lru, pycparser
  Building wheel for pytest-instafail (setup.py) ... done
  Created wheel for pytest-instafail: filename=pytest_instafail-0.4.1-py2-none-any.whl size=4231 sha256=d92219359d870a29e46a316c182294c381afbbb12bba57b2ca722540c511ffb4
  Stored in directory: /home/tom/devel/ceph/ceph/src/pybind/mgr/dashboard/wheelhouse-wip
  Building wheel for xmlsec (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/tom/devel/ceph/ceph/install-deps-python2.7/bin/python2.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-Kx6zVj/xmlsec/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-Kx6zVj/xmlsec/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-4iCtoO
       cwd: /tmp/pip-wheel-Kx6zVj/xmlsec/
  Complete output (18 lines):
  running bdist_wheel
  running build
  running build_ext
  building 'xmlsec' extension
  creating build
  creating build/temp.linux-x86_64-2.7
  creating build/temp.linux-x86_64-2.7/tmp
  creating build/temp.linux-x86_64-2.7/tmp/pip-wheel-Kx6zVj
  creating build/temp.linux-x86_64-2.7/tmp/pip-wheel-Kx6zVj/xmlsec
  creating build/temp.linux-x86_64-2.7/tmp/pip-wheel-Kx6zVj/xmlsec/src
  gcc -pthread -fno-strict-aliasing -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -DNDEBUG -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -DOPENSSL_LOAD_CONF -fwrapv -fPIC -DMODULE_NAME=xmlsec -DMODULE_VERSION=1.3.3 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2 -I/tmp/pip-wheel-Kx6zVj/xmlsec/.eggs/lxml-4.4.1-py2.7-linux-x86_64.egg/lxml/includes -I/tmp/pip-wheel-Kx6zVj/xmlsec/.eggs/lxml-4.4.1-py2.7-linux-x86_64.egg/lxml -I/tmp/pip-wheel-Kx6zVj/xmlsec/.eggs/lxml-4.4.1-py2.7-linux-x86_64.egg/lxml/includes/libxml -I/tmp/pip-wheel-Kx6zVj/xmlsec/.eggs/lxml-4.4.1-py2.7-linux-x86_64.egg/lxml/includes/libxslt -I/tmp/pip-wheel-Kx6zVj/xmlsec/.eggs/lxml-4.4.1-py2.7-linux-x86_64.egg/lxml/includes/libexslt -I/usr/include/python2.7 -c /tmp/pip-wheel-Kx6zVj/xmlsec/src/constants.c -o build/temp.linux-x86_64-2.7/tmp/pip-wheel-Kx6zVj/xmlsec/src/constants.o -g -std=c99 -fno-strict-aliasing -Wno-error=declaration-after-statement -Werror=implicit-function-declaration -Os
  In file included from /tmp/pip-wheel-Kx6zVj/xmlsec/src/constants.h:13,
                   from /tmp/pip-wheel-Kx6zVj/xmlsec/src/constants.c:11:
  /tmp/pip-wheel-Kx6zVj/xmlsec/src/platform.h:16:10: fatal error: Python.h: No such file or directory
     16 | #include <Python.h>
        |          ^~~~~~~~~~
  compilation terminated.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for xmlsec
  Running setup.py clean for xmlsec
  Building wheel for repoze.lru (setup.py) ... done
  Created wheel for repoze.lru: filename=repoze.lru-0.7-py2-none-any.whl size=11128 sha256=6c04d063d2fb45f833b16992bf7a591b085e06b8338672cb40da24482edcb0ed
  Stored in directory: /home/tom/devel/ceph/ceph/src/pybind/mgr/dashboard/wheelhouse-wip
  Building wheel for pycparser (setup.py) ... done
  Created wheel for pycparser: filename=pycparser-2.19-py2.py3-none-any.whl size=111027 sha256=af85bf5f892253be4f26e69b170ee1a34a5753682fdc2b92aa9e75726d64889e
  Stored in directory: /home/tom/devel/ceph/ceph/src/pybind/mgr/dashboard/wheelhouse-wip
Successfully built pytest-instafail repoze.lru pycparser
Failed to build xmlsec
ERROR: Failed to build one or more wheels


Related issues 1 (0 open1 closed)

Is duplicate of Ceph - Bug #23981: install-deps.sh fails with "No such file or directory" on openSUSE TumbleweedResolvedNathan Cutler

Actions
Actions #2

Updated by Jos Collin over 4 years ago

  • Assignee set to Thomas Bechtold
Actions #3

Updated by Jos Collin over 4 years ago

  • Pull request ID set to 31434
Actions #4

Updated by Kefu Chai over 4 years ago

  • Status changed from New to Fix Under Review
Actions #5

Updated by Nathan Cutler over 4 years ago

  • Status changed from Fix Under Review to Duplicate
Actions #6

Updated by Nathan Cutler over 4 years ago

  • Is duplicate of Bug #23981: install-deps.sh fails with "No such file or directory" on openSUSE Tumbleweed added
Actions

Also available in: Atom PDF