agerwick / RT28XX-RT539X-Linux-driver

2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO updated to work with Linux kernel 3.8 and above. Tested with Ubuntu 14.04 and 16.04
GNU General Public License v2.0
23 stars 9 forks source link

Error at compilation #10

Open kounkou opened 5 years ago

kounkou commented 5 years ago

Hi @agerwick

There is an error with the files. This output is produced on : Linux GPC 4.15.0-39-generic #42-Ubuntu SMP Tue Oct 23 15:48:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

In file included from ./include/linux/bitmap.h:9,
                 from ./include/linux/cpumask.h:12,
                 from ./arch/x86/include/asm/cpumask.h:5,
                 from ./arch/x86/include/asm/msr.h:11,
                 from ./arch/x86/include/asm/processor.h:21,
                 from ./arch/x86/include/asm/cpufeature.h:5,
                 from ./arch/x86/include/asm/thread_info.h:53,
                 from ./include/linux/thread_info.h:38,
                 from ./arch/x86/include/asm/preempt.h:7,
                 from ./include/linux/preempt.h:81,
                 from ./include/linux/spinlock.h:51,
                 from ./include/linux/seqlock.h:36,
                 from ./include/linux/time.h:6,
                 from ./include/linux/stat.h:19,
                 from ./include/linux/module.h:10,
                 from /tmp/RT28XX-RT539X-Linux-driver/include/os/rt_linux.h:31,
                 from /tmp/RT28XX-RT539X-Linux-driver/include/rtmp_os.h:44,
                 from /tmp/RT28XX-RT539X-Linux-driver/include/rtmp_comm.h:69,
                 from /tmp/RT28XX-RT539X-Linux-driver/os/linux/../../os/linux/sta_ioctl.c:30:
In function ‘memcpy’,
    inlined from ‘rt_ioctl_iwaplist’ at /tmp/RT28XX-RT539X-Linux-driver/os/linux/../../os/linux/sta_ioctl.c:694:2:
./include/linux/string.h:340:4: error: call to ‘__read_overflow2’ declared with attribute error: detected read beyond size of object passed as 2nd parameter
    __read_overflow2();
    ^~~~~~~~~~~~~~~~~~
scripts/Makefile.build:332: recipe for target '/tmp/RT28XX-RT539X-Linux-driver/os/linux/../../os/linux/sta_ioctl.o' failed
make[2]: *** [/tmp/RT28XX-RT539X-Linux-driver/os/linux/../../os/linux/sta_ioctl.o] Error 1
Makefile:1551: recipe for target '_module_/tmp/RT28XX-RT539X-Linux-driver/os/linux' failed
make[1]: *** [_module_/tmp/RT28XX-RT539X-Linux-driver/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-39-generic'
Makefile:372: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
gudge25 commented 4 years ago

any news i have 4.15.0-101-generic with the same issue

kounkou commented 4 years ago

I long time switched to another laptop... keep looking.

agerwick commented 4 years ago

Same problem here, I do no longer have the hardware, so I cannot test.