[PATCH v2 00/10] crypto: Kconfig - simplify menus and help text

Elliott, Robert (Servers) elliott at hpe.com
Mon Aug 29 23:59:36 AEST 2022



> -----Original Message-----
> From: Christophe Leroy <christophe.leroy at csgroup.eu>
> Sent: Monday, August 29, 2022 3:53 AM
> To: Elliott, Robert (Servers) <elliott at hpe.com>; Nayna
> <nayna at linux.vnet.ibm.com>; Andrew Donnellan <ajd at linux.ibm.com>
> Cc: linuxppc-dev at lists.ozlabs.org
> Subject: Re: [PATCH v2 00/10] crypto: Kconfig - simplify menus and help
> text
> 
> Le 29/08/2022 à 02:05, Elliott, Robert (Servers) a écrit :
> >
> >> -----Original Message-----
> >> From: Christophe Leroy <christophe.leroy at csgroup.eu>
> >> Sent: Sunday, August 28, 2022 2:33 AM
> >> To: Elliott, Robert (Servers) <elliott at hpe.com>; Nayna
> >> <nayna at linux.vnet.ibm.com>; Andrew Donnellan <ajd at linux.ibm.com>
> >> Cc: linuxppc-dev at lists.ozlabs.org
> >> Subject: Re: [PATCH v2 00/10] crypto: Kconfig - simplify menus and help
> >> text
> >>
> >> Le 27/08/2022 à 22:06, Elliott, Robert (Servers) a écrit :
> >>> (adding Christophe, per
> >>> bba496656a73fc1 ("powerpc/32: Fix boot failure with GCC latent entropy
> >> plugin")
> >>>
> >>> Adding libmpc-devel gets all the architectures building except powerpc.
> >>>
> >>> (I also installed gcc-plugins-devel to get the native x86
> >>> build to detect plugins.)
> >>>
> >>> However, powerpc still fails to build. Several of the Linux standard
> >>> include files end up including nodemask.h, which includes random.h,
> >>> which has a problem finding a global called latent_entropy while
> >>> building init/main.o:
> >>
> >> Isn't it fixed in mainline by commit 012e8d2034f1 ("gcc-plugins:
> >> Undefine LATENT_ENTROPY_PLUGIN when plugin disabled for a file") ?
> >
> > Yes, adding that patch fixes this particular problem. Thanks!
> >
> > Next up is:
> > Cannot find symbol for section 94: .text.free_initmem.
> > init/main.o: failed
> > make[2]: *** [../scripts/Makefile.build:249: init/main.o] Error 1
> >
> 
> Can you please provide some context, which .config, which version of
> gcc/binutils etc ....
> 
> FWIW, free_initmem() is supposed to be in arch/powerpc/mm/mem.o

I'm running the same commands for each architecture:
make ARCH=powerpc O=build-powerpc CROSS_COMPILE=powerpc64-linux-gnu- clean
make ARCH=powerpc O=build-powerpc CROSS_COMPILE=powerpc64-linux-gnu- mrproper
make ARCH=powerpc O=build-powerpc CROSS_COMPILE=powerpc64-linux-gnu- allmodconfig
make ARCH=powerpc O=build-powerpc CROSS_COMPILE=powerpc64-linux-gnu- olddefconfig
make ARCH=powerpc O=build-powerpc CROSS_COMPILE=powerpc64-linux-gnu- -j 55

For 6.0-rc3 (which includes 012e8d2034f1), that works for
    arm, arm64, sparc, and s390
but fails for
    mips, powerpc, and x86.

mips complains about:
../include/linux/fortify-string.h:44:33: error: ‘__builtin_memcmp’ specified bound 6 exceeds source size 0 [-W
error=stringop-overread]
   44 | #define __underlying_memcmp     __builtin_memcmp
      |                                 ^

x86 complains about:
You are building kernel with non-retpoline compiler.
Please update your compiler.

(I'm using gcc 12.2.1, from Fedora 36)

For powerpc, these are the error/failed/Cannot lines:

Cannot find symbol for section 19: .text.create_section_mapping.
Cannot find symbol for section 94: .text.free_initmem.
Cannot find symbol for section 27: .text.copy_from_kernel_nofault_allowed.
Cannot find symbol for section 31: .text.arch_suspend_disable_irqs.
Cannot find symbol for section 53: .text.arch_resume_nosmt.
Cannot find symbol for section 223: .text.arch_cpu_idle_prepare.
Cannot find symbol for section 44: .text.arch_show_interrupts.
Cannot find symbol for section 183: .text.arch_asym_cpu_priority.
Cannot find symbol for section 157: .text.module_arch_cleanup.
Cannot find symbol for section 13: .text.sched_clock.
Cannot find symbol for section 10: .text.arch_report_meminfo.
Cannot find symbol for section 18: .text.dereference_module_function_descriptor.

../arch/powerpc/boot/dts/bluestone.dts:272.13-277.7: Warning (i2c_bus_reg): /plb/opb/i2c at ef600700/sttm at 4C: I2C bus unit address format error, expected "4c"
../arch/powerpc/boot/dts/fsl/mpc8541cds.dts:341.15-350.5: Warning (pci_device_reg): /pci at e0008000/i8259 at 19000: PCI unit address format error, expected "12,0"
../arch/powerpc/boot/dts/fsl/mpc8555cds.dts:341.15-350.5: Warning (pci_device_reg): /pci at e0008000/i8259 at 19000: PCI unit address format error, expected "12,0"
../arch/powerpc/boot/dts/mgcoge.dts:230.14-234.7: Warning (spi_bus_reg): /soc at f0000000/cpm at 119c0/spi at 11aa0/ds3106 at 1: SPI bus unit address format error, expected "0"
../arch/powerpc/boot/dts/fsl/p1020rdb-pd.dts:189.11-193.6: Warning (spi_bus_reg): /soc at ffe00000/spi at 7000/slic at 0: SPI bus unit address format error, expected "1"
../arch/powerpc/boot/dts/fsl/p1020rdb-pd.dts:195.11-199.6: Warning (spi_bus_reg): /soc at ffe00000/spi at 7000/slic at 1: SPI bus unit address format error, expected "2"
../arch/powerpc/boot/dts/stxssa8555.dts:340.15-349.5: Warning (pci_device_reg): /pci at e0008000/i8259 at 19000: PCI unit address format error, expected "12,0"

arch/powerpc/mm/mem.o: failed
init/main.o: failed
mm/maccess.o: failed
kernel/power/suspend.o: failed
kernel/power/hibernate.o: failed
kernel/sched/build_policy.o: failed
kernel/irq/proc.o: failed
kernel/sched/fair.o: failed
kernel/module/main.o: failed
kernel/sched/build_utility.o: failed
fs/proc/meminfo.o: failed
kernel/module/kallsyms.o: failed

make[3]: *** [../scripts/Makefile.build:249: arch/powerpc/mm/mem.o] Error 1
make[2]: *** [../scripts/Makefile.build:249: init/main.o] Error 1
make[1]: *** [/home/orange/linux/Makefile:1853: init] Error 2
make[2]: *** [../scripts/Makefile.build:249: mm/maccess.o] Error 1
make[3]: *** [../scripts/Makefile.build:249: kernel/power/suspend.o] Error 1
make[1]: *** [/home/orange/linux/Makefile:1853: mm] Error 2
make[3]: *** [../scripts/Makefile.build:249: kernel/power/hibernate.o] Error 1
make[2]: *** [../scripts/Makefile.build:465: kernel/power] Error 2
make[3]: *** [../scripts/Makefile.build:249: kernel/sched/build_policy.o] Error 1
make[3]: *** [../scripts/Makefile.build:249: kernel/irq/proc.o] Error 1
make[2]: *** [../scripts/Makefile.build:465: arch/powerpc/mm] Error 2
make[3]: *** [../scripts/Makefile.build:249: kernel/sched/fair.o] Error 1
make[2]: *** [../scripts/Makefile.build:465: kernel/irq] Error 2
make[3]: *** [../scripts/Makefile.build:249: kernel/module/main.o] Error 1
make[3]: *** [../scripts/Makefile.build:249: kernel/sched/build_utility.o] Error 1
make[2]: *** [../scripts/Makefile.build:465: kernel/sched] Error 2
make[3]: *** [../scripts/Makefile.build:249: fs/proc/meminfo.o] Error 1
make[3]: *** [../scripts/Makefile.build:249: kernel/module/kallsyms.o] Error 1
make[2]: *** [../scripts/Makefile.build:465: kernel/module] Error 2
make[2]: *** [../scripts/Makefile.build:465: fs/proc] Error 2
make[1]: *** [/home/orange/linux/Makefile:1853: kernel] Error 2
make[1]: *** [/home/orange/linux/Makefile:1853: arch/powerpc] Error 2
make[1]: *** [/home/orange/linux/Makefile:1853: fs] Error 2
make: *** [Makefile:222: __sub-make] Error 2




More information about the Linuxppc-dev mailing list