Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lm_sensors: Could not find a Makefile
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
buggybunny
Apprentice
Apprentice


Joined: 07 Aug 2006
Posts: 156

PostPosted: Mon May 05, 2008 12:56 pm    Post subject: lm_sensors: Could not find a Makefile Reply with quote

Hey ho Leute,

hatte gestern angefangen kde4 zu emergen.

Dies ist leider bei lm_sensors mit folgender Meldung abgebrochen:

Quote:
* 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: sys-apps/lm_sensors-2.10.4 failed.


Komplette Ausgabe:

Quote:

emerge sys-apps/lm_sensors
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) sys-apps/lm_sensors-2.10.4 to /
* lm_sensors-2.10.4.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking lm_sensors-2.10.4.tar.gz ;-) ... [ 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: sys-apps/lm_sensors-2.10.4 failed.
* Call stack:
* ebuild.sh, line 49: Called pkg_setup
* lm_sensors-2.10.4.ebuild, line 32: 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/sys-apps/lm_sensors-2.10.4/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/lm_sensors-2.10.4/temp/die.env'.
*

* Messages for package sys-apps/lm_sensors-2.10.4:

* 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: sys-apps/lm_sensors-2.10.4 failed.
* Call stack:
* ebuild.sh, line 49: Called pkg_setup
* lm_sensors-2.10.4.ebuild, line 32: 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/sys-apps/lm_sensors-2.10.4/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/lm_sensors-2.10.4/temp/die.env'.
*



Die Fehlermeldung

Quote:
* Could not find a Makefile in the kernel source directory.
* Please ensure that /usr/src/linux points to a complete set of Linux sources


ist völlig richtig, denn /usr/src/linux zeigt zwar auf ein complete set of Linux sources leider ohne Makefile:

ls -al /usr/src:

Code:
total 20
drwxr-xr-x  5 root root 4096 2008-05-03 23:08 .
drwxr-xr-x 19 root root 4096 2008-05-05 01:21 ..
-rw-r--r--  1 root root    0 2007-04-19 23:54 .keep
lrwxrwxrwx  1 root root   22 2008-02-02 17:11 linux -> linux-2.6.23-gentoo-r6
drwxr-xr-x 19 root root 4096 2008-05-03 19:11 linux-2.6.22-gentoo-r2
drwxr-xr-x 19 root root 4096 2008-05-04 21:51 linux-2.6.23-gentoo-r6
drwxr-xr-x 20 root root 4096 2008-05-03 23:08 linux-2.6.24-gentoo-r7


ls -al /usr/src/linux:

Quote:
drwxr-xr-x 19 root root 4096 2008-05-04 21:51 .
drwxr-xr-x 5 root root 4096 2008-05-03 23:08 ..
drwxr-xr-x 3 root root 4096 2008-05-04 21:51 arch
drwxr-xr-x 2 root root 4096 2008-05-04 21:51 block
-rw-r--r-- 1 root root 53461 2008-02-02 23:01 .config
-rw-r--r-- 1 root root 53713 2008-02-02 22:35 .config.old
drwxr-xr-x 3 root root 12288 2008-05-04 21:51 crypto
drwxr-xr-x 39 root root 4096 2008-05-04 21:51 drivers
drwxr-xr-x 32 root root 12288 2008-05-04 21:51 fs
drwxr-xr-x 5 root root 4096 2008-05-04 21:51 include
drwxr-xr-x 2 root root 4096 2008-05-04 21:50 init
drwxr-xr-x 2 root root 4096 2008-05-04 21:50 ipc
drwxr-xr-x 5 root root 12288 2008-05-04 21:50 kernel
drwxr-xr-x 4 root root 12288 2008-05-04 21:51 lib
-rw-r--r-- 1 root root 70 2008-02-02 23:01 .missing-syscalls.d
drwxr-xr-x 2 root root 4096 2008-05-04 21:50 mm
-rw-r--r-- 1 root root 245970 2008-02-02 23:20 Module.symvers
drwxr-xr-x 19 root root 4096 2008-05-04 21:51 net
drwxr-xr-x 5 root root 4096 2008-05-04 21:51 scripts
drwxr-xr-x 2 root root 4096 2008-05-04 21:51 security
drwxr-xr-x 17 root root 4096 2008-05-04 21:51 sound
-rw-r--r-- 1 root root 913221 2008-02-02 23:20 System.map
drwxr-xr-x 2 root root 20480 2008-02-02 23:20 .tmp_versions
drwxr-xr-x 2 root root 4096 2008-05-04 21:50 usr
-rw-r--r-- 1 root root 2 2008-02-02 23:20 .version
-rwxr-xr-x 1 root root 5556868 2008-02-02 23:20 vmlinux
-rw-r--r-- 1 root root 660 2008-02-02 23:20 .vmlinux.cmd
-rw-r--r-- 1 root root 6664677 2008-02-02 23:20 vmlinux.o
-rw-r--r-- 1 root root 624 2008-02-02 23:20 .vmlinux.o.cmd


Lustigerweise - und hier hört mein Verständnis auf - gibt es unter /usr/src/linux-2.6.24-gentoo-r7/ ein Make-file:

Quote:
total 392
drwxr-xr-x 20 root root 4096 2008-05-03 23:08 .
drwxr-xr-x 5 root root 4096 2008-05-03 23:08 ..
drwxr-xr-x 26 root root 4096 2008-05-03 23:08 arch
drwxr-xr-x 2 root root 4096 2008-05-03 23:08 block
-rw-r--r-- 1 root root 18693 2008-01-24 22:58 COPYING
-rw-r--r-- 1 root root 92230 2008-01-24 22:58 CREDITS
drwxr-xr-x 3 root root 4096 2008-05-03 23:08 crypto
drwxr-xr-x 70 root root 12288 2008-05-03 23:08 Documentation
drwxr-xr-x 76 root root 4096 2008-05-03 23:08 drivers
drwxr-xr-x 63 root root 4096 2008-05-03 23:08 fs
-rw-r--r-- 1 root root 628 2008-01-24 22:58 .gitignore
drwxr-xr-x 42 root root 4096 2008-05-03 23:08 include
drwxr-xr-x 2 root root 4096 2008-05-03 23:08 init
drwxr-xr-x 2 root root 4096 2008-05-03 23:08 ipc
-rw-r--r-- 1 root root 1596 2008-01-24 22:58 Kbuild
drwxr-xr-x 5 root root 4096 2008-05-03 23:08 kernel
drwxr-xr-x 6 root root 4096 2008-05-03 23:08 lib
-rw-r--r-- 1 root root 3657 2008-01-24 22:58 .mailmap
-rw-r--r-- 1 root root 93957 2008-01-24 22:58 MAINTAINERS
-rw-r--r-- 1 root root 53204 2008-05-03 23:07 Makefile
drwxr-xr-x 2 root root 4096 2008-05-03 23:08 mm
drwxr-xr-x 42 root root 4096 2008-05-03 23:08 net
-rw-r--r-- 1 root root 16930 2008-01-24 22:58 README
-rw-r--r-- 1 root root 3119 2008-01-24 22:58 REPORTING-BUGS
drwxr-xr-x 3 root root 4096 2008-05-03 23:08 samples
drwxr-xr-x 9 root root 4096 2008-05-03 23:08 scripts
drwxr-xr-x 4 root root 4096 2008-05-03 23:08 security
drwxr-xr-x 20 root root 4096 2008-05-03 23:08 sound
drwxr-xr-x 2 root root 4096 2008-05-03 23:08 usr


Ich fahre aber den Kernel auf den der Symlink zeigt (genkernel wurde nicht verwendet, es gab also definitiv mal ein Makefile):

Quote:
uname -r
2.6.23-gentoo-r6


Auch eselect sagt:

Quote:
eselect kernel list
Available kernel symlink targets:
[1] linux-2.6.22-gentoo-r2
[2] linux-2.6.23-gentoo-r6 *
[3] linux-2.6.24-gentoo-r7



Die Sourcen für den 2.6.24 hab ich mir installiert um mal irgendwann in nächster Zeit ein update zu machen...

Wie hab ich mir das jetzt vorzustellen?

Hat mir portage bei der Installation der neueren Kernel-sourcen einfach das Make-file gelöscht, oder was ist da passiert (ich war's garantiert nicht)?

Wie krieg ich das wieder "sauber", sprich das Make-file wieder?

Ich dachte mir, evtl. schafft ein re-emergen der sourcen Abhilfe, eix zeigt mir ja recht viele erhältliche source-Versionen:

Quote:
eix gentoo-sources
[D] sys-kernel/gentoo-sources
Available versions:
(2.6.16-r13) 2.6.16-r13
(2.6.19-r5) 2.6.19-r5
(2.6.19-r7) ~2.6.19-r7
(2.6.20-r10) ~2.6.20-r10
(2.6.21-r4) 2.6.21-r4
(2.6.22) ~2.6.22
(2.6.22-r1) ~2.6.22-r1
(2.6.22-r2) 2.6.22-r2
(2.6.22-r3) ~2.6.22-r3
(2.6.22-r4) ~2.6.22-r4
(2.6.22-r5) 2.6.22-r5
(2.6.22-r6) ~2.6.22-r6
(2.6.22-r7) ~2.6.22-r7
(2.6.22-r8) 2.6.22-r8
(2.6.22-r9) 2.6.22-r9
(2.6.22-r10) 2.6.22-r10
(2.6.23) ~2.6.23
(2.6.23-r1) ~2.6.23-r1
(2.6.23-r2) ~2.6.23-r2
(2.6.23-r3) 2.6.23-r3
(2.6.23-r4) ~2.6.23-r4
(2.6.23-r5) ~2.6.23-r5
(2.6.23-r6) 2.6.23-r6
(2.6.24) ~2.6.24
{build symlink ultra1}
Installed versions: 2.6.24-r7(2.6.24-r7)(11:08:00 PM 05/03/2008)(-build -symlink)
Homepage: http://dev.gentoo.org/~dsd/genpatches
Description: Full sources including the Gentoo patchset for the 2.6 kernel tree



Allerdings sagt mir nun ein

Code:
 emerge -pv =gentoo-sources-2.6.23-r6

These are the packages that would be merged, in order:

Calculating dependencies \
emerge: there are no ebuilds to satisfy "=sys-kernel/gentoo-sources-2.6.23-r6".



Wie komm ich aus diesem Schlamassel wieder raus ohne gleich auf Kernel 2.6.24 umsteigen zu müssen?
Back to top
View user's profile Send private message
bbgermany
Veteran
Veteran


Joined: 21 Feb 2005
Posts: 1844
Location: Oranienburg/Germany

PostPosted: Mon May 05, 2008 1:13 pm    Post subject: Reply with quote

Hi,

"uname -a" sollte dir dir laufende Kernelversion geben.

Code:
zeus ~ # uname -a
Linux zeus 2.6.24-hardened-r1 #4 SMP Sun May 4 23:29:26 CEST 2008 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz GenuineIntel GNU/Linux
zeus ~ #


Daran kannst du dann den Link /usr/src/linux auf das entsprechende Kernelverzeichnis anpassen. Gegebenenfalls musst du mit der laufenden .config (normalerweise zu finden als /proc/config.gz) den Kernel nochmals übersezten.

MfG. Stefan
_________________
Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5329

PostPosted: Mon May 05, 2008 1:17 pm    Post subject: Reply with quote

@bbgermany:
buggybunny wrote:
Ich fahre aber den Kernel auf den der Symlink zeigt (genkernel wurde nicht verwendet, es gab also definitiv mal ein Makefile):

Quote:
uname -r
2.6.23-gentoo-r6


@buggybunny: aktualisiere mal deine eix datenbank und eventuell sync vorher neu. Denn 2.6.23-r6 gibt es nicht mehr als ebuild die letzte 2.6.23 version von den gentoo-sourcen ist 2.6.23-r9
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
bbgermany
Veteran
Veteran


Joined: 21 Feb 2005
Posts: 1844
Location: Oranienburg/Germany

PostPosted: Mon May 05, 2008 1:33 pm    Post subject: Reply with quote

@firefly:

hast recht, hab ich überlesen. Aber laut eselect scheint der ja noch installiert zu sein:

Code:

[2] linux-2.6.23-gentoo-r6 *


Da wird wohl genkernel alle bereits übersetzten Objekte wieder geerdet haben.

MfG. Stefan
_________________
Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB
Back to top
View user's profile Send private message
buggybunny
Apprentice
Apprentice


Joined: 07 Aug 2006
Posts: 156

PostPosted: Mon May 05, 2008 2:12 pm    Post subject: Reply with quote

Quote:
@buggybunny: aktualisiere mal deine eix datenbank und eventuell sync vorher neu. Denn 2.6.23-r6 gibt es nicht mehr als ebuild die letzte 2.6.23 version von den gentoo-sourcen ist 2.6.23-r9


Hmppfff, war ja klar das es wieder was Triviales wie ein vergessener sync war...... :wink:

Vielen Dank, jetzt passt das schon mal soweit.

Hab jetzt Kernel 2.6.24 gebaut, der läuft gerade und nun passt's auch mit lm_sensors.

Dennoch hab ich jetzt noch ein Verständnisproblem:

Quote:
Hat mir portage bei der Installation der neueren Kernel-sourcen einfach das Make-file gelöscht, oder was ist da passiert (ich war's garantiert nicht)?


Sprich, hat portage erkannt, das die sourcen für meinen damaligen Kernel nicht mehr im Portage Tree sind und deshalb "zu meiner eigenen Sicherheit" das Makefile für 2.6.23-r6 gelöscht?

Wie schon gesagt, ich hab 2.6.23-r6 selber gebaut - es muss also mal ein Makefile vorhanden gewesen sein - und ich habe totsicher nicht selber das Makefile gelöscht.....
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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