liuyq / android-issues

place to write notes about investigation on android issues
0 stars 0 forks source link

db845c: android14-5.15-lts build error on KMI symbol and ABI issues #26

Open liuyq opened 6 months ago

liuyq commented 6 months ago

build error will be reported like this:

========================================================
 Creating system_dlkm image
========================================================
 Creating system_dlkm image
[430 / 435] Building kernel (lto=default;notrim) @//common:db845c_no_kgdb; 8s linux-sandbox
[430 / 435] Building kernel (lto=default;notrim) @//common:db845c_no_kgdb; 19s linux-sandbox
[430 / 435] Building kernel (lto=default;notrim) @//common:db845c_no_kgdb; 49s linux-sandbox
ERROR: /home/liuyq/data/android/lkft/common/BUILD.bazel:326:13: Building kernel (lto=default;notrim) @//common:db845c_no_kgdb failed: (Exit 2): bash failed: error executing KernelBuild command (from target //common:db845c_no_kgdb) /bin/bash -c ... (remaining 1 argument skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
In file included from <built-in>:1:
./usr/include/linux/bcache.h:354:2: warning: field '' with variable sized type 'union jset::(anonymous at ./usr/include/linux/bcache.h:354:2)' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end]
        BKEY_PADDED(uuid_bucket);
        ^
./usr/include/linux/bcache.h:134:2: note: expanded from macro 'BKEY_PADDED'
        union { struct bkey key; __u64 key ## _pad[BKEY_PAD]; }
        ^
./usr/include/linux/bcache.h:355:2: warning: field '' with variable sized type 'union jset::(anonymous at ./usr/include/linux/bcache.h:355:2)' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end]
        BKEY_PADDED(btree_root);
        ^
./usr/include/linux/bcache.h:134:2: note: expanded from macro 'BKEY_PADDED'
        union { struct bkey key; __u64 key ## _pad[BKEY_PAD]; }
        ^
2 warnings generated.
usr/include/linux/fuse.h:926: found __[us]{8,16,32,64} type without #include <linux/types.h>
ERROR: modpost: "devm_mipi_dsi_attach" [drivers/gpu/drm/bridge/lontium-lt9611uxc.ko] undefined!
ERROR: modpost: "devm_mipi_dsi_device_register_full" [drivers/gpu/drm/bridge/lontium-lt9611uxc.ko] undefined!
make[2]: *** [/home/liuyq/data/android/lkft/out/bazel/output_user_root/ad73d2b5965deb42838c757b4e74b429/sandbox/linux-sandbox/33/execroot/__main__/common/scripts/Makefile.modpost:157: modules-only.symvers] Error 1
make[2]: *** Deleting file 'modules-only.symvers'
make[1]: *** [/home/liuyq/data/android/lkft/out/bazel/output_user_root/ad73d2b5965deb42838c757b4e74b429/sandbox/linux-sandbox/33/execroot/__main__/common/Makefile:1873: modules] Error 2
make: *** [Makefile:244: __sub-make] Error 2
Target //common:db845c_dist failed to build
Use --verbose_failures to see the command lines of failed build steps.
ERROR: /home/liuyq/data/android/lkft/common/BUILD.bazel:395:17 Middleman _middlemen/common_Sdb845c_Udist-runfiles failed: (Exit 2): bash failed: error executing KernelBuild command (from target //common:db845c_no_kgdb) /bin/bash -c ... (remaining 1 argument skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
INFO: Elapsed time: 593.044s, Critical Path: 580.37s
INFO: 431 processes: 398 internal, 32 linux-sandbox, 1 local.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target
liuyq commented 6 months ago

the KMI symbol list could be updated with the following commands:

$ tools/bazel run //common:db845c_abi_update_symbol_list
$ tools/bazel run //common:kernel_aarch64_abi_update
$ tools/bazel run //common:kernel_aarch64_abi_update -- --commit