Repository navigation
Closed
Labels
ADLApplies to Alder Lake platformApplies to Alder Lake platformICLApplies to IceLake platformApplies to IceLake platformTGLApplies to Tiger LakeApplies to Tiger LakeTGL-HTGL-H platformTGL-H platformZephyrIssues only observed with Zephyr integratedIssues only observed with Zephyr integratedbugSomething isn't working as expectedSomething isn't working as expected
Description
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.
Metadata
Metadata
Assignees
Labels
ADLApplies to Alder Lake platformApplies to Alder Lake platformICLApplies to IceLake platformApplies to IceLake platformTGLApplies to Tiger LakeApplies to Tiger LakeTGL-HTGL-H platformTGL-H platformZephyrIssues only observed with Zephyr integratedIssues only observed with Zephyr integratedbugSomething isn't working as expectedSomething isn't working as expected
Activity
lgirdwood commentedon Sep 1, 2021
@aiChaoSONG any reason why CI did not catch this ? (I assume we are not building Zephyr for ICL yet ?)
lgirdwood commentedon Sep 1, 2021
@kv2019i @lyakh fyi
aiChaoSONG commentedon Sep 1, 2021
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
CIin the title.[-][BUG] ICL build failure with zephyr and XCC[/-][+][BUG][CI] ICL build failure with zephyr and XCC[/+]lgirdwood commentedon Sep 1, 2021
Ok, can we add ICL to CI build.
aiChaoSONG commentedon Sep 1, 2021
@lgirdwood it is already there, for example, in PR #4705,

kv2019i commentedon Sep 1, 2021
A couple of notes:
xtensa-build-zephyr: disable XCC build for Intel ICL
soc: intel_adsp: fix linker script for cavs_v20
kv2019i commentedon Sep 1, 2021
Needs to be fixed on Zephyr side, fix in zephyrproject-rtos/zephyr#38201
keyonjie commentedon Sep 2, 2021
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 ?
aiChaoSONG commentedon Sep 2, 2021
The build failure on zephyr has no impact on test other than zephyr.
11 remaining items
lgirdwood commentedon Sep 6, 2021
Closed by mistake - changed title.
[-][BUG][CI] ICL build failure with zephyr and XCC[/-][+][BUG][CI] ICL and TGL-H build failure with zephyr and XCC[/+]aiChaoSONG commentedon Sep 7, 2021
related Zephyr issue: zephyrproject-rtos/zephyr#38349
marc-hb commentedon Sep 7, 2021
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.
kv2019i commentedon Sep 7, 2021
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
kv2019i commentedon Sep 10, 2021
This is fixed now in main, closing.
soc: intel_adsp: fix linker script for cavs_v20