2
DeepSeek
驱动编译失败
2025-04-18 17:22:04
51
configure: creating ./config.status
config.status: creating config/config.h
make: 进入目录“/usr/src/kernels/5.14.0-578.el9.x86_64”
  CC [M]  /tmp/tmp.hzpijlXHdm/rock-kernel-refactory-hygon-master-5.7.1-V1.6.3/build/amdgpu-5.7.0-0/drm_gem_ttm_helper.o
  CC [M]  /tmp/tmp.hzpijlXHdm/rock-kernel-refactory-hygon-master-5.7.1-V1.6.3/build/amdgpu-5.7.0-0/drm_buddy.o
  CC [M]  /tmp/tmp.hzpijlXHdm/rock-kernel-refactory-hygon-master-5.7.1-V1.6.3/build/amdgpu-5.7.0-0/scheduler/sched_main.o
  CC [M]  /tmp/tmp.hzpijlXHdm/rock-kernel-refactory-hygon-master-5.7.1-V1.6.3/build/amdgpu-5.7.0-0/extra/extra.o
  CC [M]  /tmp/tmp.hzpijlXHdm/rock-kernel-refactory-hygon-master-5.7.1-V1.6.3/build/amdgpu-5.7.0-0/ttm/ttm_tt.o
  CC [M]  /tmp/tmp.hzpijlXHdm/rock-kernel-refactory-hygon-master-5.7.1-V1.6.3/build/amdgpu-5.7.0-0/amd/amdkcl/main.o
  CC [M]  /tmp/tmp.hzpijlXHdm/rock-kernel-refactory-hygon-master-5.7.1-V1.6.3/build/amdgpu-5.7.0-0/ttm/ttm_bo.o
  CC [M]  /tmp/tmp.hzpijlXHdm/rock-kernel-refactory-hygon-master-5.7.1-V1.6.3/build/amdgpu-5.7.0-0/amd/amdgpu/amdgpu_drv.o
  CC [M]  /tmp/tmp.hzpijlXHdm/rock-kernel-refactory-hygon-master-5.7.1-V1.6.3/build/amdgpu-5.7.0-0/amd/amdkcl/symbols.o
  CC [M]  /tmp/tmp.hzpijlXHdm/rock-kernel-refactory-hygon-master-5.7.1-V1.6.3/build/amdgpu-5.7.0-0/amd/amdkcl/kcl_common.o
  CC [M]  /tmp/tmp.hzpijlXHdm/rock-kernel-refactory-hygon-master-5.7.1-V1.6.3/build/amdgpu-5.7.0-0/extra/hydcu_fence_mgr.o
In file included from /tmp/tmp.hzpijlXHdm/rock-kernel-refactory-hygon-master-5.7.1-V1.6.3/build/amdgpu-5.7.0-0/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h:6,
                 from /tmp/tmp.hzpijlXHdm/rock-kernel-refactory-hygon-master-5.7.1-V1.6.3/build/amdgpu-5.7.0-0/amd/backport/backport.h:80,
                 from <命令行>:
/tmp/tmp.hzpijlXHdm/rock-kernel-refactory-hygon-master-5.7.1-V1.6.3/build/amdgpu-5.7.0-0/amd/amdgpu/amdgpu.h:1372: 警告:“MIN”重定义
 1372 | #define MIN(X, Y) ((X) < (Y) ? (X) : (Y))
      | 
In file included from ./include/linux/kernel.h:18,
                 from /tmp/tmp.hzpijlXHdm/rock-kernel-refactory-hygon-master-5.7.1-V1.6.3/build/amdgpu-5.7.0-0/amd/backport/backport.h:6,
                 from <命令行>:
./include/linux/minmax.h:342: 附注:这是先前定义的位置
  342 | #define MIN(a,b) __cmp(min,a,b)
      | 
/tmp/tmp.hzpijlXHdm/rock-kernel-refactory-hygon-master-5.7.1-V1.6.3/build/amdgpu-5.7.0-0/amd/amdgpu/amdgpu_drv.c:2712:10: 错误:‘struct drm_driver’ has no member named ‘lastclose’; did you mean ‘postclose’?
 2712 |         .lastclose = amdgpu_driver_lastclose_kms,
      |          ^~~~~~~~~
      |          postclose
  CC [M]  /tmp/tmp.hzpijlXHdm/rock-kernel-refactory-hygon-master-5.7.1-V1.6.3/build/amdgpu-5.7.0-0/extra/hydcu_fence_mgr_cmd_buffer.o
make[2]: *** [scripts/Makefile.build:249:/tmp/tmp.hzpijlXHdm/rock-kernel-refactory-hygon-master-5.7.1-V1.6.3/build/amdgpu-5.7.0-0/amd/amdgpu/amdgpu_drv.o] 错误 1
make[1]: *** [scripts/Makefile.build:478:/tmp/tmp.hzpijlXHdm/rock-kernel-refactory-hygon-master-5.7.1-V1.6.3/build/amdgpu-5.7.0-0/amd/amdgpu] 错误 2
make[1]: *** 正在等待未完成的任务....
  LD [M]  /tmp/tmp.hzpijlXHdm/rock-kernel-refactory-hygon-master-5.7.1-V1.6.3/build/amdgpu-5.7.0-0/hydrm_buddy.o

ubuntu和centos都是编译报错

全部评论(1)
只看楼主
W
wangs
1楼
有已经编译好的驱动 可以直接下载https://download.sourcefind.cn:65024/6/main
2025/4/19
没有更多内容了
--
楼主
Level.1
0 帖子
楼主热帖
暂无数据