View previous topic :: View next topic |
Author |
Message |
silvius Guru
Joined: 16 May 2006 Posts: 364
|
Posted: Fri Sep 19, 2008 9:19 pm Post subject: [SOLVED] Can't find Makefile !!! |
|
|
Ho un problema simile a questo post:
https://forums.gentoo.org/viewtopic-t-705952-highlight-kernel+makefile.html
Non ho continuato la discussione lì perchè c'è il TAG risolto.....e non penso che sia lo stesso problema.
Ho il seguente messaggio:
Code: | >>> Emerging (1 of 19) x11-drivers/nvidia-drivers-173.14.12 to /
* NVIDIA-Linux-x86-173.14.12-pkg0.run RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking NVIDIA-Linux-x86-173.14.12-pkg0.run ;-) ... [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Could not find a Makefile in the kernel source directory.
* Please ensure that /usr/src/linux points to a complete set of Linux sources
*
* ERROR: x11-drivers/nvidia-drivers-173.14.12 failed.
* Call stack:
* ebuild.sh, line 49: Called pkg_setup
* nvidia-drivers-173.14.12.ebuild, line 145: Called linux-mod_pkg_setup
* linux-mod.eclass, line 469: Called linux-info_pkg_setup
* linux-info.eclass, line 595: Called die
* The specific snippet of code:
* get_version || die "Unable to calculate Linux Kernel version"
* The die message:
* Unable to calculate Linux Kernel version
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/portage/x11-drivers/nvidia-drivers-173.14.12/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/portage/x11-drivers/nvidia-drivers-173.14.12/temp/die.env'.
*
|
Code: | M90 linux-2.6.17-gentoo-r4 # ls -l /usr/src/linux/include/asm
lrwxrwxrwx 1 root root 8 5 nov 2007 /usr/src/linux/include/asm -> asm-i386
M90 linux-2.6.17-gentoo-r4 # eselect kernel show
Current kernel symlink:
/usr/src/linux-2.6.22-gentoo-r8
M90 linux-2.6.17-gentoo-r4 # ls -l /usr/src/
totale 12
lrwxrwxrwx 1 root root 22 5 nov 2007 linux -> linux-2.6.22-gentoo-r8
drwxr-xr-x 19 root root 4096 30 lug 00:46 linux-2.6.17-gentoo-r4
drwxr-xr-x 19 root root 4096 30 lug 00:43 linux-2.6.22-gentoo-r8
drwxr-xr-x 21 root root 4096 30 lug 00:01 linux-2.6.25-gentoo-r7
M90 linux # uname -a
Linux M90 2.6.22-gentoo-r8 #17 SMP Thu Dec 13 00:58:13 CET 2007 i686 Intel(R) Core(TM)2 CPU T7600 @ 2.33GHz GenuineIntel GNU/Linux
|
Dentro la cartella /usr/src/linux non trovo più il make e non riesco a ricompilare il kernel:
Code: | M90 linux # ls -l
totale 6284
drwxr-xr-x 3 root root 4096 30 lug 00:43 arch
drwxr-xr-x 2 root root 4096 30 lug 00:43 block
drwxr-xr-x 2 root root 4096 30 lug 00:43 crypto
drwxr-xr-x 32 root root 4096 30 lug 00:43 drivers
drwxr-xr-x 21 root root 8192 30 lug 00:43 fs
drwxr-xr-x 5 root root 4096 30 lug 00:43 include
drwxr-xr-x 2 root root 4096 30 lug 00:43 init
drwxr-xr-x 2 root root 4096 30 lug 00:43 ipc
drwxr-xr-x 5 root root 4096 30 lug 00:43 kernel
drwxr-xr-x 3 root root 4096 30 lug 00:43 lib
drwxr-xr-x 2 root root 4096 30 lug 00:43 mm
-rw-r--r-- 1 root root 201577 13 dic 2007 Module.symvers
drwxr-xr-x 17 root root 4096 30 lug 00:43 net
drwxr-xr-x 5 root root 4096 30 lug 00:43 scripts
drwxr-xr-x 2 root root 4096 30 lug 00:43 security
drwxr-xr-x 16 root root 4096 30 lug 00:43 sound
-rw-r--r-- 1 root root 915558 13 dic 2007 System.map
drwxr-xr-x 2 root root 4096 30 lug 00:43 usr
-rwxr-xr-x 1 root root 5225930 13 dic 2007 vmlinux
|
Code: |
M90 linux # make menuconfig
make: *** No rule to make target `menuconfig'. Stop.
|
Come risolvo ????
io ho asm-i386, dovrebbe essere asm-x86 ?[/code]
Saluto
Last edited by silvius on Sun Sep 21, 2008 9:26 am; edited 1 time in total |
|
Back to top |
|
|
cloc3 Advocate
Joined: 13 Jan 2004 Posts: 4788 Location: http://www.gentoo-users.org/user/cloc3/
|
Posted: Fri Sep 19, 2008 9:37 pm Post subject: |
|
|
innanzitutto controlla che il link simbolico /usr/src/linux punti correttamente al tuo kernel corrente.
per esempio:
Code: |
s939 ~ # ls -l /usr/src/linux
lrwxrwxrwx 1 root root 22 7 set 10:15 /usr/src/linux -> linux-2.6.25-gentoo-r7/
|
se poi ci dovessero essere corruzioni nel kernel, è sempre possibile reinstallarlo, con un semplice emerge.
se hai anche compilato il kernel con l'opzione IKCONFIG (.config support) puoi ottenere una copia identica di quello attuale con un semplice `zcat /proc/config` _________________ vu vu vu
gentù
mi piaci tu |
|
Back to top |
|
|
CarloJekko Veteran
Joined: 31 Mar 2005 Posts: 1315 Location: Baia Domizia :-)
|
Posted: Fri Sep 19, 2008 10:01 pm Post subject: |
|
|
cloc3 wrote: | innanzitutto controlla che il link simbolico /usr/src/linux punti correttamente al tuo kernel corrente.
per esempio:
Code: |
s939 ~ # ls -l /usr/src/linux
lrwxrwxrwx 1 root root 22 7 set 10:15 /usr/src/linux -> linux-2.6.25-gentoo-r7/
|
se poi ci dovessero essere corruzioni nel kernel, è sempre possibile reinstallarlo, con un semplice emerge.
se hai anche compilato il kernel con l'opzione IKCONFIG (.config support) puoi ottenere una copia identica di quello attuale con un semplice `zcat /proc/config` |
inoltre se emergi i sorgenti, controlla che la use symlink sia abilitata,
Ciao ! _________________ C. |
|
Back to top |
|
|
silvius Guru
Joined: 16 May 2006 Posts: 364
|
Posted: Fri Sep 19, 2008 10:06 pm Post subject: |
|
|
Il link simbolico è corretto.
Provo a riemergere......
però :
Code: | M90 src # eix gentoo-sources
[I] sys-kernel/gentoo-sources
Available versions:
(2.6.16-r13) 2.6.16-r13
(2.6.20-r10) ~2.6.20-r10
(2.6.22-r10) 2.6.22-r10
(2.6.23-r9) 2.6.23-r9
(2.6.24-r3) 2.6.24-r3
(2.6.24-r4) 2.6.24-r4
(2.6.24-r8) 2.6.24-r8
(2.6.25) ~2.6.25
(2.6.25-r1) ~2.6.25-r1
(2.6.25-r2) ~2.6.25-r2
(2.6.25-r3) ~2.6.25-r3
(2.6.25-r4) ~2.6.25-r4
(2.6.25-r5) ~2.6.25-r5
(2.6.25-r6) 2.6.25-r6
(2.6.25-r7) 2.6.25-r7
(2.6.25-r8) ~2.6.25-r8
(2.6.26) ~2.6.26
(2.6.26-r1) ~2.6.26-r1
{build symlink ultra1}
Installed versions: 2.6.25-r7(2.6.25-r7)(00:00:48 30/07/2008)(-build -symlink)
Homepage: http://dev.gentoo.org/~dsd/genpatches
Description: Full sources including the Gentoo patchset for the 2.6 kernel tree
M90 src # uname -r
2.6.22-gentoo-r8
M90 src # |
Come si vede io uso il kernel 2.6.22.gentoo-r8 che non c'è nei disponibili.....come posso fare ?
Questo perchè voglio usare il .config visto che ho l' opzione IKCONFIG=y
Saluto |
|
Back to top |
|
|
djinnZ Advocate
Joined: 02 Nov 2006 Posts: 4831 Location: somewhere in L.O.S.
|
Posted: Fri Sep 19, 2008 10:29 pm Post subject: |
|
|
a parte il fatto che potresti avere l'albero dei sorgenti danneggiato (e quindi ri-emergerlo non è una cattiva idea) ti vorrei far notare che i kernel headers sono alla versione 2.6.23 o 24 (uso un differente toolchain) ed è altamente sconsigliabile avere una versione del kernel inferiore a quella degli headers.
Ma un banale Code: | cp /usr/src/linux-2.6.22.gentoo-r8/.config /usr/src/linux-2.6.25-gentoo-r7 ; cd /usr/src/linux-2.6.25-gentoo-r7 ; make oldconfig ; make menuconfig ; make | o
Code: | zcat /proc/config.gz >/usr/src/linux-2.6.25-gentoo-r7/.config ; cd /usr/src/linux-2.6.25-gentoo-r7 ; make oldconfig ; make menuconfig ; make | o meglio Code: | zcat /proc/config.gz >/etc/kernels/kernel-config-x86-2.6.25-gentoo-r7 ; genkernel all ; module-rebuild rebuild | è troppo? _________________ scita et risus abundant in ore stultorum sed etiam semper severi insani sunt
mala tempora currunt...mater stultorum semper pregna est
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist |
|
Back to top |
|
|
silvius Guru
Joined: 16 May 2006 Posts: 364
|
Posted: Fri Sep 19, 2008 11:01 pm Post subject: |
|
|
Il punto è che una volta che ho trovato un kernel che non mi dda più problemi e non mi servono altre features.....NON lo cambio più
Adesso provo e vediamo se non ho problemi....grazie.
Saluto |
|
Back to top |
|
|
djinnZ Advocate
Joined: 02 Nov 2006 Posts: 4831 Location: somewhere in L.O.S.
|
Posted: Fri Sep 19, 2008 11:06 pm Post subject: |
|
|
Allora devi anche evitare di aggiornare gli headers (un banale =versionekernel in portage.mask).
Ma in generale è meglio aggiornare anche il kernel insieme agli headers stabili, bada che non ti ho suggerito di passare al 2.6.26 ma solo al 2.6.23 (o giù di li); inutile dire che finchè non sei certo il vecchio kernel non va cancellato (io mantengo sempre almeno una versione precedente) _________________ scita et risus abundant in ore stultorum sed etiam semper severi insani sunt
mala tempora currunt...mater stultorum semper pregna est
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist |
|
Back to top |
|
|
silvius Guru
Joined: 16 May 2006 Posts: 364
|
Posted: Sun Sep 21, 2008 9:26 am Post subject: |
|
|
Ok, ho aggiornato il kernel.....nessun conflitto.
Penso che il problema era divuto a qualche corruzzione del kernel precedente.....ma come è possibile ?
Saluto |
|
Back to top |
|
|
|