Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953135 - llvm-core/clang: should check for disk space, especially with LTO
Summary: llvm-core/clang: should check for disk space, especially with LTO
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-05 01:36 UTC by NRK
Modified: 2025-04-05 01:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
clang-18 build log (clang-18.1.8-r6:20250405-005520.log.zst,148.71 KB, application/zstd)
2025-04-05 01:36 UTC, NRK
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NRK 2025-04-05 01:36:22 UTC
Created attachment 923579 [details]
clang-18 build log

I usually compile in my tmpfs (sized 4G) which has worked fine up to clang-16. A couple of weeks ago I was upgrading to clang-18 (skipped 17) and I noticed the build failing at the linking stage simply saying "failed" and nothing else.

Initially I thought it was due to going OOM or maybe due to LTO but after my ~3rd emerge I got lucky and it gave a useful error about running out of disk space.

I don't have the older logs, as they got auto-cleaned, but here's a recent clang-18 build log with LTO that used about ~4.6G of disk space.

 * Final size of build directory: 4923080 KiB (  4.6 GiB)
 * Final size of installed tree:   267288 KiB (261.0 MiB)

The ebuild should really check for disk space, especially if LTO is used, to avoid wasting user's time on a build that would've failed (with a non-debug-able error message nonetheless).