BPI-SINOVOIP / BPI-R2-bsp

Supports Banana Pi BPI-R2 (MT7623N) (Kernel 4.4)
81 stars 33 forks source link

kernel compilation failed #31

Open ethicstechOSS opened 6 years ago

ethicstechOSS commented 6 years ago

I just give a plain compilation and getting the below error.

scripts/Makefile.build:258: recipe for target 'drivers/pinctrl/mediatek/pinctrl-mtk-common.o' failed make[4]: [drivers/pinctrl/mediatek/pinctrl-mtk-common.o] Error 1 scripts/Makefile.build:403: recipe for target 'drivers/pinctrl/mediatek' failed make[3]: [drivers/pinctrl/mediatek] Error 2 scripts/Makefile.build:403: recipe for target 'drivers/pinctrl' failed make[2]: [drivers/pinctrl] Error 2 make[2]: Waiting for unfinished jobs....

frank-w commented 6 years ago

there should be errors before, please post full log

oswinfox commented 6 years ago

Hey, I got the same issue, see here my complete build logs (u-boot + kernel) the u-boot part works fine.

https://paste.pound-python.org/show/kasTVu6xUJzDGXxDHw6n/

I think I am missing a librarie but not sure which one. I am running ubuntu 18.04 ^^

frank-w commented 6 years ago

Have you tried with older gcc?

https://github.com/frank-w/BPI-R2-4.14/blob/4.14-main/README.md

seems this is your error:

In file included from drivers/pinctrl/mediatek/pinctrl-mt7623.c:22:0:
drivers/pinctrl/mediatek/pinctrl-mtk-common.h:322:8: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier]
  const const struct mtk_pin_drv_grp *pin_drv_grp;
        ^~~~~

Simply remove one "const"

oswinfox commented 6 years ago

Ok. I will try this monday and post here if it works ^^ thanks

frank-w commented 6 years ago

btw. i have problems booting uboot compiled with gcc crosscompiler v5 in ubuntu 18.4 (not showing menu). compiling with gcc 4.8 in 14.4 works with same code. gcc 7 have problems compiling wifi-driver