This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error while rebuilding kernel of 2.0.7
#1
Hello,

I fetched the release branch of kernel source code and switch to tag 2.0.7, then recompile as always, but  it returned the error message listed below. Any one can fix that?  The .config file is copied from v2.0.7 TinkerOS.

Code:
drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/btc/halbtc8723b1ant.c: In function ‘halbtc8723b1ant_action_wifi_connected_bt_acl_busy’:
drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/btc/halbtc8723b1ant.c:2195:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
error, forbidden warning: halbtc8723b1ant.c:2195
scripts/Makefile.build:266: recipe for target 'drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/btc/halbtc8723b1ant.o' failed
make[5]: *** [drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/btc/halbtc8723b1ant.o] Error 1
scripts/Makefile.build:411: recipe for target 'drivers/net/wireless/rockchip_wlan/rtl8723bs' failed
make[4]: *** [drivers/net/wireless/rockchip_wlan/rtl8723bs] Error 2
make[4]: *** Waiting for unfinished jobs....
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_mp.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_mp_ioctl.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_bt_mp.o
  LD [M]  drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/rtl8812au.o
scripts/Makefile.build:411: recipe for target 'drivers/net/wireless/rockchip_wlan' failed
make[3]: *** [drivers/net/wireless/rockchip_wlan] Error 2
scripts/Makefile.build:411: recipe for target 'drivers/net/wireless' failed
make[2]: *** [drivers/net/wireless] Error 2
scripts/Makefile.build:411: recipe for target 'drivers/net' failed
make[1]: *** [drivers/net] Error 2
Makefile:999: recipe for target 'drivers' failed
make: *** [drivers] Error 2

Bests,

TkBd
Reply
#2
(07-01-2018, 02:27 PM)TkBd Wrote: Hello,

I fetched the release branch of kernel source code and switch to tag 2.0.7, then recompile as always, but  it returned the error message listed below. Any one can fix that?  The .config file is copied from v2.0.7 TinkerOS.

Code:
drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/btc/halbtc8723b1ant.c: In function ‘halbtc8723b1ant_action_wifi_connected_bt_acl_busy’:
drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/btc/halbtc8723b1ant.c:2195:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
error, forbidden warning: halbtc8723b1ant.c:2195
scripts/Makefile.build:266: recipe for target 'drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/btc/halbtc8723b1ant.o' failed
make[5]: *** [drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/btc/halbtc8723b1ant.o] Error 1
scripts/Makefile.build:411: recipe for target 'drivers/net/wireless/rockchip_wlan/rtl8723bs' failed
make[4]: *** [drivers/net/wireless/rockchip_wlan/rtl8723bs] Error 2
make[4]: *** Waiting for unfinished jobs....
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_mp.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_mp_ioctl.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_bt_mp.o
  LD [M]  drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/rtl8812au.o
scripts/Makefile.build:411: recipe for target 'drivers/net/wireless/rockchip_wlan' failed
make[3]: *** [drivers/net/wireless/rockchip_wlan] Error 2
scripts/Makefile.build:411: recipe for target 'drivers/net/wireless' failed
make[2]: *** [drivers/net/wireless] Error 2
scripts/Makefile.build:411: recipe for target 'drivers/net' failed
make[1]: *** [drivers/net] Error 2
Makefile:999: recipe for target 'drivers' failed
make: *** [drivers] Error 2

Bests,

TkBd

May I know your gcc compile version ?
$ arm-linux-gnueabihf-gcc  -v

You can check the how-to for the below information
https://tinkerboarding.co.uk/wiki/index....are#Kernel

Building image:
$ cd debian_kernel

...
...
$ make modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16
(Note: As of 2018-01-05, if may be necessary to edit the Makefile to add -Wno-misleading-indentation to the CFLAGS_MODULE if you are using GCC 6 and up.)

...
...

The below commit added the -Wno-misleading-indentation to Makefile
https://github.com/TinkerBoard/debian_ke...d0d1b06d70
Reply
#3
(07-03-2018, 08:48 AM)jamess Wrote:
(07-01-2018, 02:27 PM)TkBd Wrote: Hello,

I fetched the release branch of kernel source code and switch to tag 2.0.7, then recompile as always, but  it returned the error message listed below. Any one can fix that?  The .config file is copied from v2.0.7 TinkerOS.

Code:
drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/btc/halbtc8723b1ant.c: In function ‘halbtc8723b1ant_action_wifi_connected_bt_acl_busy’:
drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/btc/halbtc8723b1ant.c:2195:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
error, forbidden warning: halbtc8723b1ant.c:2195
scripts/Makefile.build:266: recipe for target 'drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/btc/halbtc8723b1ant.o' failed
make[5]: *** [drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/btc/halbtc8723b1ant.o] Error 1
scripts/Makefile.build:411: recipe for target 'drivers/net/wireless/rockchip_wlan/rtl8723bs' failed
make[4]: *** [drivers/net/wireless/rockchip_wlan/rtl8723bs] Error 2
make[4]: *** Waiting for unfinished jobs....
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_mp.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_mp_ioctl.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/core/rtw_bt_mp.o
  LD [M]  drivers/net/wireless/rockchip_wlan/rtl8812AU_8821AU_linux/rtl8812au.o
scripts/Makefile.build:411: recipe for target 'drivers/net/wireless/rockchip_wlan' failed
make[3]: *** [drivers/net/wireless/rockchip_wlan] Error 2
scripts/Makefile.build:411: recipe for target 'drivers/net/wireless' failed
make[2]: *** [drivers/net/wireless] Error 2
scripts/Makefile.build:411: recipe for target 'drivers/net' failed
make[1]: *** [drivers/net] Error 2
Makefile:999: recipe for target 'drivers' failed
make: *** [drivers] Error 2

Bests,

TkBd

May I know your gcc compile version ?
$ arm-linux-gnueabihf-gcc  -v

You can check the how-to for the below information
https://tinkerboarding.co.uk/wiki/index....are#Kernel

Building image:
$ cd debian_kernel

...
...
$ make modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16
(Note: As of 2018-01-05, if may be necessary to edit the Makefile to add -Wno-misleading-indentation to the CFLAGS_MODULE if you are using GCC 6 and up.)

...
...

The below commit added the -Wno-misleading-indentation to Makefile
https://github.com/TinkerBoard/debian_ke...d0d1b06d70

Hello [b]jamess[/b]

The version of GCC is 6.3. I found the reason just as you said, I forgot to modify Makefile after re-clone the release branch again. Thank you very much!

TkBd
Reply
#4
Lightbulb 
Here is a diff which can be used as patch by people who want to compile the classic TinkerOS 2.0.7 kernel 4.4.103 with minimal changes - instead of switching to the develop branch or disabling the misleading indentation warning while compiling. It applies to github.com/TinkerBoard/debian_kernel/tree/release


.txt   debian_kernel-release--misleading-indentation-fixes.diff.txt (Size: 4.35 KB / Downloads: 5)

Enjoy!  Smile
[-] The following 1 user Likes AuerE's post:
  • TkBd
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)