Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
make menuconfig - Kbuild missing [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Melf
n00b
n00b


Joined: 18 Oct 2006
Posts: 35

PostPosted: Sat Sep 17, 2011 12:06 pm    Post subject: make menuconfig - Kbuild missing [solved] Reply with quote

Hi,

somehow my Kbuild files went missing. I think it was during an update but I can't figure out when it happened or which package is responsible.
I reemerged the kbuild stuff and linux-headers and run revdep-rebuild, but I really don't know why this happens at all. Maybe a symlink is missing?
The system is built with ~amd64 keywords. Here is the kernel message for make menuconfig (busybox fails to compile for the same reason):
Code:

scripts/Makefile.build:44: /usr/src/linux-3.0.3-gentoo/scripts/basic/Kbuild: Datei oder Verzeichnis nicht gefunden
make[1]: *** Keine Regel, um »/usr/src/linux-3.0.3-gentoo/scripts/basic/Kbuild« zu erstellen.  Schluss.
make: *** [scripts_basic] Fehler 2

The error message is in german but I can translate it if needed. Any help is greatly appreciated.


Last edited by Melf on Sun Sep 18, 2011 6:23 am; edited 1 time in total
Back to top
View user's profile Send private message
Aquous
l33t
l33t


Joined: 08 Jan 2011
Posts: 645

PostPosted: Sat Sep 17, 2011 12:08 pm    Post subject: Reply with quote

This can happen if you upgraded to a newer kernel (say 3.0.4) and emerge --depclean removed the sources for your old kernel. If you indeed have a /usr/src/linux-3.0.4-gentoo, that's the folder you need to be in.
Back to top
View user's profile Send private message
Melf
n00b
n00b


Joined: 18 Oct 2006
Posts: 35

PostPosted: Sat Sep 17, 2011 12:13 pm    Post subject: Reply with quote

I thought something like that, but it even happens on the actual 3.0.4 kernel. Normally I manually keep the old kernels in /var/lib/portage/world to prevent them from getting depcleaned.
Code:

sys-kernel/gentoo-sources
sys-kernel/gentoo-sources:3.0.1
sys-kernel/gentoo-sources:3.0.3


Code:

ls -l /usr/src/
insgesamt 12
lrwxrwxrwx  1 root root   19 20. Aug 11:43 linux -> linux-3.0.3-gentoo/
drwxr-xr-x 24 root root 4096 17. Sep 09:56 linux-3.0.1-gentoo
drwxr-xr-x 24 root root 4096 17. Sep 10:28 linux-3.0.3-gentoo
drwxr-xr-x 23 root root 4096 17. Sep 09:09 linux-3.0.4-gentoo
Back to top
View user's profile Send private message
Melf
n00b
n00b


Joined: 18 Oct 2006
Posts: 35

PostPosted: Sat Sep 17, 2011 2:06 pm    Post subject: Reply with quote

I removed the gentoo-sources with emerge -C, checked /usr/src/ to make sure they are deleted and emerged them again. But make menuconfig still complains about missing files (first post). Seems like a bug to me, but I don't know if it is the gentoo-source ebuild or something else.
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 8831

PostPosted: Sat Sep 17, 2011 4:28 pm    Post subject: Reply with quote

Please post the output of ls -la /usr/src/linux/.; equery check sys-kernel/gentoo-sources. Also, please post the error message as produced with LC_ALL=C, so that it will be the standard English error string. (This is better than asking you to translate it, since it is guaranteed to be the same text that the source code uses for the non-localized message.)
Back to top
View user's profile Send private message
Melf
n00b
n00b


Joined: 18 Oct 2006
Posts: 35

PostPosted: Sat Sep 17, 2011 9:48 pm    Post subject: Reply with quote

Here we go:
Code:

ls -la /usr/src/linux/.
insgesamt 62228
drwxr-xr-x 24 root root     4096 17. Sep 10:28 .
drwxr-xr-x  5 root root     4096 17. Sep 16:03 ..
drwxr-xr-x 27 root root     4096 20. Aug 12:27 arch
drwxr-xr-x  2 root root     4096 20. Aug 12:27 block
-rw-r--r--  1 root root    64346 28. Aug 11:36 .config
-rw-r--r--  1 root root    64357 20. Aug 12:11 .config.old
-rw-r--r--  1 root root    18693 22. Jul 04:17 COPYING
-rw-r--r--  1 root root    94495 22. Jul 04:17 CREDITS
drwxr-xr-x  3 root root     4096 20. Aug 12:27 crypto
drwxr-xr-x 93 root root    12288 20. Aug 11:32 Documentation
drwxr-xr-x 94 root root     4096 20. Aug 12:27 drivers
drwxr-xr-x 38 root root     4096 20. Aug 12:27 firmware
drwxr-xr-x 71 root root    12288 20. Aug 12:27 fs
-rw-r--r--  1 root root      966 22. Jul 04:17 .gitignore
drwxr-xr-x 23 root root     4096 20. Aug 12:21 include
drwxr-xr-x  2 root root     4096 20. Aug 12:27 init
drwxr-xr-x  2 root root     4096 20. Aug 12:27 ipc
-rw-r--r--  1 root root     2464 22. Jul 04:17 Kbuild
-rw-r--r--  1 root root      252 22. Jul 04:17 Kconfig
drwxr-xr-x  9 root root    12288 20. Aug 12:27 kernel
drwxr-xr-x  8 root root    12288 20. Aug 12:27 lib
-rw-r--r--  1 root root     4268 22. Jul 04:17 .mailmap
-rw-r--r--  1 root root   195191 22. Jul 04:17 MAINTAINERS
-rw-r--r--  1 root root    53445 20. Aug 11:31 Makefile
-rw-r--r--  1 root root      484 28. Aug 11:36 .missing-syscalls.d
drwxr-xr-x  2 root root     4096 20. Aug 12:27 mm
-rw-r--r--  1 root root     8676 28. Aug 11:36 modules.builtin
-rw-r--r--  1 root root      386 28. Aug 11:36 modules.order
-rw-r--r--  1 root root   290050 20. Aug 12:27 Module.symvers
drwxr-xr-x 53 root root     4096 20. Aug 12:27 net
-rw-r--r--  1 root root    17459 22. Jul 04:17 README
-rw-r--r--  1 root root     3371 22. Jul 04:17 REPORTING-BUGS
drwxr-xr-x 10 root root     4096 20. Aug 11:32 samples
drwxr-xr-x 13 root root     4096 20. Aug 12:21 scripts
drwxr-xr-x  8 root root     4096 20. Aug 12:27 security
drwxr-xr-x 22 root root     4096 20. Aug 12:27 sound
-rw-r--r--  1 root root  1911093 20. Aug 12:27 System.map
-rw-r--r--  1 root root  1055400 20. Aug 12:27 .tmp_kallsyms1.o
-rw-r--r--  1 root root      845 20. Aug 12:27 ..tmp_kallsyms1.o.cmd
-rw-r--r--  1 root root  2354287 20. Aug 12:27 .tmp_kallsyms1.S
-rw-r--r--  1 root root  1055400 20. Aug 12:27 .tmp_kallsyms2.o
-rw-r--r--  1 root root      845 20. Aug 12:27 ..tmp_kallsyms2.o.cmd
-rw-r--r--  1 root root  2354287 20. Aug 12:27 .tmp_kallsyms2.S
-rw-r--r--  1 root root  1911093 20. Aug 12:27 .tmp_System.map
drwxr-xr-x  2 root root     4096 28. Aug 11:36 .tmp_versions
-rwxr-xr-x  1 root root 17440799 20. Aug 12:27 .tmp_vmlinux1
-rw-r--r--  1 root root      602 20. Aug 12:27 ..tmp_vmlinux1.cmd
-rwxr-xr-x  1 root root 17915935 20. Aug 12:27 .tmp_vmlinux2
-rw-r--r--  1 root root      618 20. Aug 12:27 ..tmp_vmlinux2.cmd
drwxr-xr-x  9 root root     4096 20. Aug 10:50 tools
drwxr-xr-x  2 root root     4096 20. Aug 12:27 usr
-rw-r--r--  1 root root        2 20. Aug 12:27 .version
drwxr-xr-x  3 root root     4096 20. Aug 10:50 virt
-rwxr-xr-x  1 root root 17915935 20. Aug 12:27 vmlinux
-rw-r--r--  1 root root      606 20. Aug 12:27 .vmlinux.cmd
-rw-r--r--  1 root root 17609281 20. Aug 12:27 vmlinux.o
-rw-r--r--  1 root root      555 20. Aug 12:27 .vmlinux.o.cmd

The next command needed some time...
Code:

equery check sys-kernel/gentoo-sources
* Checking sys-kernel/gentoo-sources-3.0.1 ...
   39055 out of 39055 files passed
* Checking sys-kernel/gentoo-sources-3.0.3 ...
   39060 out of 39060 files passed
* Checking sys-kernel/gentoo-sources-3.0.4 ...
   39060 out of 39060 files passed

The error message
Code:

scripts/Makefile.build:44: /usr/src/linux-3.0.3-gentoo/scripts/basic/Kbuild: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-3.0.3-gentoo/scripts/basic/Kbuild'.  Stop.
make: *** [scripts_basic] Error 2

and output of locale:
Code:

locale
LANG=en_EN.UTF-8
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C


I still think it must be something else...
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5414

PostPosted: Sat Sep 17, 2011 11:31 pm    Post subject: Reply with quote

If you have make 3.82-r2, this might be the source of the problem - that revision was punted, cause the patch used was incorrect.
Back to top
View user's profile Send private message
Melf
n00b
n00b


Joined: 18 Oct 2006
Posts: 35

PostPosted: Sun Sep 18, 2011 6:22 am    Post subject: Reply with quote

Quote:

VoidMage:
"If you have make 3.82-r2, this might be the source of the problem - that revision was punted, cause the patch used was incorrect."

Thank you. A fresh sync and make 3.82-r3 works as expected.
Back to top
View user's profile Send private message
mounty1
Guru
Guru


Joined: 06 Jul 2006
Posts: 500
Location: Queensland

PostPosted: Sun Sep 18, 2011 10:19 am    Post subject: Puzzled by the fix Reply with quote

For me,
Code:
emerge --sync -q && emerge -quDN --keep-going world
doesn't upgrade or downgrade make --- I had to add r2 to /etc/portage/package.mask to get rid of it.
_________________
Michael Mounteney
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5414

PostPosted: Sun Sep 18, 2011 10:33 am    Post subject: Reply with quote

Well, that '-q' part might suggest you have a silent failure somewhere.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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