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

failed build u-boot for rk3399 board #78

Open
67113513 opened this issue May 27, 2023 · 0 comments
Open

failed build u-boot for rk3399 board #78

67113513 opened this issue May 27, 2023 · 0 comments

Comments

@67113513
Copy link

e.g. try a firefly build:
$./make.sh firefly-rk3399, and you can get error:

LD drivers/power/pmic/built-in.o
CC common/xyzModem.o
CC common/rbsb.o
CC common/zm.o
In file included from common/rbsb.c:29:
common/rbsb.c: In function ‘io_mode’:
common/zglobal.h:307:12: error: statement will never be executed [-Werror=switch-unreachable]
307 | #define OK 0
| ^
common/rbsb.c:485:10: note: in expansion of macro ‘OK’
485 | return OK;
| ^~
CC drivers/serial/serial-uclass.o
cc1: all warnings being treated as errors
make[1]: *** [scripts/Makefile.build:280: common/rbsb.o] Error 1
make[1]: *** Waiting for unfinished jobs....
CC drivers/power/regulator/pwm_regulator.o
CC drivers/serial/ns16550.o
CC drivers/power/regulator/fixed.o
CC drivers/power/regulator/rk8xx.o
LD cmd/built-in.o
CC drivers/spi/spi-uclass.o
CC drivers/usb/common/common.o
CC drivers/usb/dwc3/core.o
CC drivers/usb/dwc3/gadget.o
LD drivers/spi/built-in.o
LD drivers/serial/built-in.o
LD drivers/usb/common/built-in.o
CC drivers/usb/eth/usb_ether.o
CC drivers/usb/eth/asix.o
LD drivers/power/regulator/built-in.o
CC drivers/usb/gadget/udc/udc-core.o
CC drivers/usb/gadget/udc/udc-uclass.o
CC drivers/usb/gadget/epautoconf.o
CC drivers/usb/eth/asix88179.o
CC drivers/usb/dwc3/ep0.o
make: *** [Makefile:1307: common] Error 2
make: *** Waiting for unfinished jobs....
CC drivers/usb/eth/mcs7830.o
CC drivers/usb/gadget/config.o
CC drivers/usb/eth/smsc95xx.o
LD drivers/usb/gadget/udc/built-in.o
CC drivers/usb/eth/r8152.o
CC drivers/usb/gadget/usbstring.o
CC drivers/usb/gadget/g_dnl.o
CC drivers/usb/eth/r8152_fw.o
CC drivers/usb/gadget/f_mass_storage.o
CC drivers/usb/gadget/f_fastboot.o
LD drivers/usb/dwc3/dwc3.o
LD drivers/usb/eth/built-in.o
LD drivers/usb/dwc3/built-in.o
LD drivers/usb/gadget/built-in.o

Actually it'a warning but the compilation stopped!

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

1 participant