* [gentoo-user] make modules_install error; modules not recognized as ELF files @ 2013-03-14 2:47 Walter Dnes 2013-03-14 21:14 ` Walter Dnes 0 siblings, 1 reply; 9+ messages in thread From: Walter Dnes @ 2013-03-14 2:47 UTC (permalink / raw To: Gentoo Users List Is my netbook dying, or is something else wrong? This is an older 32-bit Atom netbook, with CFLAGS="-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables" and 'MAKEOPTS="-j1"'. Compiling the kernel works OK, but "make modules_install" dies as follows... [aa1][root][/usr/src/linux] make modules_install INSTALL drivers/char/kcopy/kcopy.ko INSTALL drivers/usb/host/ehci-hcd.ko DEPMOD 3.7.10-gentoo depmod: /lib/modules/3.7.10-gentoo/modules.alias is not an ELF file depmod: /lib/modules/3.7.10-gentoo/modules.alias.bin is not an ELF file depmod: /lib/modules/3.7.10-gentoo/modules.builtin is not an ELF file depmod: /lib/modules/3.7.10-gentoo/modules.builtin.bin is not an ELF file depmod: /lib/modules/3.7.10-gentoo/modules.ccwmap is not an ELF file depmod: /lib/modules/3.7.10-gentoo/modules.dep.bin is not an ELF file depmod: /lib/modules/3.7.10-gentoo/modules.devname is not an ELF file depmod: /lib/modules/3.7.10-gentoo/modules.inputmap is not an ELF file depmod: /lib/modules/3.7.10-gentoo/modules.ofmap is not an ELF file depmod: /lib/modules/3.7.10-gentoo/modules.order is not an ELF file depmod: cannot read ELF header from /lib/modules/3.7.10-gentoo/modules.seriomap depmod: /lib/modules/3.7.10-gentoo/modules.softdep is not an ELF file depmod: /lib/modules/3.7.10-gentoo/modules.symbols is not an ELF file depmod: /lib/modules/3.7.10-gentoo/modules.symbols.bin is not an ELF file make: *** [_modinst_post] Error 1 -- Walter Dnes <waltdnes@waltdnes.org> I don't run "desktop environments"; I run useful applications ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] make modules_install error; modules not recognized as ELF files 2013-03-14 2:47 [gentoo-user] make modules_install error; modules not recognized as ELF files Walter Dnes @ 2013-03-14 21:14 ` Walter Dnes 2013-03-14 21:30 ` Paul Hartman 0 siblings, 1 reply; 9+ messages in thread From: Walter Dnes @ 2013-03-14 21:14 UTC (permalink / raw To: Gentoo Users List On Wed, Mar 13, 2013 at 10:47:34PM -0400, Walter Dnes wrote > Is my netbook dying, or is something else wrong? This is an older > 32-bit Atom netbook, with > CFLAGS="-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables" > and 'MAKEOPTS="-j1"'. Compiling the kernel works OK, but > "make modules_install" dies as follows... I unmasked kernel 3.5.7-r1 (no, I don't run ext4) and tried again. I got... [aa1][root][/usr/src/linux] make modules_install INSTALL drivers/char/kcopy/kcopy.ko INSTALL drivers/scsi/scsi_wait_scan.ko INSTALL drivers/usb/host/ehci-hcd.ko DEPMOD 3.5.7-gentoo-r1 depmod: /lib/modules/3.5.7-gentoo-r1/modules.builtin is not an ELF file depmod: /lib/modules/3.5.7-gentoo-r1/modules.order is not an ELF file make: *** [_modinst_post] Error 1 Both of these are textfiles, but there were a few *.bin files in the previous kernel build error list. This is a 32-bit machine running gcc 4.6.3. My desktop, also running in 32-bit mode with kernel 3.5.7-r1 and gcc 4.6.3, has no such problem. Any ideas? -- Walter Dnes <waltdnes@waltdnes.org> I don't run "desktop environments"; I run useful applications ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] make modules_install error; modules not recognized as ELF files 2013-03-14 21:14 ` Walter Dnes @ 2013-03-14 21:30 ` Paul Hartman 2013-03-15 7:07 ` [gentoo-user] [SOLVED] " Walter Dnes 0 siblings, 1 reply; 9+ messages in thread From: Paul Hartman @ 2013-03-14 21:30 UTC (permalink / raw To: gentoo-user On Thu, Mar 14, 2013 at 4:14 PM, Walter Dnes <waltdnes@waltdnes.org> wrote: > On Wed, Mar 13, 2013 at 10:47:34PM -0400, Walter Dnes wrote >> Is my netbook dying, or is something else wrong? This is an older >> 32-bit Atom netbook, with >> CFLAGS="-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables" >> and 'MAKEOPTS="-j1"'. Compiling the kernel works OK, but >> "make modules_install" dies as follows... > > I unmasked kernel 3.5.7-r1 (no, I don't run ext4) and tried again. I > got... > > [aa1][root][/usr/src/linux] make modules_install > INSTALL drivers/char/kcopy/kcopy.ko > INSTALL drivers/scsi/scsi_wait_scan.ko > INSTALL drivers/usb/host/ehci-hcd.ko > DEPMOD 3.5.7-gentoo-r1 > depmod: /lib/modules/3.5.7-gentoo-r1/modules.builtin is not an ELF file > depmod: /lib/modules/3.5.7-gentoo-r1/modules.order is not an ELF file > make: *** [_modinst_post] Error 1 > > Both of these are textfiles, but there were a few *.bin files in the > previous kernel build error list. This is a 32-bit machine running gcc > 4.6.3. My desktop, also running in 32-bit mode with kernel 3.5.7-r1 and > gcc 4.6.3, has no such problem. Any ideas? At some point in the past few months I think module-init-tools was replaced by another package (kmod perhaps, I'm going from memory)... I am wondering if it has something to do with that transition. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-user] [SOLVED] make modules_install error; modules not recognized as ELF files 2013-03-14 21:30 ` Paul Hartman @ 2013-03-15 7:07 ` Walter Dnes 2013-03-15 7:37 ` Walter Dnes 0 siblings, 1 reply; 9+ messages in thread From: Walter Dnes @ 2013-03-15 7:07 UTC (permalink / raw To: gentoo-user On Thu, Mar 14, 2013 at 04:30:43PM -0500, Paul Hartman wrote > On Thu, Mar 14, 2013 at 4:14 PM, Walter Dnes <waltdnes@waltdnes.org> wrote: > > On Wed, Mar 13, 2013 at 10:47:34PM -0400, Walter Dnes wrote > >> Is my netbook dying, or is something else wrong? This is an older > >> 32-bit Atom netbook, with > >> CFLAGS="-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables" > >> and 'MAKEOPTS="-j1"'. Compiling the kernel works OK, but > >> "make modules_install" dies as follows... > > > > I unmasked kernel 3.5.7-r1 (no, I don't run ext4) and tried again. I > > got... > > > > [aa1][root][/usr/src/linux] make modules_install > > INSTALL drivers/char/kcopy/kcopy.ko > > INSTALL drivers/scsi/scsi_wait_scan.ko > > INSTALL drivers/usb/host/ehci-hcd.ko > > DEPMOD 3.5.7-gentoo-r1 > > depmod: /lib/modules/3.5.7-gentoo-r1/modules.builtin is not an ELF file > > depmod: /lib/modules/3.5.7-gentoo-r1/modules.order is not an ELF file > > make: *** [_modinst_post] Error 1 > > > > Both of these are textfiles, but there were a few *.bin files in the > > previous kernel build error list. This is a 32-bit machine running gcc > > 4.6.3. My desktop, also running in 32-bit mode with kernel 3.5.7-r1 and > > gcc 4.6.3, has no such problem. Any ideas? > > At some point in the past few months I think module-init-tools was > replaced by another package (kmod perhaps, I'm going from memory)... I > am wondering if it has something to do with that transition. > <ELVIS>Thank You, Thank You, Thank You Verrrry Verrry Much!</ELVIS> It was actually modutils that was masked out and replaced with modutils. This had not kicked in yet on the install image I was using on the netbook. I had to unmerge virtual/modutils and modutils, then I was able to emerge kmod. Both kernel 3.5.7 and 3.7.10 built and "make modules_install" worked. E.g... [aa1][root][/usr/src/linux] make modules_install INSTALL drivers/char/kcopy/kcopy.ko INSTALL drivers/usb/host/ehci-hcd.ko DEPMOD 3.7.10-gentoo Thanks again. -- Walter Dnes <waltdnes@waltdnes.org> I don't run "desktop environments"; I run useful applications ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] [SOLVED] make modules_install error; modules not recognized as ELF files 2013-03-15 7:07 ` [gentoo-user] [SOLVED] " Walter Dnes @ 2013-03-15 7:37 ` Walter Dnes 2013-03-15 9:33 ` Neil Bothwick 0 siblings, 1 reply; 9+ messages in thread From: Walter Dnes @ 2013-03-15 7:37 UTC (permalink / raw To: gentoo-user On Fri, Mar 15, 2013 at 03:07:01AM -0400, Walter Dnes wrote > It was actually modutils that was masked out and replaced with > modutils. This had not kicked in yet on the install image I was using > on the netbook. I had to unmerge virtual/modutils and modutils, then I > was able to emerge kmod. Both kernel 3.5.7 and 3.7.10 built and > "make modules_install" worked. E.g... > > [aa1][root][/usr/src/linux] make modules_install > INSTALL drivers/char/kcopy/kcopy.ko > INSTALL drivers/usb/host/ehci-hcd.ko > DEPMOD 3.7.10-gentoo > > Thanks again. For anybody who's reading this thread... you *MUST* use the "tools" flag with kmod in order to get basic stuff like a man page, lsmod, etc. -- Walter Dnes <waltdnes@waltdnes.org> I don't run "desktop environments"; I run useful applications ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] [SOLVED] make modules_install error; modules not recognized as ELF files 2013-03-15 7:37 ` Walter Dnes @ 2013-03-15 9:33 ` Neil Bothwick 2013-03-15 21:23 ` Walter Dnes 0 siblings, 1 reply; 9+ messages in thread From: Neil Bothwick @ 2013-03-15 9:33 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 484 bytes --] On Fri, 15 Mar 2013 03:37:05 -0400, Walter Dnes wrote: > For anybody who's reading this thread... you *MUST* use the "tools" > flag with kmod in order to get basic stuff like a man page, lsmod, etc. The tools flag is enabled by default in the kmod ebuild, so only those who choose to deliberately break their system with USE="-*" so they can spend time fixing it will be affected. -- Neil Bothwick Did you know that eskimos have 17 different words for linguist? [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] [SOLVED] make modules_install error; modules not recognized as ELF files 2013-03-15 9:33 ` Neil Bothwick @ 2013-03-15 21:23 ` Walter Dnes 2013-03-15 21:50 ` Neil Bothwick 2013-03-15 21:58 ` Alan McKinnon 0 siblings, 2 replies; 9+ messages in thread From: Walter Dnes @ 2013-03-15 21:23 UTC (permalink / raw To: gentoo-user On Fri, Mar 15, 2013 at 09:33:16AM +0000, Neil Bothwick wrote > On Fri, 15 Mar 2013 03:37:05 -0400, Walter Dnes wrote: > > > For anybody who's reading this thread... you *MUST* use the "tools" > > flag with kmod in order to get basic stuff like a man page, lsmod, etc. > > The tools flag is enabled by default in the kmod ebuild, so only those who > choose to deliberately break their system with USE="-*" so they can spend > time fixing it will be affected. I did try installing on that netbook without "-*" in USE. Part way through the install, I already had more exclusion statements in package.use, than I have inclusion statements in a full install with "-*". It's a tradeoff, and I'm willing to do the extra work. On an old Atom netbook, I want to avoid running unnecessary stuff. Let's just say that optimised Gentoo is way faster on the netbook than the Windows Vista that it came with. -- Walter Dnes <waltdnes@waltdnes.org> I don't run "desktop environments"; I run useful applications ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] [SOLVED] make modules_install error; modules not recognized as ELF files 2013-03-15 21:23 ` Walter Dnes @ 2013-03-15 21:50 ` Neil Bothwick 2013-03-15 21:58 ` Alan McKinnon 1 sibling, 0 replies; 9+ messages in thread From: Neil Bothwick @ 2013-03-15 21:50 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 961 bytes --] On Fri, 15 Mar 2013 17:23:45 -0400, Walter Dnes wrote: > > The tools flag is enabled by default in the kmod ebuild, so only > > those who choose to deliberately break their system with USE="-*" so > > they can spend time fixing it will be affected. > > I did try installing on that netbook without "-*" in USE. Part way > through the install, I already had more exclusion statements in > package.use, than I have inclusion statements in a full install with > "-*". It's a tradeoff, and I'm willing to do the extra work. On an old > Atom netbook, I want to avoid running unnecessary stuff. Let's just say > that optimised Gentoo is way faster on the netbook than the Windows > Vista that it came with. It sounds like you used one of the desktop profiles as a starting point. The more barebones profiles give a leaner system without the drawbacks of -*. -- Neil Bothwick Hard work has a future payoff. Laziness pays off now. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] [SOLVED] make modules_install error; modules not recognized as ELF files 2013-03-15 21:23 ` Walter Dnes 2013-03-15 21:50 ` Neil Bothwick @ 2013-03-15 21:58 ` Alan McKinnon 1 sibling, 0 replies; 9+ messages in thread From: Alan McKinnon @ 2013-03-15 21:58 UTC (permalink / raw To: gentoo-user On 15/03/2013 23:23, Walter Dnes wrote: > On Fri, Mar 15, 2013 at 09:33:16AM +0000, Neil Bothwick wrote >> On Fri, 15 Mar 2013 03:37:05 -0400, Walter Dnes wrote: >> >>> For anybody who's reading this thread... you *MUST* use the "tools" >>> flag with kmod in order to get basic stuff like a man page, lsmod, etc. >> >> The tools flag is enabled by default in the kmod ebuild, so only those who >> choose to deliberately break their system with USE="-*" so they can spend >> time fixing it will be affected. > > I did try installing on that netbook without "-*" in USE. Part way > through the install, I already had more exclusion statements in > package.use, than I have inclusion statements in a full install with > "-*". It's a tradeoff, and I'm willing to do the extra work. On an old > Atom netbook, I want to avoid running unnecessary stuff. Let's just say > that optimised Gentoo is way faster on the netbook than the Windows > Vista that it came with. > I don't understand this thing with USE="-*" Heard all arguments, don't buy it, don't wanna go there, wanna make suggestion: Have you tried using the existing tools that are already in portage, i.e. the profiles? Find a leaner profile that more suits your needs like Neil suggested (maybe default of desktop's parent), then extend and override it to suit what you want? With a custom profile you can install it everywhere without carrying around a package.use. I can only imagine what your package.use looks like (massive) and honestly, I doubt you gain very much in any realistic sense from individually setting every possible flag... -- Alan McKinnon alan.mckinnon@gmail.com ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2013-03-15 22:00 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-03-14 2:47 [gentoo-user] make modules_install error; modules not recognized as ELF files Walter Dnes 2013-03-14 21:14 ` Walter Dnes 2013-03-14 21:30 ` Paul Hartman 2013-03-15 7:07 ` [gentoo-user] [SOLVED] " Walter Dnes 2013-03-15 7:37 ` Walter Dnes 2013-03-15 9:33 ` Neil Bothwick 2013-03-15 21:23 ` Walter Dnes 2013-03-15 21:50 ` Neil Bothwick 2013-03-15 21:58 ` Alan McKinnon
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox