You are not logged in.
I've been using vanilla arch with an aftermarket realtek WiFi driver for my Thinkpad T450s; this has always worked fine until 4.15 kernel, when the build stopped working:
b@ember:rtlwifi_new$ make
make -C /lib/modules/4.15.15-1-ARCH/build M=/data/GitHub/rtlwifi_new modules
make[1]: Entering directory '/usr/lib/modules/4.15.15-1-ARCH/build'
CC [M] /data/GitHub/rtlwifi_new/base.o
In file included from ./arch/x86/include/asm/percpu.h:45:0,
from ./arch/x86/include/asm/current.h:6,
from ./include/linux/sched.h:12,
from /data/GitHub/rtlwifi_new/wifi.h:31,
from /data/GitHub/rtlwifi_new/base.c:26:
./include/linux/kernel.h:6:10: fatal error: stdarg.h: No such file or directory
#include <stdarg.h>
^~~~~~~~~~
compilation terminated.Normally stdarg.h is provided by the compiler. The repo maintainer is stumped (issue here); the issue OP and myself are both running arch so I thought maybe there is something distro-specific going on- but I'm not wise enough to know myself. any thoughts or tips?
Offline
The gcc package in our repos does ship with stdarg.h. It's at /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.1/include/stdarg.h
Offline
Indeed it is there and readable.. and CC = gcc so why would the compiler throw a no such file error?
Offline
VERBOSE=1 makeOffline
VERBOSE=1 make
Offline
COLLECT_GCC_OPTIONS appears to be adding /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include instead of 7.3.1
Offline
reconfigure the build.
Offline
There is no configuration for this repo; I'm not sure why the wrong link is showing up, but creating a symlink to the 7.3.1 folder named 7.3.0 allows the compilation to complete. thanks for your help.
Offline
run git clean -f if that fails extract the repo into a separate directory and build there or manually remove .tmp_versions, .cache.mk, .*.cmd
Offline
'make clean' should remove the cached build files too.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
@WorMzy https://github.com/lwfinger/rtlwifi_new … -380224625 as https://github.com/lwfinger/rtlwifi_new … efile#L160 is less complete
Edit:
change github link to extended branch and use permalink.
Last edited by loqs (2018-04-11 09:58:31)
Offline
Ah, my bad, I should've read the github issue.
Sorry for the noise. ![]()
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
run git clean -f if that fails extract the repo into a separate directory and build there or manually remove .tmp_versions, .cache.mk, .*.cmd
Thanks- cloning into a new repo, the problem doesn't occur.
Offline