Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install unable to brotli: cannot find cc1plus #945

Closed
aufbakanleitung opened this issue Dec 16, 2021 · 3 comments
Closed

pip install unable to brotli: cannot find cc1plus #945

aufbakanleitung opened this issue Dec 16, 2021 · 3 comments

Comments

@aufbakanleitung
Copy link

So it seems this issue from 2015 is back.
So my requirements.txt is very #short:

mkdocs
mkdocs-material
mkpdfs-mkdocs

When I run docker-compose up, I run into an error with brotli. Here is the full log starting from the first error:

#10 66.91   Building wheel for brotli (setup.py): finished with status 'error'
#10 66.91   ERROR: Command errored out with exit status 1:
#10 66.91    command: /usr/local/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-f2ja_0jy/brotli_00762478ab6b4e168baa0855008131b4/setup.py'"'"'; __file__='"'"'/tmp/pip-install-f2ja_0jy/brotli_00762478ab6b4e168baa0855008131b4/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-dal8262s
#10 66.91        cwd: /tmp/pip-install-f2ja_0jy/brotli_00762478ab6b4e168baa0855008131b4/
#10 66.91   Complete output (49 lines):
#10 66.91   /usr/local/lib/python3.10/site-packages/setuptools/dist.py:697: UserWarning: Usage of dash-separated 'build-base' will not be supported in future versions. Please use the underscore name 'build_base' instead
#10 66.91     warnings.warn(
#10 66.91   running bdist_wheel
#10 66.91   running build
#10 66.91   running build_py
#10 66.91   creating bin
#10 66.91   creating bin/lib.linux-x86_64-3.10
#10 66.91   copying python/brotli.py -> bin/lib.linux-x86_64-3.10
#10 66.91   running build_ext
#10 66.91   building '_brotli' extension
#10 66.91   creating bin/temp.linux-x86_64-3.10
#10 66.91   creating bin/temp.linux-x86_64-3.10/c
#10 66.91   creating bin/temp.linux-x86_64-3.10/c/common
#10 66.91   creating bin/temp.linux-x86_64-3.10/c/dec
#10 66.91   creating bin/temp.linux-x86_64-3.10/c/enc
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/common/constants.c -o bin/temp.linux-x86_64-3.10/c/common/constants.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/common/context.c -o bin/temp.linux-x86_64-3.10/c/common/context.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/common/dictionary.c -o bin/temp.linux-x86_64-3.10/c/common/dictionary.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/common/platform.c -o bin/temp.linux-x86_64-3.10/c/common/platform.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/common/transform.c -o bin/temp.linux-x86_64-3.10/c/common/transform.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/dec/bit_reader.c -o bin/temp.linux-x86_64-3.10/c/dec/bit_reader.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/dec/decode.c -o bin/temp.linux-x86_64-3.10/c/dec/decode.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/dec/huffman.c -o bin/temp.linux-x86_64-3.10/c/dec/huffman.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/dec/state.c -o bin/temp.linux-x86_64-3.10/c/dec/state.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/backward_references.c -o bin/temp.linux-x86_64-3.10/c/enc/backward_references.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/backward_references_hq.c -o bin/temp.linux-x86_64-3.10/c/enc/backward_references_hq.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/bit_cost.c -o bin/temp.linux-x86_64-3.10/c/enc/bit_cost.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/block_splitter.c -o bin/temp.linux-x86_64-3.10/c/enc/block_splitter.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/brotli_bit_stream.c -o bin/temp.linux-x86_64-3.10/c/enc/brotli_bit_stream.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/cluster.c -o bin/temp.linux-x86_64-3.10/c/enc/cluster.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/command.c -o bin/temp.linux-x86_64-3.10/c/enc/command.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/compress_fragment.c -o bin/temp.linux-x86_64-3.10/c/enc/compress_fragment.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/compress_fragment_two_pass.c -o bin/temp.linux-x86_64-3.10/c/enc/compress_fragment_two_pass.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/dictionary_hash.c -o bin/temp.linux-x86_64-3.10/c/enc/dictionary_hash.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/encode.c -o bin/temp.linux-x86_64-3.10/c/enc/encode.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/encoder_dict.c -o bin/temp.linux-x86_64-3.10/c/enc/encoder_dict.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/entropy_encode.c -o bin/temp.linux-x86_64-3.10/c/enc/entropy_encode.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/fast_log.c -o bin/temp.linux-x86_64-3.10/c/enc/fast_log.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/histogram.c -o bin/temp.linux-x86_64-3.10/c/enc/histogram.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/literal_cost.c -o bin/temp.linux-x86_64-3.10/c/enc/literal_cost.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/memory.c -o bin/temp.linux-x86_64-3.10/c/enc/memory.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/metablock.c -o bin/temp.linux-x86_64-3.10/c/enc/metablock.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/static_dict.c -o bin/temp.linux-x86_64-3.10/c/enc/static_dict.o
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/utf8_util.c -o bin/temp.linux-x86_64-3.10/c/enc/utf8_util.o
#10 66.91   creating bin/temp.linux-x86_64-3.10/python
#10 66.91   gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c python/_brotli.cc -o bin/temp.linux-x86_64-3.10/python/_brotli.o
#10 66.91   gcc: fatal error: cannot execute 'cc1plus': execvp: No such file or directory
#10 66.91   compilation terminated.
#10 66.91   error: command '/usr/bin/gcc' failed with exit code 1
#10 66.91   ----------------------------------------
#10 66.91   ERROR: Failed building wheel for brotli
#10 66.91   Running setup.py clean for brotli
#10 67.08   Building wheel for Pillow (setup.py): started
#10 95.87   Building wheel for Pillow (setup.py): finished with status 'done'
#10 95.87   Created wheel for Pillow: filename=Pillow-8.4.0-cp310-cp310-linux_x86_64.whl size=587332 sha256=e0bf769f08682232ce46adf73b99904431cf7a8b77965cd0fca300fabbec66a4
#10 95.87   Stored in directory: /root/.cache/pip/wheels/46/e1/1f/4cafae6ded8b2a1f3819afa957da3efd429491c02fe1c26230
#10 95.87   Building wheel for zopfli (setup.py): started
#10 98.58   Building wheel for zopfli (setup.py): finished with status 'done'
#10 98.58   Created wheel for zopfli: filename=zopfli-0.1.9-cp310-cp310-linux_x86_64.whl size=40073 sha256=93e11e44c1e0c3dcdfab045fc45f4c9a0d10553d739a094c616b87364873f8b4
#10 98.58   Stored in directory: /root/.cache/pip/wheels/4c/25/6c/77b7a1198d45f38560f7db631f782e0e68ce2ed43241efc9d3
#10 98.58 Successfully built mkdocs-windmill mkpdfs-mkdocs future livereload PyYAML tornado cffi Pillow zopfli
#10 98.58 Failed to build brotli
#10 98.83 Installing collected packages: webencodings, tqdm, six, regex, joblib, future, click, zopfli, tornado, tinycss2, smmap, pycparser, nltk, MarkupSafe, lunr, fonttools, brotli, soupsieve, PyYAML, pytz, Pyphen, pydyf, Pillow, Markdown, livereload, Jinja2, html5lib, gitdb, cssselect2, cffi, weasyprint, pymdown-extensions, pygments, mkdocs-material-extensions, mkdocs, GitPython, beautifulsoup4, babel, mkpdfs-mkdocs, mkdocs-windmill-dark, mkdocs-windmill, mkdocs-psinder, mkdocs-material, mkdocs-git-revision-date-localized-plugin, mkdocs-cinder, mkdocs-bootswatch, mkdocs-bootstrap, mkdocs-alabaster
#10 101.8     Running setup.py install for brotli: started
#10 127.2     Running setup.py install for brotli: finished with status 'error'
#10 127.2     ERROR: Command errored out with exit status 1:
#10 127.2      command: /usr/local/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-f2ja_0jy/brotli_00762478ab6b4e168baa0855008131b4/setup.py'"'"'; __file__='"'"'/tmp/pip-install-f2ja_0jy/brotli_00762478ab6b4e168baa0855008131b4/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'"'"'))' install --record /tmp/pip-record-jnaz9v0o/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.10/brotli
#10 127.2          cwd: /tmp/pip-install-f2ja_0jy/brotli_00762478ab6b4e168baa0855008131b4/
#10 127.2     Complete output (49 lines):
#10 127.2     /usr/local/lib/python3.10/site-packages/setuptools/dist.py:697: UserWarning: Usage of dash-separated 'build-base' will not be supported in future versions. Please use the underscore name 'build_base' instead
#10 127.2       warnings.warn(
#10 127.2     running install
#10 127.2     running build
#10 127.2     running build_py
#10 127.2     creating bin
#10 127.2     creating bin/lib.linux-x86_64-3.10
#10 127.2     copying python/brotli.py -> bin/lib.linux-x86_64-3.10
#10 127.2     running build_ext
#10 127.2     building '_brotli' extension
#10 127.2     creating bin/temp.linux-x86_64-3.10
#10 127.2     creating bin/temp.linux-x86_64-3.10/c
#10 127.2     creating bin/temp.linux-x86_64-3.10/c/common
#10 127.2     creating bin/temp.linux-x86_64-3.10/c/dec
#10 127.2     creating bin/temp.linux-x86_64-3.10/c/enc
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/common/constants.c -o bin/temp.linux-x86_64-3.10/c/common/constants.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/common/context.c -o bin/temp.linux-x86_64-3.10/c/common/context.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/common/dictionary.c -o bin/temp.linux-x86_64-3.10/c/common/dictionary.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/common/platform.c -o bin/temp.linux-x86_64-3.10/c/common/platform.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/common/transform.c -o bin/temp.linux-x86_64-3.10/c/common/transform.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/dec/bit_reader.c -o bin/temp.linux-x86_64-3.10/c/dec/bit_reader.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/dec/decode.c -o bin/temp.linux-x86_64-3.10/c/dec/decode.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/dec/huffman.c -o bin/temp.linux-x86_64-3.10/c/dec/huffman.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/dec/state.c -o bin/temp.linux-x86_64-3.10/c/dec/state.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/backward_references.c -o bin/temp.linux-x86_64-3.10/c/enc/backward_references.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/backward_references_hq.c -o bin/temp.linux-x86_64-3.10/c/enc/backward_references_hq.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/bit_cost.c -o bin/temp.linux-x86_64-3.10/c/enc/bit_cost.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/block_splitter.c -o bin/temp.linux-x86_64-3.10/c/enc/block_splitter.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/brotli_bit_stream.c -o bin/temp.linux-x86_64-3.10/c/enc/brotli_bit_stream.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/cluster.c -o bin/temp.linux-x86_64-3.10/c/enc/cluster.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/command.c -o bin/temp.linux-x86_64-3.10/c/enc/command.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/compress_fragment.c -o bin/temp.linux-x86_64-3.10/c/enc/compress_fragment.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/compress_fragment_two_pass.c -o bin/temp.linux-x86_64-3.10/c/enc/compress_fragment_two_pass.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/dictionary_hash.c -o bin/temp.linux-x86_64-3.10/c/enc/dictionary_hash.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/encode.c -o bin/temp.linux-x86_64-3.10/c/enc/encode.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/encoder_dict.c -o bin/temp.linux-x86_64-3.10/c/enc/encoder_dict.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/entropy_encode.c -o bin/temp.linux-x86_64-3.10/c/enc/entropy_encode.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/fast_log.c -o bin/temp.linux-x86_64-3.10/c/enc/fast_log.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/histogram.c -o bin/temp.linux-x86_64-3.10/c/enc/histogram.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/literal_cost.c -o bin/temp.linux-x86_64-3.10/c/enc/literal_cost.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/memory.c -o bin/temp.linux-x86_64-3.10/c/enc/memory.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/metablock.c -o bin/temp.linux-x86_64-3.10/c/enc/metablock.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/static_dict.c -o bin/temp.linux-x86_64-3.10/c/enc/static_dict.o
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c c/enc/utf8_util.c -o bin/temp.linux-x86_64-3.10/c/enc/utf8_util.o
#10 127.2     creating bin/temp.linux-x86_64-3.10/python
#10 127.2     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/local/include/python3.10 -c python/_brotli.cc -o bin/temp.linux-x86_64-3.10/python/_brotli.o
#10 127.2     gcc: fatal error: cannot execute 'cc1plus': execvp: No such file or directory
#10 127.2     compilation terminated.
#10 127.2     error: command '/usr/bin/gcc' failed with exit code 1
#10 127.2     ----------------------------------------
#10 127.2 ERROR: Command errored out with exit status 1: /usr/local/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-f2ja_0jy/brotli_00762478ab6b4e168baa0855008131b4/setup.py'"'"'; __file__='"'"'/tmp/pip-install-f2ja_0jy/brotli_00762478ab6b4e168baa0855008131b4/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'"'"'))' install --record /tmp/pip-record-jnaz9v0o/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.10/brotli Check the logs for full command output.
#10 127.2 WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
#10 127.2 You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
------
executor failed running [/bin/sh -c pip install -r requirements.txt && rm -rf $HOME/.cache/pip]: exit code: 1
ERROR: Service 'web' failed to build : Build failed
@eustas
Copy link
Collaborator

