Page MenuHomePhabricator

Build fail with CLANG for rpi4 on current mainline
Open, Needs TriagePublic

Description

/bin/bash -c "M0_CROSS_COMPILE=/media/user/T7/GloDroid-v0.7.0/prebuilts/gcc/linux-x86/arm/gcc-linaro-arm-eabi/bin/arm-eabi- PATH=/usr/bin:/bin:/sbin:\$PATH ARCH=arm64 CROSS_COMPILE=/media/user/T7/GloDroi
d-v0.7.0/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-aarch64-linux-gnu/bin/aarch64-linux-gnu- make -j4 CC=/media/user/T7/GloDroid-v0.7.0/prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang HOSTCC=/me
dia/user/T7/GloDroid-v0.7.0/prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang LD=/media/user/T7/GloDroid-v0.7.0/prebuilts/clang/host/linux-x86/clang-r416183b1/bin/ld.lld -C external/arm-trusted-fi
rmware BUILD_BASE=/media/user/T7/GloDroid-v0.7.0/out/target/product/rpi4/obj/ATF_OBJ PLAT=rpi4 DEBUG=1 bl31"
make: Entering directory '/media/user/T7/GloDroid-v0.7.0/external/arm-trusted-firmware'
  CC      bl31/bl31_context_mgmt.c
  CC      bl31/bl31_main.c
  CC      bl31/interrupt_mgmt.c
  CC      common/fdt_fixup.c
  CC      common/runtime_svc.c
  CC      drivers/arm/gic/v2/gicdv2_helpers.c
  CC      drivers/arm/gic/v2/gicv2_helpers.c
  CC      drivers/arm/gic/v2/gicv2_main.c
  CC      drivers/delay_timer/delay_timer.c
  CC      drivers/gpio/gpio.c
  CC      drivers/rpi3/gpio/rpi3_gpio.c
  CC      lib/cpus/errata_report.c
  CC      lib/el3_runtime/aarch64/context_mgmt.c
  CC      lib/el3_runtime/cpu_data_array.c
  CC      lib/extensions/spe/spe.c
  CC      lib/extensions/sve/sve.c
  CC      lib/libfdt/fdt.c
  CC      lib/libfdt/fdt_addresses.c
  CC      lib/libfdt/fdt_empty_tree.c
  CC      lib/libfdt/fdt_ro.c
  CC      lib/libfdt/fdt_rw.c
  CC      lib/libfdt/fdt_strerror.c
  CC      lib/libfdt/fdt_sw.c
  CC      lib/libfdt/fdt_wip.c
  CC      lib/locks/bakery/bakery_lock_coherent.c
  CC      lib/psci/psci_common.c
  CC      lib/psci/psci_main.c
  CC      lib/psci/psci_mem_protect.c
  CC      lib/psci/psci_off.c
  CC      lib/psci/psci_on.c
  CC      lib/psci/psci_setup.c
  CC      lib/psci/psci_suspend.c
  CC      lib/psci/psci_system_off.c
  CC      plat/common/plat_gicv2.c
  CC      plat/common/plat_psci_common.c
  CC      plat/rpi/common/rpi3_pm.c
  CC      plat/rpi/common/rpi3_topology.c
plat/rpi/common/rpi3_pm.c:268:29: error: initializer overrides prior initialization of this subobject [-Werror,-Winitializer-overrides]
        .pwr_domain_pwr_down_wfi = rpi3_pwr_down_wfi,
                                   ^~~~~~~~~~~~~~~~~
plat/rpi/common/rpi3_pm.c:265:29: note: previous initialization is here
        .pwr_domain_pwr_down_wfi = rpi3_pwr_domain_pwr_down_wfi,
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.