Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No rule to make target 'stddef.h' while building driver
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
boomerhackr
n00b
n00b


Joined: 19 May 2020
Posts: 39

PostPosted: Sun Aug 02, 2020 5:27 am    Post subject: No rule to make target 'stddef.h' while building driver Reply with quote

I was trying to install the drivers for panda wifi adapter using this guide. However when I ran "make" to build the driver, it gave me the following error:
Code:
make[5]: *** No rule to make target '/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/stddef.h', needed by '/usr/src/linux-5.4.48-gentoo/tools/objtool/fixdep.o'.  Stop.

How can I fix this error?
_________________
I'd just like to interject for a moment. What you're referring to as Linux,
is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7428

PostPosted: Sun Aug 02, 2020 10:00 am    Post subject: Reply with quote

I would say first thing to look at is, do you really miss the file /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/stddef.h ?
It's standard in gcc, missing it mean your gcc is sick, no idea why you don't have it if it's your next question :)
Code:
equery b /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include/stddef.h
 * Searching for /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include/stddef.h ...
sys-devel/gcc-9.2.0 (/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include/stddef.h)
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15609

PostPosted: Sun Aug 02, 2020 4:21 pm    Post subject: Reply with quote

Please post the name, version, and full output of the ebuild that produced this error. (You mention running make directly, which is odd. Are you trying to build this outside of Portage?) The failure should have showed a path to the build.log, which would contain all this information. If the output is long, put it on a pastebin and link to it here.

What is the output of emerge --pretend --verbose sys-devel/gcc?

As a tip, this guide is not good text for a link. Instead, you should describe the nature of the underlying guide.
Back to top
View user's profile Send private message
boomerhackr
n00b
n00b


Joined: 19 May 2020
Posts: 39

PostPosted: Sun Aug 02, 2020 5:07 pm    Post subject: Reply with quote

No I do not have "/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/stddef.h" The directory "/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/" does not exist. I did not use portage to install, I simply installed a tarball, decompressed it, and ran the "make" command. Here is the output of "emerge --pretend --verbose sys-devel/gcc":
Code:
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-devel/gcc-10.2.0:10::gentoo  USE="(cxx) fortran (multilib) nls nptl openmp pch (pie) sanitize ssp vtv (-ada) -d -debug -doc (-fixed-point) -go -graphite (-hardened) (-jit) (-libssp) -lto -objc -objc++ -objc-gc -pgo -systemtap -test -vanilla -zstd" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

_________________
I'd just like to interject for a moment. What you're referring to as Linux,
is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7428

PostPosted: Mon Aug 03, 2020 10:39 am    Post subject: Reply with quote

then you are using the wrong computer version, must be you forget to run eselect gcc and pickup the version 10 you use
Back to top
View user's profile Send private message
boomerhackr
n00b
n00b


Joined: 19 May 2020
Posts: 39

PostPosted: Tue Aug 04, 2020 12:46 am    Post subject: Reply with quote

I already have gentoo version 10.2.0 set on eselect and "gcc --version" outputs 10.2.0. I am confused. Should I emerge gcc again?
_________________
I'd just like to interject for a moment. What you're referring to as Linux,
is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15609

PostPosted: Tue Aug 04, 2020 1:47 am    Post subject: Reply with quote

No, you should not rebuild gcc. You removed gcc-9.3.0, and with it all of its headers. Personally, I would not remove 9.3.0 quite so soon after installing 10.2.0, but that is not relevant to your problem. Your problem is that you are using outdated dependency information from a kernel build (which it looks like you may have done as root) that was done when gcc-9.3.0 was current. Clean out the dependency information and try again.
Back to top
View user's profile Send private message
boomerhackr
n00b
n00b


Joined: 19 May 2020
Posts: 39

PostPosted: Tue Aug 04, 2020 3:24 am    Post subject: Reply with quote

How can I clean out the dependency information?
_________________
I'd just like to interject for a moment. What you're referring to as Linux,
is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux.
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1086
Location: Massachusetts USA

PostPosted: Wed Aug 05, 2020 3:27 am    Post subject: Reply with quote

Rebuild the kernel.
Back to top
View user's profile Send private message
boomerhackr
n00b
n00b


Joined: 19 May 2020
Posts: 39

PostPosted: Wed Aug 05, 2020 4:24 am    Post subject: Reply with quote

I went into /usr/src/linux and ran "make" however it gives me the same "missing stddef.h" error.
_________________
I'd just like to interject for a moment. What you're referring to as Linux,
is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux.
Back to top
View user's profile Send private message
pietinger
Apprentice
Apprentice


Joined: 17 Oct 2006
Posts: 271
Location: Bavaria

PostPosted: Wed Aug 05, 2020 10:02 am    Post subject: Reply with quote

boomerhackr wrote:
I went into /usr/src/linux and ran "make" however it gives me the same "missing stddef.h" error.

Did you a "make clean" before ?
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7428

PostPosted: Wed Aug 05, 2020 11:16 am    Post subject: Reply with quote

I'll show you mine to help, this is what you should check
1/ is gcc set to the 10 in the file config...
2/ is the file x86_... have the right paths in it?
Code:
>pwd
/etc/env.d/gcc
>cat config-x86_64-pc-linux-gnu
CURRENT=x86_64-pc-linux-gnu-9.2.0
>cat x86_64-pc-linux-gnu-9.2.0
LDPATH="/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0:/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/32"
MANPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/9.2.0/man"
INFOPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/9.2.0/info"
STDCXX_INCDIR="g++-v9"
CTARGET="x86_64-pc-linux-gnu"
GCC_SPECS=""
MULTIOSDIRS="../lib64:../lib"
GCC_PATH="/usr/x86_64-pc-linux-gnu/gcc-bin/9.2.0"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum