🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.gentoo.user
Article #170

Re: [gentoo-user] LLVM Failed to build

#170
From: Eli Schwartz
Date: Mon, 16 Nov 2026 15:00
108 lines
5733 bytes
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--------------oL3D1rAeeCpIpoTC0WkGTQF9
Content-Type: multipart/mixed; boundary="------------0cndZ4SdikVkPjEn4hSdnO4X";
 protected-headers="v1"; hp="clear"
Message-ID: <8db2bbcf-36e2-4f66-aa75-46a2abd64ebb@gentoo.org>
Date: Mon, 16 Nov 2026 09:53:26 -0500
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: [gentoo-user] LLVM Failed to build
To: gentoo-user@lists.gentoo.org
References: <a0fd23f1-bc5b-201e-97d5-93de7fd2c556@sdf.org>
Content-Language: en-US
From: Eli Schwartz <eschwartz@gentoo.org>
Autocrypt: addr=eschwartz@gentoo.org; keydata=
 xjMEZmeRNBYJKwYBBAHaRw8BAQdAYNZ7pUDWhx1i2f3p6L2ZLu4FcY18UoeGC04Gq/khqwfN
 I0VsaSBTY2h3YXJ0eiA8ZXNjaHdhcnR6QGdlbnRvby5vcmc+wpYEExYKAD4CGwMFCwkIBwMF
 FQoJCAsFFgIDAQACHgUCF4AWIQTvUdMIsc4jCIi+DYTqQj6ToWND8QUCauABDQUJCJCIWQAK
 CRDqQj6ToWND8bXlAQDhi6hUxiss56cdPbsemrWdVQe3CtkpqlQccxV/4a4/QgD/dUCR+SGn
 YxNZj6lir6i/TBr0yfSSrMtKgGO1+lClSwLOOARmZ5E0EgorBgEEAZdVAQUBAQdATT46Z06b
 1X9xjXFCYFxmq/Tj3tSEKZInDWTpoHQp4l8DAQgHwn4EGBYKACYCGwwWIQTvUdMIsc4jCIi+
 DYTqQj6ToWND8QUCauABGAUJCJCIZAAKCRDqQj6ToWND8c4xAQCWj7iWpgEJUM+wf2bZCkgM
 EKEVVdv5aBJrj6Xa22UhIQEA0bIv2t9jUqUeBMHl/6i0L28s5Mrtr0ZSX3Sg/zeyrAM=
X-Clacks-Overhead: GNU Terry Pratchett
In-Reply-To: <a0fd23f1-bc5b-201e-97d5-93de7fd2c556@sdf.org>

--------------0cndZ4SdikVkPjEn4hSdnO4X
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 11/16/26 9:00 AM, ashley wrote:
> Hello, gentoo!
>=20
> its my first time actualy posting to the mailing list, so please do tel=
l me
> if i get anything wrong :)


You did pretty well, I'd say. :) Thanks for making sure to provide all
the details upfront.


> last night i was letting portage emerge world again (as i so often do,
> given
> the shovels of vulnerabilities being found and the fact i am on the tes=
ting
> branch), and i woke up to an error from portage. i have attached all of=
 the
> output and the logs portage told me to, and i hope we can resolve this
> issue, especialy given llvm takes a long time to compile.
>=20
> i have also attacked my make.conf, if that helps at all.
>=20
> thank you in advance.


As Philipp noted already, the error in build.log is that g++ is aborting
due to running out of memory.


=46rom make.conf:


EMERGE_DEFAULT_OPTS=3D"--jobs=3D8 --load-average=3D8"
MAKEFLAGS=3D"-j8 -l8"


=46rom emerge --info:

System uname:
Linux-7.3.3-gentoo-dist-bin-x86_64-Intel-R-_Core-TM-_i5-8365U_CPU_@_1.60G=
Hz-with-glibc2.44
KiB Mem:     7753044 total,   6395524 free
KiB Swap:    8388604 total,   7165456 free

Your system is going to cry a bit if you actually end up building 8*8
things at once. I would highly advise looking into using a global
jobserver: https://wiki.gentoo.org/wiki/Steve

This would allow you to build 8 packages in parallel (emerge --jobs=3D8)
but only allow a maximum of 8 heavy GCC compiles at a time, distributed
across all packages. It will help you from blowing completely through
your available memory.

Note as well, Steve supports various mechanisms for job control,
including "only allow new jobs to be started if you have at least X
memory available", which can give better results in combination with max
jobs, than just using max jobs alone.


--=20
Eli Schwartz

--------------0cndZ4SdikVkPjEn4hSdnO4X--

--------------oL3D1rAeeCpIpoTC0WkGTQF9
Content-Type: application/pgp-signature; name="OpenPGP_signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="OpenPGP_signature.asc"

-----BEGIN PGP SIGNATURE-----

wnsEABYIACMWIQTnFNnmK0TPZHnXm3qEp9ErcA0vVwUCavsY5gUDAAAAAAAKCRCEp9ErcA0vV8Fv
AP9jGnLH7tzK4L/4tR21xcFauB90+q6TyPk+0XIopQygDwD+OVMGJ0RdLCQE2+tA8LNT1Yilr7pv
TIS9wcXk40rJXwo=
=jmz7
-----END PGP SIGNATURE-----

--------------oL3D1rAeeCpIpoTC0WkGTQF9--
Technical Details
Message-ID: <O06lz-cgMk-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <O05IR-cgwy-7@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Eli Schwartz <eschwartz@gentoo.org>
Newsgroups: linux.gentoo.user
Subject: Re: [gentoo-user] LLVM Failed to build
Date: Mon, 16 Nov 2026 16:00:01 +0100
Message-ID: <O06lz-cgMk-1@gated-at.bofh.it>
References: <O05IR-cgwy-7@gated-at.bofh.it>
List-ID: Gentoo Linux mail <gentoo-user.gentoo.org>
Reply-To: gentoo-user@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
Autocrypt: addr=eschwartz@gentoo.org; keydata=
 xjMEZmeRNBYJKwYBBAHaRw8BAQdAYNZ7pUDWhx1i2f3p6L2ZLu4FcY18UoeGC04Gq/khqwfN
 I0VsaSBTY2h3YXJ0eiA8ZXNjaHdhcnR6QGdlbnRvby5vcmc+wpYEExYKAD4CGwMFCwkIBwMF
 FQoJCAsFFgIDAQACHgUCF4AWIQTvUdMIsc4jCIi+DYTqQj6ToWND8QUCauABDQUJCJCIWQAK
 CRDqQj6ToWND8bXlAQDhi6hUxiss56cdPbsemrWdVQe3CtkpqlQccxV/4a4/QgD/dUCR+SGn
 YxNZj6lir6i/TBr0yfSSrMtKgGO1+lClSwLOOARmZ5E0EgorBgEEAZdVAQUBAQdATT46Z06b
 1X9xjXFCYFxmq/Tj3tSEKZInDWTpoHQp4l8DAQgHwn4EGBYKACYCGwwWIQTvUdMIsc4jCIi+
 DYTqQj6ToWND8QUCauABGAUJCJCIZAAKCRDqQj6ToWND8c4xAQCWj7iWpgEJUM+wf2bZCkgM
 EKEVVdv5aBJrj6Xa22UhIQEA0bIv2t9jUqUeBMHl/6i0L28s5Mrtr0ZSX3Sg/zeyrAM=
X-Clacks-Overhead: GNU Terry Pratchett
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature";
 boundary="------------oL3D1rAeeCpIpoTC0WkGTQF9"
Approved: robomod@news.nic.it
Lines: 108
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon, 16 Nov 2026 09:53:26 -0500
X-Original-Message-ID: <8db2bbcf-36e2-4f66-aa75-46a2abd64ebb@gentoo.org>
X-Original-References: <a0fd23f1-bc5b-201e-97d5-93de7fd2c556@sdf.org>