Skip to contentSkip to conversation

linux-next: build failure after merge of the sound-asoc tree

DISCUSSION Stephen Rothwell 4 participants 8 messages Apr 23, 2020 – Apr 27, 2020 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the sound-asoc tree, today's linux-next build (powerpc allyesconfig) failed like this:

ld: sound/soc/sof/imx/imx8.o: in function `.imx8_run':
imx8.c:(.text.imx8_run+0x40): undefined reference to `.imx_sc_misc_set_control'
ld: imx8.c:(.text.imx8_run+0xac): undefined reference to `.imx_sc_pm_cpu_start'
ld: sound/soc/sof/imx/imx8.o: in function `.imx8x_run':
imx8.c:(.text.imx8x_run+0x40): undefined reference to `.imx_sc_misc_set_control'
ld: imx8.c:(.text.imx8x_run+0xa8): undefined reference to `.imx_sc_misc_set_control'
ld: imx8.c:(.text.imx8x_run+0x108): undefined reference to `.imx_sc_misc_set_control'
ld: imx8.c:(.text.imx8x_run+0x168): undefined reference to `.imx_sc_misc_set_control'
ld: imx8.c:(.text.imx8x_run+0x1cc): undefined reference to `.imx_sc_pm_cpu_start'
ld: sound/soc/sof/imx/imx8.o: in function `.imx8_probe':
imx8.c:(.text.imx8_probe+0x2c8): undefined reference to `.imx_scu_get_handle'

Presumably caused by (one of) commits

fe17e6cdc0fe ("ASoC: SOF: imx8: Fix randbuild error") cb0312f61c3e ("ASoC: SOF: imx: fix undefined reference issue")

I just removed the COMPILE_TEST from SND_SOC_SOF_IMX_TOPLEVEL for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
maintainer
#1 lore raw
Quoted 6 lines · Stephen Rothwell

Presumably caused by (one of) commits

fe17e6cdc0fe ("ASoC: SOF: imx8: Fix randbuild error") cb0312f61c3e ("ASoC: SOF: imx: fix undefined reference issue")

I just removed the COMPILE_TEST from SND_SOC_SOF_IMX_TOPLEVEL for today.

It looks like this is triggered by PowerPC not including drivers/firmware - there are missing dependencies but it works for other all*configs since the dependencies all get built in those. It would be helpful if PowerPC were fixed to include the firmware directory to improve coverage.

#2 lore raw
Quoted 7 lines · Mark Brown
Quoted 4 lines · Stephen Rothwell

Presumably caused by (one of) commits

fe17e6cdc0fe ("ASoC: SOF: imx8: Fix randbuild error") cb0312f61c3e ("ASoC: SOF: imx: fix undefined reference issue")

Quoted 7 lines
Quoted 1 line

I just removed the COMPILE_TEST from SND_SOC_SOF_IMX_TOPLEVEL for today.

It looks like this is triggered by PowerPC not including drivers/firmware - there are missing dependencies but it works for other all*configs since the dependencies all get built in those. It would be helpful if PowerPC were fixed to include the firmware directory to improve coverage.

We have a fix for this, I'll send it later today. There were still unmet dependencies and inconsistent use of select/depends.

maintainer
#3 lore raw
Quoted 2 lines · Pierre-Louis Bossart

We have a fix for this, I'll send it later today. There were still unmet dependencies and inconsistent use of select/depends.

I've already done a fix for the immediate issue which I'm about to send out so that it's in before Stephen starts again tomorrow but obviously better fixes on top of that would be good.

#4 lore raw
In reply to Mark Brown

Hi Mark,

Quoted 8 lines · On Thu, 23 Apr 2020 12:30:41 +0100 Mark Brown <[email protected]> wrote:
Quoted 4 lines · Stephen Rothwell

Presumably caused by (one of) commits

fe17e6cdc0fe ("ASoC: SOF: imx8: Fix randbuild error") cb0312f61c3e ("ASoC: SOF: imx: fix undefined reference issue")

Quoted 7 lines
Quoted 1 line

I just removed the COMPILE_TEST from SND_SOC_SOF_IMX_TOPLEVEL for today.

It looks like this is triggered by PowerPC not including drivers/firmware - there are missing dependencies but it works for other all*configs since the dependencies all get built in those. It would be helpful if PowerPC were fixed to include the firmware directory to improve coverage.

$ git grep drivers/firmware 'arch/*/*Kconfig*'
arch/arm/Kconfig:source "drivers/firmware/Kconfig"
arch/arm64/Kconfig:source "drivers/firmware/Kconfig"
arch/ia64/Kconfig:source "drivers/firmware/Kconfig"
arch/mips/Kconfig:source "drivers/firmware/Kconfig"
arch/x86/Kconfig:source "drivers/firmware/Kconfig"

so, sure, it works for some architectures. We would need someone to do the work to make sure that adding drivers/firmware to all the others does not break other stuff. Until then, please add the needed dependencies.

Thanks.

Signature · 2 lines
Cheers,
Stephen Rothwell
maintainer
#5 lore raw
Quoted 15 lines · Stephen Rothwell
Quoted 5 lines · On Thu, 23 Apr 2020 12:30:41 +0100 Mark Brown <[email protected]> wrote:

It looks like this is triggered by PowerPC not including drivers/firmware - there are missing dependencies but it works for other all*configs since the dependencies all get built in those. It would be helpful if PowerPC were fixed to include the firmware directory to improve coverage.

$ git grep drivers/firmware 'arch/*/*Kconfig*'
arch/arm/Kconfig:source "drivers/firmware/Kconfig"
arch/arm64/Kconfig:source "drivers/firmware/Kconfig"
arch/ia64/Kconfig:source "drivers/firmware/Kconfig"
arch/mips/Kconfig:source "drivers/firmware/Kconfig"
arch/x86/Kconfig:source "drivers/firmware/Kconfig"
Quoted 4 lines

so, sure, it works for some architectures. We would need someone to do the work to make sure that adding drivers/firmware to all the others does not break other stuff. Until then, please add the needed dependencies.

I am doing that but that still doesn't mean that the architectures shouldn't be updated - to me this is like the architectures that don't implement standard APIs, we should fix the issues they bring up but it'd be a lot less noisy to sidestep the issue.

#6 lore raw
Quoted 21 lines · Mark Brown
Quoted 15 lines · Stephen Rothwell
Quoted 5 lines · On Thu, 23 Apr 2020 12:30:41 +0100 Mark Brown <[email protected]> wrote:

It looks like this is triggered by PowerPC not including drivers/firmware - there are missing dependencies but it works for other all*configs since the dependencies all get built in those. It would be helpful if PowerPC were fixed to include the firmware directory to improve coverage.

$ git grep drivers/firmware 'arch/*/*Kconfig*'
arch/arm/Kconfig:source "drivers/firmware/Kconfig"
arch/arm64/Kconfig:source "drivers/firmware/Kconfig"
arch/ia64/Kconfig:source "drivers/firmware/Kconfig"
arch/mips/Kconfig:source "drivers/firmware/Kconfig"
arch/x86/Kconfig:source "drivers/firmware/Kconfig"
Quoted 4 lines

so, sure, it works for some architectures. We would need someone to do the work to make sure that adding drivers/firmware to all the others does not break other stuff. Until then, please add the needed dependencies.

Quoted 4 lines

I am doing that but that still doesn't mean that the architectures shouldn't be updated - to me this is like the architectures that don't implement standard APIs, we should fix the issues they bring up but it'd be a lot less noisy to sidestep the issue.

I don't think it's really like architectures that don't implement standard APIs.

It's more like architectures not building code they don't need, AFAICS none of the drivers under there can ever be used on powerpc.

Similarly we don't build drivers/acpi.

But if there's a good reason that we should be building it then I'm happy to take a patch adding it.

cheers

maintainer
#7 lore raw
Quoted 7 lines · Michael Ellerman
Quoted 4 lines · Mark Brown

I am doing that but that still doesn't mean that the architectures shouldn't be updated - to me this is like the architectures that don't implement standard APIs, we should fix the issues they bring up but it'd be a lot less noisy to sidestep the issue.

Quoted 5 lines

I don't think it's really like architectures that don't implement standard APIs.

It's more like architectures not building code they don't need, AFAICS none of the drivers under there can ever be used on powerpc.

That's generally the reason people give for not doing the standard APIs
- there were a few architectures that didn't have DMA hardware so didn't even have stubs for the DMA API for example, until those were added you used to end up with build testing tripping over them constantly. It's much rarer to have an incompatible implementation of the same thing.

Quoted 1 line

Similarly we don't build drivers/acpi.

ACPI has stubs so doesn't cause issues here.

Quoted 2 lines

But if there's a good reason that we should be building it then I'm happy to take a patch adding it.

The build coverage seems useful.