Skip to content

[BUG][CI] ICL and TGL-H build failure with zephyr and XCC #4703

Closed

Description

@aiChaoSONG

This bug has been used to track two separate issues - 1) a ICL/cavs20 linker issue and 2) a more recent linker issue that affects all cAVS platforms. As of 7th Sep, we now use this to track (2) and basicly this is clone of Zephyr bug:
zephyrproject-rtos/zephyr#38349

ICL build failed with zephyr and XCC

/srv/home/jenkins/workspace/sof_generic_build/zephyrproject
/srv/home/jenkins/workspace/sof_generic_build/zephyrproject
+ west build --build-dir build-icl --board intel_adsp_cavs20 zephyr/samples/subsys/audio/sof
[2/10] Linking C executable zephyr/zephyr_prebuilt.elf
FAILED: zephyr/zephyr_prebuilt.elf zephyr/zephyr_prebuilt.map /srv/home/jenkins/workspace/sof_generic_build/zephyrproject/build-icl/zephyr/zephyr_prebuilt.map 
: && ccache /srv/home/jenkins/xcc/install/tools/RG-2017.8-linux/XtensaTools/bin/xt-xcc   zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj -o zephyr/zephyr_prebuilt.elf  zephyr/CMakeFiles/offsets.dir/./arch/xtensa/core/offsets/offsets.c.obj  -Wl,-T  zephyr/linker_zephyr_prebuilt.cmd  -Wl,-Map=/srv/home/jenkins/workspace/sof_generic_build/zephyrproject/build-icl/zephyr/zephyr_prebuilt.map  -Wl,--whole-archive  app/libapp.a  zephyr/libzephyr.a  zephyr/arch/common/libarch__common.a  zephyr/arch/arch/xtensa/core/libarch__xtensa__core.a  zephyr/arch/arch/xtensa/core/startup/libarch__xtensa__core__startup.a  zephyr/lib/libc/minimal/liblib__libc__minimal.a  zephyr/lib/posix/liblib__posix.a  zephyr/soc/xtensa/intel_adsp/common/libintel_adsp_common.a  zephyr/drivers/interrupt_controller/libdrivers__interrupt_controller.a  zephyr/drivers/ipm/libdrivers__ipm.a  zephyr/drivers/timer/libdrivers__timer.a  modules/sof/libmodules_sof.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  -L/srv/home/jenkins/workspace/sof_generic_build/zephyrproject/build-icl/zephyr  -lgcc  -lhal  zephyr/arch/common/libisr_tables.a  zephyr/soc/xtensa/intel_adsp/common/libintel_adsp_common.a  -Wl,--gc-sections  -Wl,--build-id=none  -Wl,--sort-common=descending  -Wl,--sort-section=alignment  -Wl,-u,_OffsetAbsSyms  -Wl,-u,_ConfigAbsSyms  -nostdlib  -static  -Wl,-X  -Wl,-N && cd /srv/home/jenkins/workspace/sof_generic_build/zephyrproject/build-icl/zephyr && /usr/bin/cmake -E echo
zephyr/linker_zephyr_prebuilt.cmd:436: non constant or forward reference address expression for section .noinit
ninja: build stopped: subcommand failed.

Activity

  1. added
    bugSomething isn't working as expected
    on Sep 1, 2021
  2. lgirdwood commented on Sep 1, 2021

    @lgirdwood
    Member

    @aiChaoSONG any reason why CI did not catch this ? (I assume we are not building Zephyr for ICL yet ?)

  3. lgirdwood commented on Sep 1, 2021

    @lgirdwood
    Member
  4. aiChaoSONG commented on Sep 1, 2021

    @aiChaoSONG
    CollaboratorAuthor

    @aiChaoSONG any reason why CI did not catch this ? (I assume we are not building Zephyr for ICL yet ?)

    We don't test ICL Zephyr SOF in PR, but we do build it in daily, and the failure is observed in daily build.

    edit: Maybe I should add CI in the title.

  5. changed the title [-][BUG] ICL build failure with zephyr and XCC[/-] [+][BUG][CI] ICL build failure with zephyr and XCC[/+] on Sep 1, 2021
  6. lgirdwood commented on Sep 1, 2021

    @lgirdwood
    Member

    We don't test ICL Zephyr SOF in PR, but we do build it in daily, and the failure is observed in daily build.

    Ok, can we add ICL to CI build.

  7. aiChaoSONG commented on Sep 1, 2021

    @aiChaoSONG
    CollaboratorAuthor

    @lgirdwood it is already there, for example, in PR #4705,
    Screenshot_20210901_171445

  8. kv2019i commented on Sep 1, 2021

    @kv2019i
    Collaborator

    A couple of notes:

  9. added
    ZephyrIssues only observed with Zephyr integrated
    ICLApplies to IceLake platform
    on Sep 1, 2021
  10. kv2019i commented on Sep 1, 2021

    @kv2019i
    Collaborator

    Needs to be fixed on Zephyr side, fix in zephyrproject-rtos/zephyr#38201

  11. keyonjie commented on Sep 2, 2021

    @keyonjie
    Contributor

    Can we at least remove the dependency of running on device test from the Zephyr building success, to unblock the CI PR test?
    Or we should locally manage a downstream zephyr version where we can fix this kind of issues easily when needed? @kv2019i @lyakh @lgirdwood ?

  12. aiChaoSONG commented on Sep 2, 2021

    @aiChaoSONG
    CollaboratorAuthor

    Can we at least remove the dependency of running on device test from the Zephyr building success, to unblock the CI PR test?
    Or we should locally manage a downstream zephyr version where we can fix this kind of issues easily when needed? @kv2019i @lyakh @lgirdwood ?

    The build failure on zephyr has no impact on test other than zephyr.

  13. 11 remaining items

  14. lgirdwood commented on Sep 6, 2021

    @lgirdwood
    Member

    Closed by mistake - changed title.

  15. changed the title [-][BUG][CI] ICL build failure with zephyr and XCC[/-] [+][BUG][CI] ICL and TGL-H build failure with zephyr and XCC[/+] on Sep 6, 2021
  16. aiChaoSONG commented on Sep 7, 2021

    @aiChaoSONG
    CollaboratorAuthor

    related Zephyr issue: zephyrproject-rtos/zephyr#38349

  17. marc-hb commented on Sep 7, 2021

    @marc-hb
    Collaborator

    It's the same error message but I doubt it's the same failure. The original issue affected only ICL with both GCC and XCC. It was fixed by zephyrproject-rtos/zephyr#38201 and everything was building just fine. Then, later, a completely different Zephyr PR was merged and it caused zephyrproject-rtos/zephyr#38349 which fails in different places.

  18. kv2019i commented on Sep 7, 2021

    @kv2019i
    Collaborator

    Agree with @marc-hb , better to keep one bug per issue. We had two separate issues, one was a specific bug in cavs20 linker script. And now a more recent Zephyr regression that causes all cAVS XCC builds to fail. But yeah, water under the bridge, so let's keep this bug open. Basicly this is a SOF copy of zephyrproject-rtos/zephyr#38349

  19. added
    ADLApplies to Alder Lake platform
    TGLApplies to Tiger Lake
    TGL-HTGL-H platform
    on Sep 7, 2021
  20. kv2019i commented on Sep 10, 2021

    @kv2019i
    Collaborator

    This is fixed now in main, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ADLApplies to Alder Lake platformICLApplies to IceLake platformTGLApplies to Tiger LakeTGL-HTGL-H platformZephyrIssues only observed with Zephyr integratedbugSomething isn't working as expected

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions