On 25/09/16 09:56PM, Naresh Kamboju wrote:
On Tue, 16 Sept 2025 at 11:17, Naresh Kamboju naresh.kamboju@linaro.org wrote:
The following build warnings / errors noticed on the arm arm64 and x86_64 with rust config build on the Linux next-20250915 tag.
First seen on next-20250915 Good: next-20250912 Bad: next-20250915
Regression Analysis:
- New regression? yes
- Reproducibility? yes
arm, build
- rustclang-lkftconfig-kselftest
- rustgcc-lkftconfig-kselftest
arm64, build
- rustclang-lkftconfig-kselftest
- rustgcc-lkftconfig-kselftest
x86_64, build
- rustgcc-lkftconfig-kselftest
- rustclang-nightly-lkftconfig-kselftest
Build regression: next-20250915: error[E0425]: cannot find function `atomic_read_acquire` in crate `bindings`
Anders bisected this build regressions and found,
# first bad commit: [eb57133305f61b612252382d0c1478bba7f57b67] rust: sync: Add basic atomic operation mapping framework
Is this still an issue on next-20250916? As far as I can tell this has been fixed, but now there is another rust build issue, see https://lore.kernel.org/regressions/0fee48bb-7411-4414-b4e7-395a8c3d0f6c@heu... for more information.
Cheers, Chris
Reported-by: Linux Kernel Functional Testing lkft@linaro.org
## Build log error[E0425]: cannot find function `atomic_read_acquire` in crate `bindings` --> rust/kernel/sync/atomic/internal.rs:124:37 | 124 | $unsafe { bindings::[< $ctype _ $func >]($($c_arg,)*) } | ^^^^^^^^^^^^^^^^^^^^ not found in `bindings` ... 201 | / declare_and_impl_atomic_methods!( 202 | | /// Basic atomic operations 203 | | pub trait AtomicBasicOps { 204 | | /// Atomic read (load). ... | 216 | | ); | |_- in this macro invocation | = note: this error originates in the macro `impl_atomic_method` which comes from the expansion of the macro `declare_and_impl_atomic_methods` (in Nightly builds, run with -Z macro-backtrace for more info) error: aborting due to 34 previous errors
For more information about this error, try `rustc --explain E0425`. make[3]: *** [rust/Makefile:553: rust/kernel.o] Error 1
## Source
- Kernel version: 6.17.0-rc6
- Git tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/next/linux-next.git
- Git describe: 6.17.0-rc6-next-20250915
- Git commit: c3067c2c38316c3ef013636c93daa285ee6aaa2e
- Architectures: arm, arm64 and x86_64
- Toolchains: gcc (Debian 15.2.0-3) 15.2.0
- Kconfigs: rust config
## Build
- Build log: https://qa-reports.linaro.org/api/testruns/29894207/log_file/
- Build details:
https://regressions.linaro.org/lkft/linux-next-master/next-20250915/build/ru...
- Build plan: https://tuxapi.tuxsuite.com/v1/groups/linaro/projects/lkft/builds/32l4UDzp0F...
- Build link: https://storage.tuxsuite.com/public/linaro/lkft/builds/32l4UDzp0FMtS73JeG3kW...
- Kernel config:
https://storage.tuxsuite.com/public/linaro/lkft/builds/32l4UDzp0FMtS73JeG3kW...
-- Linaro LKFT
- Naresh