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

error building v5.2.20 on arm64 - unrecognized command line option ‘-mhard-float’ #173

Closed
jolla opened this issue Aug 13, 2018 · 4 comments

Comments

@jolla
Copy link

jolla commented Aug 13, 2018

DKMS make.log for rtl8812au-5.2.20.2 for kernel 4.17.14-sunxi64 (aarch64)
Mon Aug 13 10:10:00 CDT 2018
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/4.17.14-sunxi64/build M=/var/lib/dkms/rtl8812au/5.2.20.2/build modules
make[1]: Entering directory '/usr/src/linux-headers-4.17.14-sunxi64'
CC [M] /var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_security.o
CC [M] /var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_debug.o
CC [M] /var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_io.o
gcc: error: unrecognized command line option ‘-mhard-float’; did you mean ‘--warn-format’?
scripts/Makefile.build:312: recipe for target '/var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_cmd.o' failed
make[2]: *** [/var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_cmd.o] Error 1
make[2]: *** Waiting for unfinished jobs....
gcc: error: unrecognized command line option ‘-mhard-float’; did you mean ‘--warn-format’?
scripts/Makefile.build:312: recipe for target '/var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_security.o' failed
make[2]: *** [/var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_security.o] Error 1
gcc: error: unrecognized command line option ‘-mhard-float’; did you mean ‘--warn-format’?
scripts/Makefile.build:312: recipe for target '/var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_debug.o' failed
make[2]: *** [/var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_debug.o] Error 1
gcc: error: unrecognized command line option ‘-mhard-float’; did you mean ‘--warn-format’?
scripts/Makefile.build:312: recipe for target '/var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_io.o' failed
make[2]: *** [/var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_io.o] Error 1
Makefile:1571: recipe for target 'module/var/lib/dkms/rtl8812au/5.2.20.2/build' failed
make[1]: *** [module/var/lib/dkms/rtl8812au/5.2.20.2/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.17.14-sunxi64'
Makefile:1928: recipe for target 'modules' failed
make: *** [modules] Error 2

@kimocoder
Copy link
Collaborator

I'll take a look at this in few days. Thanks for reporting!

@jolla
Copy link
Author

jolla commented Sep 3, 2018

I was able to get the driver to compile successfully by changing the following in Makefile

CONFIG_MP_VHT_HW_TX_MODE = y
to
CONFIG_MP_VHT_HW_TX_MODE = n

It looks like this change was made in commit 21b66c0c19c34d490db2a508e392214d059d8c0c

@kimocoder
Copy link
Collaborator

That's a great find. will push a commit in few days thanks!

@kimocoder
Copy link
Collaborator

Pushed the changes to v5.2.20 and v5.3.4 repo. Thanks! Closing

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

2 participants