• Recent
    • Docs
    • Github
    • 百度网盘
    • Google
    • Official
    • Shop
    • Register
    • Login
    1. Cool Pi For You
    2. jask
    3. Posts
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Groups 0

    Posts

    Recent Best Controversial
    • 用Clang构建内核

      截屏2026-01-13 21.54.26.png
      起因是用gen_compile_commands.py生成的compilation database对于clangd不太友好,便想着用clang构建内核试试,还是遇到了一些问题,也学习到很多东西。

      1. scripts/Makefile.extrawarn。clang构建内核需要关掉一些flag,否则会编译失败,这个是最容易修改的。
      2. cannot jump from this indirect goto statement to one of its possible targets。在此之前我并不知道gcc还有这样的拓展,这个问题出现在drm相关的代码里面,我用比较丑陋的代码暂时处理了,以后再看看mainline kernel是怎么处理的。
        64d06ff8-2c0f-4aee-a44a-a5eff0bc54e7-afe7b1040455aeedf0e6d426b95c9893.png a4a8a050-9b43-4eea-9822-52cc8a5000e6-3fba723c00a7809097282462a3cc1186.png
      3. 数组大小问题。eda8b240-93b8-48d7-ae1d-373e948aaa1b-6293296cb735f5889097a827b4504e1f.png

      对我而言这是一次有趣的体验,从lkml的patch里面提取有效信息、看llvm issue、看GCC手册,所以写下来当作消遣。

      posted in PI CM5 Laptop
      J
      jask
    • RE: Cool Pi Cm5-Laptop Linux Quick Start Guide

      @Momo-0 I just met this problem, and it was caused by previous job not finishing. https://lkml.org/lkml/2024/1/8/549, I met this problem, and swapped argument, then it compiles

      posted in PI CM5 Laptop
      J
      jask
    • 1 / 1