Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Make Modules_Install Fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
richmaxw
n00b
n00b


Joined: 24 Jan 2020
Posts: 3

PostPosted: Tue Feb 18, 2020 4:20 am    Post subject: Make Modules_Install Fails Reply with quote

Hi,

I am trying to install kernel modules, but when I run make modules_install, the following appears:

Code:
  INSTALL virt/lib/irqbypass.ko
  DEPMOD  4.19.97-gentoo
  depmod: ERROR: openat(1023, 4.19.97-gentoo-x86_64, O_RDONLY): Too many open files
  depmod: ERROR: openat(1023, kernel, O_RDONLY): Too many open files
  depmod: ERROR: openat(1023, arch, O_RDONLY): Too many open files
  depmod: ERROR: openat(1023, crypto, O_RDONLY): Too many open files
  depmod: ERROR: openat(1023, drivers, O_RDONLY): Too many open files
  depmod: ERROR: openat(1023, fs, O_RDONLY): Too many open files
  depmod: ERROR: openat(1023, lib, O_RDONLY): Too many open files
  depmod: ERROR: openat(1023, net, O_RDONLY): Too many open files
  depmod: ERROR: openat(1023, virt, O_RDONLY): Too many open files
  depmod: ERROR: openat(1023, x86, O_RDONLY): Too many open files
  depmod: ERROR: could not create module /lib/modules/4.19.97-gentoo/4.19.97-gentoo-x86_64/4.19.97-gentoo-x86_64/4.19.97-gentoo-x86_64/4.19.97-gentoo-x86_64/4.19.97-gentoo-x86_64/4.19.97-gento


The last line goes on for a very long time, eventually ending with "4.19.97-gentoo-x86_64/kernel/crypto/arc4.ko: File name too long." I configured the kernel using make menuconfig. Aside from this, the system is working ok. I am using btrfs RAID 10. Here is the sequence of commands leading up to this point:

  1. make -j8
  2. make modules
  3. make modules_install

Thanks,

Rich
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7593
Location: Goose Creek SC

PostPosted: Tue Feb 18, 2020 12:21 pm    Post subject: Reply with quote

suggest leaving out
1. make -j8
2. make modules
just:
Code:
cd /usr/src/linux
make modules_install

customary complete stanza:
Code:
cd /usr/src/linux
make menuconfig
make && make modules_install && make install

_________________
Defund the FCC.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6342

PostPosted: Tue Feb 18, 2020 6:48 pm    Post subject: Reply with quote

/lib/modules/4.19.97-gentoo/4.19.97-gentoo-x86_64 is a symlink to itself and shouldn't be in that directory, delete it
Back to top
View user's profile Send private message
richmaxw
n00b
n00b


Joined: 24 Jan 2020
Posts: 3

PostPosted: Wed Feb 19, 2020 1:46 am    Post subject: Reply with quote

Ant P. wrote:
/lib/modules/4.19.97-gentoo/4.19.97-gentoo-x86_64 is a symlink to itself and shouldn't be in that directory, delete it


That fixed it. Thanks! Is that something I must have added or is this a bug?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6342

PostPosted: Wed Feb 19, 2020 5:13 am    Post subject: Reply with quote

It's not something that should happen under normal circumstances, but a lot of things could've led to it being there. Not worth worrying about unless it happens again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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