You are not logged in.

#1 2018-04-11 05:36:24

johnnynyquist
Member
Registered: 2016-01-25
Posts: 27

Missing stdarg.h when trying to build rtlwifi_new drivers

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

#2 2018-04-11 06:24:51

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Missing stdarg.h when trying to build rtlwifi_new drivers

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

#3 2018-04-11 06:34:36

johnnynyquist
Member
Registered: 2016-01-25
Posts: 27

Re: Missing stdarg.h when trying to build rtlwifi_new drivers

Indeed it is there and readable.. and CC = gcc so why would the compiler throw a no such file error?

Offline

#4 2018-04-11 06:52:38

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,217

Re: Missing stdarg.h when trying to build rtlwifi_new drivers

VERBOSE=1 make

Offline

#5 2018-04-11 07:18:43

johnnynyquist
Member
Registered: 2016-01-25
Posts: 27

Re: Missing stdarg.h when trying to build rtlwifi_new drivers

seth wrote:
VERBOSE=1 make

in https://pastebin.com/XvQfsWse

Offline

#6 2018-04-11 07:20:25

johnnynyquist
Member
Registered: 2016-01-25
Posts: 27

Re: Missing stdarg.h when trying to build rtlwifi_new drivers

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

#7 2018-04-11 07:22:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,217

Re: Missing stdarg.h when trying to build rtlwifi_new drivers

reconfigure the build.

Offline

#8 2018-04-11 08:34:41

johnnynyquist
Member
Registered: 2016-01-25
Posts: 27

Re: Missing stdarg.h when trying to build rtlwifi_new drivers

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

#9 2018-04-11 09:17:57

loqs
Member
Registered: 2014-03-06
Posts: 18,960

Re: Missing stdarg.h when trying to build rtlwifi_new drivers

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

#10 2018-04-11 09:30:48

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,560
Website

Re: Missing stdarg.h when trying to build rtlwifi_new drivers

'make clean' should remove the cached build files too.

https://github.com/torvalds/linux/blob/ … file#L1620


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

#11 2018-04-11 09:40:54

loqs
Member
Registered: 2014-03-06
Posts: 18,960

Re: Missing stdarg.h when trying to build rtlwifi_new drivers

@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

#12 2018-04-11 10:08:08

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,560
Website

Re: Missing stdarg.h when trying to build rtlwifi_new drivers

Ah, my bad, I should've read the github issue.

Sorry for the noise. tongue


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

#13 2018-04-11 16:19:07

johnnynyquist
Member
Registered: 2016-01-25
Posts: 27

Re: Missing stdarg.h when trying to build rtlwifi_new drivers

loqs wrote:

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

Board footer

Powered by FluxBB