PINE64
Error when building kernel - realtek - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85)
+--- Forum: General Discussion on ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=86)
+--- Thread: Error when building kernel - realtek (/showthread.php?tid=5765)



Error when building kernel - realtek - krystian - 02-24-2018

Hello

I had to make some changes to the hid-multitouch driver and I'm trying to build my kernel.
During the cross compile build, I get:

Quote: LD [M]  drivers/net/wireless/rockchip_wlan/rtl8188eu/8188eu.o
scripts/Makefile.build:455: recipe for target 'drivers/net/wireless' failed
make[2]: *** [drivers/net/wireless] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/net' failed
make[1]: *** [drivers/net] Error 2
Makefile:829: recipe for target 'drivers' failed
make: *** [drivers] Error 2

It's a bit over the head for me. I've cloned the rock64-android/kernel repository, changed the driver i wanted to changed and did:


Quote:export CROSS_COMPILE=/usr/bin/aarch64-linux-gnu-
ARCH=arm64 make rockchip_smp_nougat_defconfig
ARCH=arm64 make -j5


and ended up with the error:

I have tried running make with V=1, but after compiling the rtl8822bs it just throws the above with nothing more to start on.

Any tips on what did I miss?

Thanks!


RE: Error when building kernel - realtek - krystian - 02-25-2018

Hello again

I've got the exact error now, not sure why I didn't see that previously:

Quote:drivers/net/wireless/rockchip_wlan/esp8089/esp_driver/esp_mac80211.c: In function 'beacon_tim_init':
drivers/net/wireless/rockchip_wlan/esp8089/esp_driver/esp_mac80211.c:543:2: warning: 'memset' used with constant zero length parameter; this could be due to transposed parameters [-Wmemset-transposed-args]
error, forbidden warning: esp_mac80211.c:543
scripts/Makefile.build:308: recipe for target 'drivers/net/wireless/rockchip_wlan/esp8089/esp_driver/esp_mac80211.o' failed

I've searched google and found some solutions to gcc from 2014, I think I have the latest so it should be applied.
How do you guys build the kernel? Is there an additional flag that I would have to use?