View previous topic :: View next topic |
Author |
Message |
ian848uig n00b
Joined: 21 Sep 2023 Posts: 42 Location: Latin America
|
Posted: Sun Jun 16, 2024 10:59 pm Post subject: Gentoo Kernel fails to compile: emake failed |
|
|
With the attempt to update from version 6.9.3 to version 6.9.5 the kernel fails to compile: https://pastebin.com/ESkJi0cT
NOTE: it happened when trying to update also to 6.9.4
Any suggestions? Also enlarge the /boot partition since before its capacity was from 300MB to 900MB (approximately) by shrinking /home _________________ I like everything that is Linux, free and open source software. I am a teenager |
|
Back to top |
|
|
sublogic Apprentice
Joined: 21 Mar 2022 Posts: 269 Location: Pennsylvania, USA
|
Posted: Mon Jun 17, 2024 1:28 am Post subject: |
|
|
In your build log I see: Code: | make -j32 O=/var/tmp/portage/sys-kernel/gentoo-kernel-6.9.5/work/modprep [... rest of line elided ...] | and further down, 3 lines above the first line with the word "Error", Code: | make: cannot create temporary file /var/tmp/portage/sys-kernel/gentoo-kernel-6.9.5/temp/Gmpgmbwg: Too many open files |
If you really have 32 cores (or hyperthreads) and 64 GB to support -j32, you could try to increase your ulimit for open files at the command prompt before running emerge (ulimit -n 2048 maybe). Otherwise, try lowering the -j setting. |
|
Back to top |
|
|
ian848uig n00b
Joined: 21 Sep 2023 Posts: 42 Location: Latin America
|
Posted: Mon Jun 17, 2024 1:59 am Post subject: |
|
|
I tried ulimit -n 2048 and 8192 but nothing, plus my processor does have 32 cores and is the AMD Ryzen 5 5950X. and activated all cores from the UEFI firmware.
I'll still check the configuration _________________ I like everything that is Linux, free and open source software. I am a teenager |
|
Back to top |
|
|
ian848uig n00b
Joined: 21 Sep 2023 Posts: 42 Location: Latin America
|
Posted: Mon Jun 17, 2024 8:04 pm Post subject: |
|
|
All 32 cores are activated, all system monitors show 32 instead of 16. _________________ I like everything that is Linux, free and open source software. I am a teenager |
|
Back to top |
|
|
sublogic Apprentice
Joined: 21 Mar 2022 Posts: 269 Location: Pennsylvania, USA
|
Posted: Tue Jun 18, 2024 12:43 am Post subject: |
|
|
(Silly me. ulimit is per process. Having 32 of them wouldn't make a difference.)
So maybe it's the global limit ? Code: | $cat /proc/sys/fs/file-nr
8224 0 3277329 | The three numbers are: number of open files; number of open files not in use; maximum number of open files.
(Not sure what "files not in use" means. Anyway.)
What does that show on your system ? Is the number of open files close to the limit before you start emerge ?
This is unusual. I've never seen the "Too many open files" error.
EDIT: You can also run this, in a separate terminal window, while you run emerge: Code: | watch -n 1 cat /proc/sys/fs/file-nr |
|
|
Back to top |
|
|
ian848uig n00b
Joined: 21 Sep 2023 Posts: 42 Location: Latin America
|
Posted: Wed Jun 19, 2024 10:23 pm Post subject: |
|
|
The maximum number of files globally returned by cat /proc/sys/fs/file-nr is 2^63 (Approximately) subtracting -1.
In addition, there is not even 1% of file usage with an average of 10,500 (Approximate) _________________ I like everything that is Linux, free and open source software. I am a teenager |
|
Back to top |
|
|
sublogic Apprentice
Joined: 21 Mar 2022 Posts: 269 Location: Pennsylvania, USA
|
Posted: Fri Jun 21, 2024 1:42 am Post subject: |
|
|
Maybe I'm sending you down the wrong path. Can you wgetpaste the other outputs suggested by portage ? Code: | * If you need support, post the output of `emerge --info '=sys-kernel/gentoo-kernel-6.9.5::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-kernel/gentoo-kernel-6.9.5::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-kernel/gentoo-kernel-6.9.5/temp/build.log'. |
That "Too many open files" error sure is weird, though. |
|
Back to top |
|
|
ian848uig n00b
Joined: 21 Sep 2023 Posts: 42 Location: Latin America
|
Posted: Fri Jun 21, 2024 4:46 pm Post subject: |
|
|
More information is found at: https://pastebin.com/8c2qWJR2
Furthermore, I had put the build log in at the time of creating the first post. _________________ I like everything that is Linux, free and open source software. I am a teenager |
|
Back to top |
|
|
sublogic Apprentice
Joined: 21 Mar 2022 Posts: 269 Location: Pennsylvania, USA
|
Posted: Sat Jun 22, 2024 1:12 am Post subject: |
|
|
ian848uig wrote: | Furthermore, I had put the build log in at the time of creating the first post. | That was the emerge output, wasn't it ? The build log is yet another file, as indicated near the end of the emerge output.
At the moment, I'm stumped. I don't know if the build log will help but we won't know until we see it... |
|
Back to top |
|
|
ian848uig n00b
Joined: 21 Sep 2023 Posts: 42 Location: Latin America
|
Posted: Mon Jun 24, 2024 10:56 pm Post subject: |
|
|
I hope this is the build.log: https://pastebin.com/5fL0hD6t _________________ I like everything that is Linux, free and open source software. I am a teenager |
|
Back to top |
|
|
sublogic Apprentice
Joined: 21 Mar 2022 Posts: 269 Location: Pennsylvania, USA
|
Posted: Tue Jun 25, 2024 10:39 pm Post subject: |
|
|
Was it /var/tmp/portage/sys-kernel/gentoo-kernel-6.9.6/temp/build.log ?
It looks almost identical to the first file you posted, except that the new one is for gentoo-kernel-6.9.6 instead of gentoo-kernel-6.9.5 .
I'm still stumped. The Error 2 messages stand for No such file or directory and they come a few lines after make: cannot create temporary file <name snipped>: Too many open files . Which makes sense if it went looking for a file that it failed to create, but why were there too many open files in the first place ? |
|
Back to top |
|
|
ian848uig n00b
Joined: 21 Sep 2023 Posts: 42 Location: Latin America
|
Posted: Wed Jun 26, 2024 9:48 pm Post subject: |
|
|
That's what I don't know, because of the error that there are "too many open files" emerges returns exit 1.
and it didn't happen before, this installation is not more than a month old and I think that in the second week it started to happen, also I am doing everything from chroot because when I start the kernel it pulls the dracut console, I think it will be solved when the size increases from /boot and removing the .old from /boot and re-emerged linux-firmware. (NOTE: Tried booting and now you can mount the ramdisk)
The problem that gentoo-kernel fails to compile started during the installation and still persists. _________________ I like everything that is Linux, free and open source software. I am a teenager |
|
Back to top |
|
|
|