Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: [gentoo-user] [SOLVED] make modules_install error; modules not recognized as ELF files
Date: Fri, 15 Mar 2013 07:07:27
Message-Id: 20130315070701.GA5737@waltdnes.org
In Reply to: Re: [gentoo-user] make modules_install error; modules not recognized as ELF files by Paul Hartman
1 On Thu, Mar 14, 2013 at 04:30:43PM -0500, Paul Hartman wrote
2 > On Thu, Mar 14, 2013 at 4:14 PM, Walter Dnes <waltdnes@××××××××.org> wrote:
3 > > On Wed, Mar 13, 2013 at 10:47:34PM -0400, Walter Dnes wrote
4 > >> Is my netbook dying, or is something else wrong? This is an older
5 > >> 32-bit Atom netbook, with
6 > >> CFLAGS="-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables"
7 > >> and 'MAKEOPTS="-j1"'. Compiling the kernel works OK, but
8 > >> "make modules_install" dies as follows...
9 > >
10 > > I unmasked kernel 3.5.7-r1 (no, I don't run ext4) and tried again. I
11 > > got...
12 > >
13 > > [aa1][root][/usr/src/linux] make modules_install
14 > > INSTALL drivers/char/kcopy/kcopy.ko
15 > > INSTALL drivers/scsi/scsi_wait_scan.ko
16 > > INSTALL drivers/usb/host/ehci-hcd.ko
17 > > DEPMOD 3.5.7-gentoo-r1
18 > > depmod: /lib/modules/3.5.7-gentoo-r1/modules.builtin is not an ELF file
19 > > depmod: /lib/modules/3.5.7-gentoo-r1/modules.order is not an ELF file
20 > > make: *** [_modinst_post] Error 1
21 > >
22 > > Both of these are textfiles, but there were a few *.bin files in the
23 > > previous kernel build error list. This is a 32-bit machine running gcc
24 > > 4.6.3. My desktop, also running in 32-bit mode with kernel 3.5.7-r1 and
25 > > gcc 4.6.3, has no such problem. Any ideas?
26 >
27 > At some point in the past few months I think module-init-tools was
28 > replaced by another package (kmod perhaps, I'm going from memory)... I
29 > am wondering if it has something to do with that transition.
30 >
31
32 <ELVIS>Thank You, Thank You, Thank You Verrrry Verrry Much!</ELVIS>
33
34 It was actually modutils that was masked out and replaced with
35 modutils. This had not kicked in yet on the install image I was using
36 on the netbook. I had to unmerge virtual/modutils and modutils, then I
37 was able to emerge kmod. Both kernel 3.5.7 and 3.7.10 built and
38 "make modules_install" worked. E.g...
39
40 [aa1][root][/usr/src/linux] make modules_install
41 INSTALL drivers/char/kcopy/kcopy.ko
42 INSTALL drivers/usb/host/ehci-hcd.ko
43 DEPMOD 3.7.10-gentoo
44
45 Thanks again.
46
47 --
48 Walter Dnes <waltdnes@××××××××.org>
49 I don't run "desktop environments"; I run useful applications

Replies

Subject Author
Re: [gentoo-user] [SOLVED] make modules_install error; modules not recognized as ELF files Walter Dnes <waltdnes@××××××××.org>