Skip to content

Could not build wheels for faster-fifo, which is required to install pyproject.toml-based projects #40

@muhammad-faizan-122

Description

@muhammad-faizan-122

Hi, I am facing following issue while installing faster-fifo library.
python version: 3.9.16
usage: pip install faster-fifo following this faster-fifo repo.
OS: Ubuntu 22.04.2 LTS

Building wheels for collected packages: faster-fifo
  Building wheel for faster-fifo (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for faster-fifo (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [30 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-39
      creating build/lib.linux-x86_64-cpython-39/faster_fifo_reduction
      copying faster_fifo_reduction/__init__.py -> build/lib.linux-x86_64-cpython-39/faster_fifo_reduction
      creating build/lib.linux-x86_64-cpython-39/cpp_faster_fifo
      copying cpp_faster_fifo/__init__.py -> build/lib.linux-x86_64-cpython-39/cpp_faster_fifo
      creating build/lib.linux-x86_64-cpython-39/cpp_faster_fifo/tests
      copying cpp_faster_fifo/tests/test_faster_fifo.py -> build/lib.linux-x86_64-cpython-39/cpp_faster_fifo/tests
      copying cpp_faster_fifo/tests/comparison_tests.py -> build/lib.linux-x86_64-cpython-39/cpp_faster_fifo/tests
      copying cpp_faster_fifo/tests/__init__.py -> build/lib.linux-x86_64-cpython-39/cpp_faster_fifo/tests
      running build_ext
      building 'faster_fifo' extension
      creating build/temp.linux-x86_64-cpython-39
      creating build/temp.linux-x86_64-cpython-39/cpp_faster_fifo
      creating build/temp.linux-x86_64-cpython-39/cpp_faster_fifo/cpp_lib
      gcc -pthread -B /home/user/miniconda3/envs/my-env/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/user/miniconda3/envs/my-env/include -I/home/user/miniconda3/envs/my-env/include -fPIC -O2 -isystem /home/user/miniconda3/envs/my-env/include -fPIC -I. -Icpp_faster_fifo/cpp_lib -I/home/user/miniconda3/envs/my-env/include/python3.9 -c cpp_faster_fifo/cpp_lib/faster_fifo.cpp -o build/temp.linux-x86_64-cpython-39/cpp_faster_fifo/cpp_lib/faster_fifo.o -std=c++11
      In file included from /usr/include/stdint.h:27,
                       from /usr/include/c++/11/cstdint:41,
                       from /usr/include/c++/11/ratio:40,
                       from /usr/include/c++/11/chrono:39,
                       from /usr/include/c++/11/mutex:39,
                       from cpp_faster_fifo/cpp_lib/faster_fifo.cpp:1:
      /usr/include/x86_64-linux-gnu/bits/types.h:141:10: fatal error: bits/typesizes.h: No such file or directory
        141 | #include <bits/typesizes.h>     /* Defines __*_T_TYPE macros.  */
            |          ^~~~~~~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for faster-fifo
Failed to build faster-fifo
ERROR: Could not build wheels for faster-fifo, which is required to install pyproject.toml-based projects

If anyone could offer some guidance on how to get faster-fifo installed, I would greatly appreciate it. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions