воскресенье

[Bug 2154343] Re: ubuntu_bpf: FTBFS with clang 23 / gcc 15

This bug is awaiting verification that the linux-nvidia/7.0.0-1016.16 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-resolute-linux-nvidia' to 'verification-done- resolute-linux-nvidia'. If the problem still exists, change the tag 'verification-needed-resolute-linux-nvidia' to 'verification-failed- resolute-linux-nvidia'. If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you! ** Tags added: kernel-spammed-resolute-linux-nvidia-v2 verification-needed-resolute-linux-nvidia -- You received this bug notification because you are subscribed to linux in Ubuntu. Matching subscriptions: Bgg, Bmail, Nb https://bugs.launchpad.net/bugs/2154343 Title: ubuntu_bpf: FTBFS with clang 23 / gcc 15 Status in ubuntu-kernel-tests: Fix Released Status in linux package in Ubuntu: Invalid Status in linux source package in Resolute: Fix Released Bug description: [Impact] tools/testing/selftests/bpf/prog_tests/fexit_bpf2bpf.c:117:12: error: assigning to 'char *' from 'const char *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] [Fix] Apply the upstream fix: ``` commit ca0f39a369c5f927c3d004e63a5a778b08a9df94 Author: Varun R Mallya <varunrmallya@gmail.com> Date: Fri Mar 6 03:51:32 2026 +0530 selftests/bpf: Fix const qualifier warning in fexit_bpf2bpf.c Building selftests with clang 23.0.0 (6fae863eba8a72cdd82f37e7111a46a70be525e0) triggers the following error: tools/testing/selftests/bpf/prog_tests/fexit_bpf2bpf.c:117:12: error: assigning to 'char *' from 'const char *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] The variable `tgt_name` is declared as `char *`, but it stores the result of strstr(prog_name[i], "/"). Since `prog_name[i]` is a `const char *`, the returned pointer should also be treated as const-qualified. Update `tgt_name` to `const char *` to match the type of the underlying string and silence the compiler warning. ``` [How to reproduce] Run test again after applying the patch [Regression potential] Low: clean upstream cherry-pick for a known issue. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/2154343/+subscriptions

Комментариев нет:

Отправить комментарий