mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 14:20:23 +01:00
在引入 clang-unwrapped 情况下,go运行错误 #37
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shelken on GitHub (Apr 18, 2024).
本项目
21d85d41ef/home/base/tui/editors/packages.nix (L18)我的配置
c6269a6919/home/apps/neovim/packages.nix (L7)虽然我跟您的配置不完全一致,但是在只引入该包的情况下,在我的电脑上(darwin),直接运行
go run .发现以下错误:去掉就正常了。不知道你是否能复现?
@ryan4yin commented on GitHub (Apr 18, 2024):
+1 成功复现...
@ryan4yin commented on GitHub (Apr 18, 2024):
有可能是 unstable 的 clang 有不兼容变更,然后我 darwin 用的是 nixpkgs-23.11-darwin 不是 unstable 从而导致问题。
但 unstable + darwin 坏掉的东西太多了,只能先注释掉,然后等 24.05 发布后再试试了
@imxyy1soope1 commented on GitHub (Apr 26, 2024):
大概是因为
llvmPackages.clang-unwrapped,并且clang-unwrapped把原本的cc覆盖掉了,导致编译时找不到include path,可以换用clang-tools@ryan4yin commented on GitHub (Apr 28, 2024):
@imxyy1soope1 嗯应该是这样
@ryan4yin commented on GitHub (Jun 3, 2024):
升级到 24.05 后问题仍旧存在,已经根据 @imxyy1soope1 的建议做了修改。