loongson-community / linux-stable

Linux kernel source tree for Loongson
Other
67 stars 21 forks source link

[Kernel] fields must have a constant size: 'variable length array in structure' extension will never be supported #14

Open xiangzhai opened 6 years ago

xiangzhai commented 6 years ago

Hi Loonger,

$ make CC=/opt/loong-llvm/bin/clang
clang-7: warning: argument unused during compilation: '-Wa,-msoft-float' [-Wunused-command-line-argument]
clang-7: warning: argument unused during compilation: '-Wa,--trap' [-Wunused-command-line-argument]
clang-7: warning: argument unused during compilation: '-Wa,-mno-fix-loongson3-llsc' [-Wunused-command-line-argument]
clang-7: warning: argument unused during compilation: '-mno-branch-likely' [-Wunused-command-line-argument]
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  Checking missing-syscalls for N32
  CHK     include/generated/timeconst.h
  CHK     include/generated/bounds.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  Checking missing-syscalls for O32
  CHK     include/generated/timeconst.h
  CHK     include/generated/bounds.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
arch/mips/vdso/Makefile:31: MIPS VDSO requires binutils >= 2.25
  DTC     arch/mips/boot/dts/loongson/loongson3_ls2h.dtb
  DTB     arch/mips/boot/dts/loongson/loongson3_ls2h.dtb.S
  AS      arch/mips/boot/dts/loongson/loongson3_ls2h.dtb.o
  DTC     arch/mips/boot/dts/loongson/loongson3_ls7a.dtb
  DTB     arch/mips/boot/dts/loongson/loongson3_ls7a.dtb.S
  AS      arch/mips/boot/dts/loongson/loongson3_ls7a.dtb.o
  DTC     arch/mips/boot/dts/loongson/loongson3_rs780.dtb
  DTB     arch/mips/boot/dts/loongson/loongson3_rs780.dtb.S
  AS      arch/mips/boot/dts/loongson/loongson3_rs780.dtb.o
  LD      arch/mips/boot/dts/loongson/built-in.o
rm arch/mips/boot/dts/loongson/loongson3_ls7a.dtb.S arch/mips/boot/dts/loongson/loongson3_rs780.dtb.S arch/mips/boot/dts/loongson/loongson3_ls2h.dtb arch/mips/boot/dts/loongson/loongson3_ls2h.dtb.S arch/mips/boot/dts/loongson/loongson3_ls7a.dtb arch/mips/boot/dts/loongson/loongson3_rs780.dtb
  LD      arch/mips/boot/dts/built-in.o
  CC [M]  drivers/md/raid10.o
drivers/md/raid10.c:4583:17: error: fields must have a constant size: 'variable length array in structure'
      extension will never be supported
                struct r10dev devs[conf->copies];
                              ^
1 error generated.
scripts/Makefile.build:302: recipe for target 'drivers/md/raid10.o' failed
make[2]: *** [drivers/md/raid10.o] Error 1

Regards, Leslie Zhai

nickdesaulniers commented 6 years ago

We've been removing VLAIS from the kernel. Check Kees' latest patch to exofs.

xiangzhai commented 6 years ago

Hi @nickdesaulniers

Thanks for your response!

I will migrate it.

Regards, Leslie Zhai