Igor Posted February 8, 2018 Share Posted February 8, 2018 I was adding a driver to mvebu64-default and when this patch is removed, compilations breaks this way: Spoiler drivers/net/wireless/rtl8814au/core/rtw_mp.c: In function ‘rtfloor’: drivers/net/wireless/rtl8814au/core/rtw_mp.c:36:12: error: ‘-mgeneral-regs-only’ is incompatible with floating-point argument static int rtfloor(float x) { ^~~~~~~ scripts/Makefile.build:269: recipe for target 'drivers/net/wireless/rtl8814au/core/rtw_mp.o' failed make[4]: *** [drivers/net/wireless/rtl8814au/core/rtw_mp.o] Error 1 scripts/Makefile.build:476: recipe for target 'drivers/net/wireless/rtl8814au' failed make[3]: *** [drivers/net/wireless/rtl8814au] Error 2 scripts/Makefile.build:476: recipe for target 'drivers/net/wireless' failed make[2]: *** [drivers/net/wireless] Error 2 scripts/Makefile.build:476: recipe for target 'drivers/net' failed make[1]: *** [drivers/net] Error 2 Makefile:973: recipe for target 'drivers' failed make: *** [drivers] Error 2 Line #36 Spoiler static int rtfloor(float x) { int xi = (int)x; return x < xi ? xi - 1 : xi; } What am I missing here? Link to comment Share on other sites More sharing options...
zador.blood.stained Posted February 8, 2018 Share Posted February 8, 2018 Quote Troubles with AARCH64 compiler or? or troubles with third-party drivers that were not fixed to be compiled for arm64, -mgeneral-regs-only is a standard arm64 flag and it works for the rest of the kernel. Link to comment Share on other sites More sharing options...
Igor Posted February 8, 2018 Author Share Posted February 8, 2018 1 minute ago, zador.blood.stained said: or troubles with third-party drivers that were not fixed to be compiled for arm64, -mgeneral-regs-only is a standard arm64 flag and it works for the rest of the kernel. Well, how to fix sources then? Changing float x to int x won't do any good Link to comment Share on other sites More sharing options...
Xalius Posted February 8, 2018 Share Posted February 8, 2018 Does inlining the function change anything? Link to comment Share on other sites More sharing options...
Chuck Posted May 18, 2020 Share Posted May 18, 2020 Disable "CONFIG_MP_VHT_HW_TX_MODE" which anyway is useless to our usage. Link to comment Share on other sites More sharing options...
Recommended Posts