Troubles with AARCH64 compiler or?


Igor
 Share

0

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 post
Share on other sites

Donate and support the project!

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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

0