NVIDIA显卡驱动NVIDIA-Linux-x86_64-545.29.02 安装错误分析之一
software/NVIDIA-Linux-x86_64-545.29.02/kernel-open/nvidia/libspdm_shash.c: 在函数‘lkca_hmac_duplicate’中:
/software/NVIDIA-Linux-x86_64-545.29.02/kernel-open/nvidia/libspdm_shash.c:90:26: 错误:implicit declaration of function ‘crypto_tfm_ctx_aligned’; did you mean ‘crypto_tfm_ctx_align’? [-Werror=implicit-function-declaration]
90 | char *src_ipad = crypto_tfm_ctx_aligned(&src_tfm->base);
| ^~~~~~~~~~~~~~~~~~~~~~
| crypto_tfm_ctx_align
/software/NVIDIA-Linux-x86_64-545.29.02/kernel-open/nvidia/libspdm_shash.c:90:26: 警告:initialization of ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
/software/NVIDIA-Linux-x86_64-545.29.02/kernel-open/nvidia/libspdm_shash.c:91:26: 警告:initialization of ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
91 | char *dst_ipad = crypto_tfm_ctx_aligned(&dst_tfm->base);
在最新的Linux kernel内核6.x版本中, 安装Nvidia私有驱动过程中会出现错误;通过NVIDIA-Linux-x86_64-545.29.02.run安装时错误日志中,无法看到错误点; 只有在解压缩出来通过编译时才会发现错误,
crypto_tfm_ctx_aligned这个了函数已经放弃了,现在使用这个函数cryto_tfm_ctx_align()即可。
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 百万级群聊的设计实践
· 永远不要相信用户的输入:从 SQL 注入攻防看输入验证的重要性
· 全网最简单!3分钟用满血DeepSeek R1开发一款AI智能客服,零代码轻松接入微信、公众号、小程
· .NET 10 首个预览版发布,跨平台开发与性能全面提升
· 《HelloGitHub》第 107 期