Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursive dependency detected with bmc2711_defconfig on rpi-5.10.y branch #4036

Closed
graysky2 opened this issue Dec 31, 2020 · 8 comments
Closed

Comments

@graysky2
Copy link

Describe the bug
The bmc2711_defconfig target causes a recursive dependency.

To reproduce

  1. Checkout 7f8da0e
  2. make bcm2711_defconfig

Expected behaviour
The make target should create a .config without errors

Actual behaviour
The make target ends in errors:

% make bcm2711_defconfig
drivers/staging/vc04_services/vc-sm-cma/Kconfig:1:error: recursive dependency detected!
drivers/staging/vc04_services/vc-sm-cma/Kconfig:1:	symbol BCM_VC_SM_CMA is selected by BCM2835_VCHIQ_MMAL
drivers/staging/vc04_services/vchiq-mmal/Kconfig:1:	symbol BCM2835_VCHIQ_MMAL depends on BCM2835_VCHIQ
drivers/staging/vc04_services/Kconfig:14:	symbol BCM2835_VCHIQ is selected by BCM_VC_SM_CMA
For a resolution refer to Documentation/kbuild/kconfig-language.rst
subsection "Kconfig recursive dependency limitations"

make[1]: *** [scripts/kconfig/Makefile:88: bcm2711_defconfig] Error 1
make: *** [Makefile:602: bcm2711_defconfig] Error 2

System
Copy and paste the results of the raspinfo command in to this section. Alternatively, copy and paste a pastebin link, or add answers to the following questions:

  • Which model of Raspberry Pi? Pi4B
  • Which OS and version (cat /etc/rpi-issue)? Arch ARM aarch64
  • Which firmware version (vcgencmd version)? Dec 15 2020 18:28:46 Copyright (c) 2012 Broadcom version 4b4aff21f72c5b9ba39d83c7b0f8fa910a6ef99b (clean) (release) (start)
  • Which kernel version (uname -a)? Linux workbench 5.10.3-1-ARCH #1 SMP PREEMPT Sun Dec 27 09:06:37 EST 2020 aarch64 GNU/Linux
@Dark-Sky
Copy link

Dark-Sky commented Dec 31, 2020

I get the same also on 5.10.4

@Exaga
Copy link

Exaga commented Dec 31, 2020

Ditto on Raspberry Pi (1) , 2, and 3, with posts above. Same error:

Creating new .config from bcmrpi_defconfig ...
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/confdata.o
HOSTCC scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACC scripts/kconfig/parser.tab.[ch]
HOSTCC scripts/kconfig/lexer.lex.o
HOSTCC scripts/kconfig/parser.tab.o
HOSTCC scripts/kconfig/preprocess.o
HOSTCC scripts/kconfig/symbol.o
HOSTCC scripts/kconfig/util.o
HOSTLD scripts/kconfig/conf
drivers/staging/vc04_services/vc-sm-cma/Kconfig:1:error: recursive dependency detected!
drivers/staging/vc04_services/vc-sm-cma/Kconfig:1: symbol BCM_VC_SM_CMA is selected by BCM2835_VCHIQ_MMAL
drivers/staging/vc04_services/vchiq-mmal/Kconfig:1: symbol BCM2835_VCHIQ_MMAL depends on BCM2835_VCHIQ
drivers/staging/vc04_services/Kconfig:14: symbol BCM2835_VCHIQ is selected by BCM_VC_SM_CMA
For a resolution refer to Documentation/kbuild/kconfig-language.rst
subsection "Kconfig recursive dependency limitations"

scripts/kconfig/Makefile:88: recipe for target 'bcmrpi_defconfig' failed
make[1]: *** [bcmrpi_defconfig] Error 1
Makefile:602: recipe for target 'bcmrpi_defconfig' failed
make: *** [bcmrpi_defconfig] Error 2

@ptr1337
Copy link

ptr1337 commented Dec 31, 2020

Same issue. There is something wrong.

pyavitz added a commit to pyavitz/rpi-img-builder that referenced this issue Dec 31, 2020
I suggest staying away from it until these woes get sorted.

raspberrypi/linux#4023
raspberrypi/linux#4036
@geerlingguy
Copy link

Just adding a ditto—after pulling latest today my compiles started failing. Reverting to my previous branch checkout fixes it.

@ncopa
Copy link
Contributor

ncopa commented Jan 1, 2021

This is caused by f1ef95a from RPI conflicting with
b4db71c from upstream.

Reverting either of those fixes it.

@pelwell
Copy link
Contributor

pelwell commented Jan 1, 2021

Fixed by #4038.

@Dark-Sky
Copy link

Dark-Sky commented Jan 1, 2021

I confirm with the 7e7689a commit it will now compile.

@graysky2 graysky2 closed this as completed Jan 1, 2021
@graysky2
Copy link
Author

graysky2 commented Jan 1, 2021

Agreed, fixed, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants