Skip to content

Failed to build hidapi==0.14.0.post2 ... gcc-11 failedΒ #45

@maphew

Description

@maphew

On Bluefin-dx when I try to run the python gui with Astral uv run I get this gcc-11 error. Available gcc version is 14. Do I really have to install v11?

qmk_hid/python on ξ‚  main [?] is πŸ“¦ v0.1.8 via 🐍 v3.13.1 
❯ uv run
  Γ— Failed to build `hidapi==0.14.0.post2`
  β”œβ”€β–Ά The build backend returned an error
  ╰─▢ Call to `setuptools.build_meta.build_wheel` failed (exit
      status: 1)

      [stdout]
      running bdist_wheel
      running build
      running build_ext
      building 'hid' extension
      gcc-11 -fno-strict-overflow
      -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC
      -I/var/home/matt/.cache/uv/sdists-v7/pypi/hidapi/0.14.0.post2/fKxvpKXYpUS_l-N7LCgQd/src/hidapi/hidapi
      -I/var/home/matt/.cache/uv/builds-v0/.tmpT1r6YL/include
      -I/home/linuxbrew/.linuxbrew/opt/python@3.13/include/python3.13
      -c
      /var/home/matt/.cache/uv/sdists-v7/pypi/hidapi/0.14.0.post2/fKxvpKXYpUS_l-N7LCgQd/src/hidapi/linux/hid.c
      -o
      build/temp.linux-x86_64-cpython-313/var/home/matt/.cache/uv/sdists-v7/pypi/hidapi/0.14.0.post2/fKxvpKXYpUS_l-N7LCgQd/src/hidapi/linux/hid.o

      [stderr]
      error: command 'gcc-11' failed: No such file or directory

      hint: This usually indicates a problem with the package or
      the build environment.
  help: `hidapi` (v0.14.0.post2) was included because `qmk-hid`
        (v0.1.8) depends on `hidapi`

❯ gcc --version
gcc (GCC) 14.2.1 20250110 (Red Hat 14.2.1-7)
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions