matrix-org / pantalaimon

E2EE aware proxy daemon for matrix clients.
Apache License 2.0
293 stars 42 forks source link

Cannot build with olm 3.2.6 #111

Closed Half-Shot closed 2 years ago

Half-Shot commented 3 years ago

As seen in #108

  Building wheel for python-olm (setup.py): started
  Building wheel for python-olm (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-j8jera40/python-olm_9c66a50a21834d5fbaecdee0d3c66a7f/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-j8jera40/python-olm_9c66a50a21834d5fbaecdee0d3c66a7f/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-eugzp98m
       cwd: /tmp/pip-wheel-j8jera40/python-olm_9c66a50a21834d5fbaecdee0d3c66a7f/
  Complete output (33 lines):
  /usr/local/lib/python3.8/site-packages/setuptools/__init__.py:148: SetuptoolsDeprecationWarning: setup_requires is deprecated. Supply build dependencies using PEP 517 pyproject.toml build-requires.
    warnings.warn(
  make: *** No rule to make target '../include/olm/olm.h', needed by 'include/olm/olm.h'.  Stop.
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.8
  creating build/lib.linux-x86_64-3.8/olm
  copying olm/__version__.py -> build/lib.linux-x86_64-3.8/olm
  copying olm/account.py -> build/lib.linux-x86_64-3.8/olm
  copying olm/_finalize.py -> build/lib.linux-x86_64-3.8/olm
  copying olm/pk.py -> build/lib.linux-x86_64-3.8/olm
  copying olm/__init__.py -> build/lib.linux-x86_64-3.8/olm
  copying olm/session.py -> build/lib.linux-x86_64-3.8/olm
  copying olm/_compat.py -> build/lib.linux-x86_64-3.8/olm
  copying olm/sas.py -> build/lib.linux-x86_64-3.8/olm
  copying olm/utility.py -> build/lib.linux-x86_64-3.8/olm
  copying olm/group_session.py -> build/lib.linux-x86_64-3.8/olm
  running build_ext
  generating cffi module 'build/temp.linux-x86_64-3.8/_libolm.c'
  creating build/temp.linux-x86_64-3.8
  building '_libolm' extension
  creating build/temp.linux-x86_64-3.8/build
  creating build/temp.linux-x86_64-3.8/build/temp.linux-x86_64-3.8
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.8 -c build/temp.linux-x86_64-3.8/_libolm.c -o build/temp.linux-x86_64-3.8/build/temp.linux-x86_64-3.8/_libolm.o -I../include
  In file included from /usr/include/olm/olm.h:23,
                   from build/temp.linux-x86_64-3.8/_libolm.c:570:
  /usr/include/olm/inbound_group_session.h:23:10: fatal error: olm/olm_export.h: No such file or directory
   #include "olm/olm_export.h"
            ^~~~~~~~~~~~~~~~~~
  compilation terminated.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for python-olm
  Running setup.py clean for python-olm
Successfully built pantalaimon logbook peewee future
Failed to build python-olm
ERROR: Failed to build one or more wheels
The command '/bin/sh -c pip wheel . --wheel-dir /wheels --find-links /wheels' returned a non-zero code: 1
poljar commented 3 years ago

Upstream issue: https://gitlab.matrix.org/matrix-org/olm/-/issues/8.

poljar commented 2 years ago

I believe that this is fixed. CI seems to confirm this.