View previous topic :: View next topic |
Author |
Message |
boomerhackr n00b
Joined: 19 May 2020 Posts: 39
|
Posted: Sun Aug 02, 2020 5:27 am Post subject: No rule to make target 'stddef.h' while building driver |
|
|
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 |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Aug 02, 2020 10:00 am Post subject: |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21621
|
Posted: Sun Aug 02, 2020 4:21 pm Post subject: |
|
|
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 |
|
|
boomerhackr n00b
Joined: 19 May 2020 Posts: 39
|
Posted: Sun Aug 02, 2020 5:07 pm Post subject: |
|
|
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 |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Mon Aug 03, 2020 10:39 am Post subject: |
|
|
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 |
|
|
boomerhackr n00b
Joined: 19 May 2020 Posts: 39
|
Posted: Tue Aug 04, 2020 12:46 am Post subject: |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21621
|
Posted: Tue Aug 04, 2020 1:47 am Post subject: |
|
|
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 |
|
|
boomerhackr n00b
Joined: 19 May 2020 Posts: 39
|
Posted: Tue Aug 04, 2020 3:24 am Post subject: |
|
|
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 |
|
|
jburns Veteran
Joined: 18 Jan 2007 Posts: 1214 Location: Massachusetts USA
|
Posted: Wed Aug 05, 2020 3:27 am Post subject: |
|
|
Rebuild the kernel. |
|
Back to top |
|
|
boomerhackr n00b
Joined: 19 May 2020 Posts: 39
|
Posted: Wed Aug 05, 2020 4:24 am Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4147 Location: Bavaria
|
Posted: Wed Aug 05, 2020 10:02 am Post subject: |
|
|
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 |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Wed Aug 05, 2020 11:16 am Post subject: |
|
|
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 |
|
|
RayDude Advocate
Joined: 29 May 2004 Posts: 2062 Location: San Jose, CA
|
Posted: Sat Feb 04, 2023 5:07 pm Post subject: |
|
|
For anyone who finds this in the future. I just got this error message compiling gentoo-sources-6.1.9 after upgrading to gcc-12.
I had to cp .config up a level to save it:
cd /usr/src/linux
cp .config ../6.1.9.config
Then clean the distro:
make distclean
Copy the config back:
cp ../6.1.9.config .config
and then it would make:
make -j16 _________________ Some day there will only be free software. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21621
|
Posted: Sat Feb 04, 2023 7:23 pm Post subject: |
|
|
I believe a make clean, as suggested earlier, would suffice. make clean, unlike make distclean, will not remove the .config file, so it is simpler to use. |
|
Back to top |
|
|
|