Jump to content

Troubles with AARCH64 compiler or?


Igor

Recommended Posts

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

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines