ubuntu-rockchip icon indicating copy to clipboard operation
ubuntu-rockchip copied to clipboard

build kernel error on `linux-rockchip`

Open wyf9661 opened this issue 1 year ago • 0 comments

hi, Joshua when I use tag 5.10.160-28 to build kernels, I find the error lever is too high and if a warning comes, the build will be finished.

fs/xfs/libxfs/xfs_attr_remote.c: In function '__xfs_attr3_rmt_read_verify':
fs/xfs/libxfs/xfs_attr_remote.c:140:35: warning: storing the address of local variable '__here' in '*failaddr' [-Wdangling-pointer=]
error, forbidden warning:xfs_attr_remote.c:140
  140 |                         *failaddr = __this_address;
In file included from ./fs/xfs/xfs.h:22,
                 from fs/xfs/libxfs/xfs_attr_remote.c:7:
./fs/xfs/xfs_linux.h:133:46: note: '__here' declared here
  133 | #define __this_address  ({ __label__ __here; __here: barrier(); &&__here; })
      |                                              ^~~~~~
fs/xfs/libxfs/xfs_attr_remote.c:140:37: note: in expansion of macro '__this_address'
  140 |                         *failaddr = __this_address;
      |                                     ^~~~~~~~~~~~~~
./fs/xfs/xfs_linux.h:133:46: note: 'failaddr' declared here
  133 | #define __this_address  ({ __label__ __here; __here: barrier(); &&__here; })
      |                                              ^~~~~~
fs/xfs/libxfs/xfs_attr_remote.c:140:37: note: in expansion of macro '__this_address'
  140 |                         *failaddr = __this_address;

maybe it is the reason that my gcc version is newer.

ivan@rockchip3588:~> gcc -v
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-unknown-linux-gnu/12.1.0/lto-wrapper
target:aarch64-unknown-linux-gnu
config:/build/gcc/src/gcc/configure --enable-languages=c,c++,fortran,go,lto,objc,obj-c++ --enable-bootstrap --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://githubfast.com/archlinuxarm/PKGBUILDs/issues --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-multilib --disable-werror --host=aarch64-unknown-linux-gnu --build=aarch64-unknown-linux-gnu --with-arch=armv8-a --enable-fix-cortex-a53-835769 --enable-fix-cortex-a53-843419
Supported LTO compression algorithms: zlib zstd
gcc version 12.1.0 (GCC)

I make some change to disable interpret_warning, can this be merged into your linux-rockchip?

wyf9661 avatar Jan 07 '24 13:01 wyf9661