V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
wniming
V2EX  ›  程序员

claude code, codex, antigravity 这些 AI 工具能用来解决涉及到系统底层的技术问题吗? rust 项目

  •  
  •   wniming · 9 小时 14 分钟前 · 563 次点击

    最近遇到这样一个问题,我想在 asahi linux 上查看备份到 Proxmox Backup Server 里的目录,于是在 pve9 系统上交叉编译了 proxmox-backup-client ,执行时遇到这样的报错:

    d@d-macbookair:~$ proxmox-backup-client mount host/test test.ppxar ~/mnt/0
    Error: unable to read dynamic index 'test.mpxar.didx' - Invalid argument (os error 22)
    d@d-macbookair:~$ 
    

    这个报错我几乎已经确定是因为 asahi linux 使用 16KB 的页大小导致的,因为我用 4KB 页的 arm64 虚拟机测试这条命令是正常的,我想修改 proxmox-backup-client 的代码解决这个问题,但我对这个项目不熟悉,而且我一直缺少用 AI 写代码的经验(目前为止我只会用网页版本的 AI 写一些不是很复杂的代码,比如一些 bash 脚本,功能比较独立的 linux 内核模块等),想试试用 AI 来解决这个问题,但无法估计要花多少钱,也担心 AI 还没有能力解决这类问题,所以在尝试之前想先问一下有经验的 V 友,AI 适合用来解决这类问题吗?

    3 条回复    2026-03-09 20:18:52 +08:00
    mizuki9
        1
    mizuki9  
       8 小时 48 分钟前
    不知道。不过 arm 的 4k 、16k 、64k 三种页大小,真是可以荼毒未来几十年的超级屎山设计。除了死得早的 MIPS & PowerPC ,再没有硬件架构会这样去设计
    YanSeven
        2
    YanSeven  
       8 小时 34 分钟前   ❤️ 1
    适合的,你在站内搜索 chatgpt team 拼车,或者闲鱼去买。最多 10 元每月。
    然后使用 codex ,额度足够你把这个问题折腾好,只需 10 块钱。
    wniming
        3
    wniming  
    OP
       6 小时 2 分钟前
    @YanSeven

    codex 一次性就修复了这个问题,我用的是 gpt-5.4 ,免费账户,解决完这个问题还剩 84%额度,提示词如下:

    The current code will encounter the following error when executed on an arm64 16KB page machine:
    d@d-macbookair:~$ proxmox-backup-client mount host/test test.ppxar ~/mnt/0
    Error: unable to read dynamic index 'test.mpxar.didx' - Invalid argument (os error 22)
    d@d-macbookair:~$
    The current code can run on an arm64 machine with 4KB pages.
    Fix the code of proxmox-backup-client to enable it to run on 16KB page arm64 machines.

    codex 修改的代码打成 patch 有 390 行。

    我现在才知道 AI 的编程能力有多强了,这问题要是我自己研究都不知道要搞多久。
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1127 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 18:21 · PVG 02:21 · LAX 11:21 · JFK 14:21
    ♥ Do have faith in what you're doing.