Skip to content

fatal error: 'xf86drm.h' file not found #731

Open
@tapsu01

Description

@tapsu01

Describe the bug
when i try to add pyamdgpuinfo, I am getting a error 'xf86drm.h' file not found

To Reproduce
Steps to reproduce the behavior:

  1. Run python3 -m pip install pyamdgpuinfo

  2. See error

Environment:

  • Smart screen model: Turing 3.5"
  • Revision of this project: 3.9.2
  • OS with version: MacOS 13.7
  • Python version: 3.12.7
  • Hardware [Intel CPU core i7 8700, AMD Radeon Pro WX 4100 4 GB]

Screenshots / photos of the Turing screen

python3 -m pip install pyamdgpuinfo
Collecting pyamdgpuinfo
  Using cached pyamdgpuinfo-2.1.6.tar.gz (21 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pyamdgpuinfo
  Building wheel for pyamdgpuinfo (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pyamdgpuinfo (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [27 lines of output]
      /private/var/folders/14/6qcc7jl95h9dkqcg2hz09_dr0000gn/T/pip-build-env-pw389bel/overlay/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!

              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:

              License :: OSI Approved :: GNU General Public License v3 (GPLv3)

              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************

      !!
        self._finalize_license_expression()
      running bdist_wheel
      running build
      running build_py
      creating build/lib.macosx-10.13-universal2-cpython-312/pyamdgpuinfo
      copying pyamdgpuinfo/__init__.py -> build/lib.macosx-10.13-universal2-cpython-312/pyamdgpuinfo
      running build_ext
      building 'pyamdgpuinfo._pyamdgpuinfo' extension
      creating build/temp.macosx-10.13-universal2-cpython-312/pyamdgpuinfo
      clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -arch arm64 -arch x86_64 -g -I/usr/local/opt/ruby/include -I/usr/include/libdrm -I/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c pyamdgpuinfo/_pyamdgpuinfo.c -o build/temp.macosx-10.13-universal2-cpython-312/pyamdgpuinfo/_pyamdgpuinfo.o
      pyamdgpuinfo/_pyamdgpuinfo.c:1241:10: fatal error: 'xf86drm.h' file not found
      #include "xf86drm.h"
               ^~~~~~~~~~~
      1 error generated.
      error: command '/usr/bin/clang' 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 pyamdgpuinfo
Failed to build pyamdgpuinfo
ERROR: Failed to build installable wheels for some pyproject.toml based projects (pyamdgpuinfo)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions