Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge erroring and packages failing to build during install
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
cyplex
n00b
n00b


Joined: 14 Apr 2025
Posts: 3

PostPosted: Wed May 28, 2025 7:05 pm    Post subject: emerge erroring and packages failing to build during install Reply with quote

Hello,
I am new to Gentoo, please forgive me for my ineptitude.

I have been running into a slew of install-halting errors during package compilation and dependency calculation when executing the emerge command during installation (and post installation in one instance, which I unsuccessfully attempted to remedy by reinstalling, leaving me here). If you are to view the raw terminal output linked below, you will see (on lines 9 and 18 ) that segmentation fault errors are being thrown before dependencies are fully calculated - sometimes these are illegal instruction errors.

I have ran many hardware benchmarks on Windows 11, as well as Memtest (from both amd64 Gentoo LiveGUI and minimal install CDs, and from my motherboard's firmware) to verify the fault does not lie there, I've even successfully compiled different programs, varying in size/complexity on both Linux Mint and Windows 11.

Relevant logs/information:
Build log: https://pastebin.com/J57D7c4P
Ebuild environment?: https://pastebin.com/aq36MRCY
emerge --info: https://pastebin.com/tYBZfReK
emerge -pqv: https://pastebin.com/KMHBbG6x
Raw terminal output: https://pastebin.com/AqzQPJd9

My apologies if I have omitted any important information, I will be sure to provide it where necessary.
Thank you for reading and/or assisting :]
Back to top
View user's profile Send private message
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 517

PostPosted: Wed May 28, 2025 7:41 pm    Post subject: Reply with quote

Welcome to the forums and thank you for providing all of the files portage suggested right away!

The build log shows ICE (internal compiler error) which in my experience happens for a few reasons (in order of frequency with which I have seen them):
  • Actual compiler bugs, which are much more likely if you play with newly implemented compiler features.
  • Faulty hardware, which can be hard to diagnose, because it might just be a single RAM cell at the "far" end of the RAM sticks.
  • Back to compiler bugs, but in some obscure pathological source files, like an initialization list of an 8MB object, whose every subobject needs an implicit conversion.
  • Messed up toolchains? For example, the upgrade from profile 17.1 to 23.0 required taking careful steps regarding the order i which the compiler and the standard library are recompiled.


All four of the above are pretty rare encounters - not many experiment with newest language features, hardware is decently resilient and gentoo profile upgrades happens once every ~5 years.

Considering those segfaults you have seen, try to reproduce it and then upload dmesg output.

EDIT: You also mentioned illegal instructions. That could be for two reasons:
  • Bad binhost config.
  • Bad CPU_FLAGS_X86

In either case, post /proc/cpuinfo.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5764
Location: Bavaria

PostPosted: Wed May 28, 2025 8:10 pm    Post subject: Reply with quote

cyplex wrote:
[...] I have been running into a slew of install-halting errors during package compilation and dependency calculation [...]

Have you stopped after the first problem occured?

You have an i9-14900K ... I have the i9-13900K ... both have problems with CPU overheating ... you tried to compile with all 32 cores =>
Code:
MAKEOPTS="-j32 -l33"

... when I do this with a big package I get immediately a MCE log entry (let me say I have one of the strongest AIO water-CPU-cooler) ... so maybe start from beginning again and start carefully with a MAKEOPTS="-j16" (and no "-l33") ... try also a -j24 ... and check the CPU temperatures all the time.
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
cyplex
n00b
n00b


Joined: 14 Apr 2025
Posts: 3

PostPosted: Wed May 28, 2025 8:37 pm    Post subject: Reply with quote

bstaletic wrote:
Welcome to the forums and thank you for providing all of the files portage suggested right away!

The build log shows ICE (internal compiler error) which in my experience happens for a few reasons […]


Thank you for the warm welcome and info :] . I've run emerge -avuDN @world and I received a segmentation fault error whilst compiling media-libs/fdk-aac-2.0.3 (compiler and subsequent emerge output: https://pastebin.com/Kix8tBe2 ). Unfortunately, I did not receive anything new from dmesg, but here is its output: https://pastebin.com/GTwzkQ8y . I've also got the /proc/cpuinfo output here: https://pastebin.com/Tt9Fv40C .

EDITS: I forgot to include the compiler output, it is now added. If you would also like the emerge --info, emerge -pqv, etc. outputs for this particular package, I can get those too.


Last edited by cyplex on Wed May 28, 2025 10:15 pm; edited 2 times in total
Back to top
View user's profile Send private message
cyplex
n00b
n00b


Joined: 14 Apr 2025
Posts: 3

PostPosted: Wed May 28, 2025 8:47 pm    Post subject: Reply with quote

pietinger wrote:
You have an i9-14900K ... I have the i9-13900K ... both have problems with CPU overheating ... you tried to compile with all 32 cores => […]


Thank you for your response. I am unfortunately familiar with the issues Raptor Lake CPUs face. My current 14900K is a ~3 month old replacement I received for my previous 13900K, which had degraded significantly. I have tried running with fewer jobs and a lower load (-j24, -j16, and inbetween with the load usually equal to the job count or one greater than it). My temperatures seem to be quite fine, but what concerns me more is the dependency calculation failing, as this appears to be a single-threaded workload; I've watched it run on different cores (usually P-core threads 8-16) and I still run into the same issue :/ .
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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



OSZAR »