eustas commented Jan 10, 2022

To me it seems to be a different problem.
brotli library files are built fine, because those are c-files. python module is c++ file, that is why it requires c++ compiler (cc1plus).
Could you provide mode detailed repro (sequence of shell commands).

@LukasKifmann
Copy link

I have the same problem. If I install g++, I get a different error:

ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-03popf0k/brotli_e7165ed37c7b426290c7f69707e48a9b/setup.py'"'"'; __file__='"'"'/tmp/pip-install-03popf0k/brotli_e7165ed37c7b426290c7f69707e48a9b/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-mlcxq6ji/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.9/brotli
         cwd: /tmp/pip-install-03popf0k/brotli_e7165ed37c7b426290c7f69707e48a9b/
    Complete output (49 lines):
    running install
    running build
    running build_py
    creating bin
    creating bin/lib.linux-x86_64-3.9
    copying python/brotli.py -> bin/lib.linux-x86_64-3.9
    running build_ext
    building '_brotli' extension
    creating bin/temp.linux-x86_64-3.9
    creating bin/temp.linux-x86_64-3.9/c
    creating bin/temp.linux-x86_64-3.9/c/common
    creating bin/temp.linux-x86_64-3.9/c/dec
    creating bin/temp.linux-x86_64-3.9/c/enc
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/common/constants.c -o bin/temp.linux-x86_64-3.9/c/common/constants.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/common/context.c -o bin/temp.linux-x86_64-3.9/c/common/context.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/common/dictionary.c -o bin/temp.linux-x86_64-3.9/c/common/dictionary.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/common/platform.c -o bin/temp.linux-x86_64-3.9/c/common/platform.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/common/transform.c -o bin/temp.linux-x86_64-3.9/c/common/transform.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/dec/bit_reader.c -o bin/temp.linux-x86_64-3.9/c/dec/bit_reader.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/dec/decode.c -o bin/temp.linux-x86_64-3.9/c/dec/decode.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/dec/huffman.c -o bin/temp.linux-x86_64-3.9/c/dec/huffman.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/dec/state.c -o bin/temp.linux-x86_64-3.9/c/dec/state.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/enc/backward_references.c -o bin/temp.linux-x86_64-3.9/c/enc/backward_references.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/enc/backward_references_hq.c -o bin/temp.linux-x86_64-3.9/c/enc/backward_references_hq.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/enc/bit_cost.c -o bin/temp.linux-x86_64-3.9/c/enc/bit_cost.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/enc/block_splitter.c -o bin/temp.linux-x86_64-3.9/c/enc/block_splitter.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/enc/brotli_bit_stream.c -o bin/temp.linux-x86_64-3.9/c/enc/brotli_bit_stream.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/enc/cluster.c -o bin/temp.linux-x86_64-3.9/c/enc/cluster.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/enc/command.c -o bin/temp.linux-x86_64-3.9/c/enc/command.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/enc/compress_fragment.c -o bin/temp.linux-x86_64-3.9/c/enc/compress_fragment.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/enc/compress_fragment_two_pass.c -o bin/temp.linux-x86_64-3.9/c/enc/compress_fragment_two_pass.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/enc/dictionary_hash.c -o bin/temp.linux-x86_64-3.9/c/enc/dictionary_hash.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/enc/encode.c -o bin/temp.linux-x86_64-3.9/c/enc/encode.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/enc/encoder_dict.c -o bin/temp.linux-x86_64-3.9/c/enc/encoder_dict.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/enc/entropy_encode.c -o bin/temp.linux-x86_64-3.9/c/enc/entropy_encode.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/enc/fast_log.c -o bin/temp.linux-x86_64-3.9/c/enc/fast_log.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/enc/histogram.c -o bin/temp.linux-x86_64-3.9/c/enc/histogram.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/enc/literal_cost.c -o bin/temp.linux-x86_64-3.9/c/enc/literal_cost.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/enc/memory.c -o bin/temp.linux-x86_64-3.9/c/enc/memory.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/enc/metablock.c -o bin/temp.linux-x86_64-3.9/c/enc/metablock.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/enc/static_dict.c -o bin/temp.linux-x86_64-3.9/c/enc/static_dict.o
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c c/enc/utf8_util.c -o bin/temp.linux-x86_64-3.9/c/enc/utf8_util.o
    creating bin/temp.linux-x86_64-3.9/python
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ic/include -I/usr/include/python3.9 -c python/_brotli.cc -o bin/temp.linux-x86_64-3.9/python/_brotli.o
    python/_brotli.cc:2:10: fatal error: Python.h: No such file or directory
        2 | #include <Python.h>
          |          ^~~~~~~~~~
    compilation terminated.
    error: command '/usr/bin/gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-03popf0k/brotli_e7165ed37c7b426290c7f69707e48a9b/setup.py'"'"'; __file__='"'"'/tmp/pip-install-03popf0k/brotli_e7165ed37c7b426290c7f69707e48a9b/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-mlcxq6ji/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.9/brotli Check the logs for full command output.

@eustas
Copy link
Collaborator

eustas commented Jan 3, 2023

Now python module is pure c. Should work. Feel free to reopen, if not.

@eustas eustas closed this as completed Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants