You are not logged in.

#1 2016-05-12 13:25:18

glossix
Member
Registered: 2016-05-12
Posts: 1

Make isn't working anymore

Hey, guys, I'm trying to install a wifi driver for my RTL8723BE from https://github.com/lwfinger/rtlwifi_new, but make keeps giving me a weird error.

[r00t@archbox rtlwifi_new]$ make clean && make
make -C /lib/modules/4.5.3-1-ARCH/build M=/home/r00t/rtlwifi_new modules
make[1]: Entering directory '/usr/lib/modules/4.5.3-1-ARCH/build'
  CC [M]  /home/r00t/rtlwifi_new/efuse.o
/home/r00t/rtlwifi_new/efuse.c:39:31: error: ‘RTL8712_SDIO_EFUSE_TABLE’ defined but not used [-Werror=unused-const-variable=]
 static const struct efuse_map RTL8712_SDIO_EFUSE_TABLE[] = {
                               ^~~~~~~~~~~~~~~~~~~~~~~~
/home/r00t/rtlwifi_new/efuse.c:35:17: error: ‘MAX_PGPKT_SIZE’ defined but not used [-Werror=unused-const-variable=]
 static const u8 MAX_PGPKT_SIZE = 9;
                 ^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/home/r00t/rtlwifi_new/efuse.o' failed
make[2]: *** [/home/r00t/rtlwifi_new/efuse.o] Error 1
Makefile:1391: recipe for target '_module_/home/r00t/rtlwifi_new' failed
make[1]: *** [_module_/home/r00t/rtlwifi_new] Error 2
make[1]: Leaving directory '/usr/lib/modules/4.5.3-1-ARCH/build'
Makefile:58: recipe for target 'all' failed
make: *** [all] Error 2

I followed this post https://bbs.archlinux.org/viewtopic.php?id=208472 step by step and still nothing. I tried this a week ago and everything worked fine. What can the issue be? Thanks.

Last edited by glossix (2016-05-12 13:59:11)

Offline

#2 2016-05-12 14:15:22

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Make isn't working anymore

You shouldn't install things to the system outside of pacman. Have you tried the AUR package? https://aur.archlinux.org/packages/rtlwifi_new-dkms/


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#3 2016-05-12 15:31:26

branch
Member
Registered: 2014-03-16
Posts: 209

Re: Make isn't working anymore

My guess is that GCC 6.1 is reporting warnings that GCC 5.3 did not. Since the Makefile sets -Werror, these new warnings are treated as errors and the build is halted. Try

make "CFLAGS=-Wno-error=unused-const-variable"

Offline

#4 2016-05-12 17:23:47

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Make isn't working anymore

Good catch! I see the "gcc" package was last updated 2016-05-07, within the past week.

I wonder if the GCC 6 update will affect any of my software... tongue

Offline

Board footer

Powered by FluxBB