Re: strange compiling problems on AMD Ryzen 5 5600G with freebsd-current

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Wed, 05 Jan 2022 21:19:08 UTC
On 5 Jan 2022, at 21:49, Steve Kargl <sgk@troutmask.apl.washington.edu> wrote:
> 
> On Wed, Jan 05, 2022 at 08:14:54PM +0000, tech-lists wrote:
>> On Wed, Jan 05, 2022 at 06:55:38PM +1100, Peter Jeremy wrote:
>>> 1) Can you share more details on "fails to build".  Are you in a position
>>>  to share a build log.
>> 
>> The last part of the build log from llvm13 is here:
>> https://cloud.zyxst.net/~john/FreeBSD/current/amd64/llvm13.log
>> 
>> It's not the entire build log. i'll try making a better one
> 
> Well, did you try the help hint?
> 
> ===> Compilation failed unexpectedly.
> Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
> the maintainer.
> 
> This would isolate what is actually failing.  With that stated, I note
> the first line of the log contains "FAILED: tools/flang/...".  When you
> configure llvm13 disable the building of flang (i.e., the Fortran compiler).

Indeed, building flang is usually pretty memory intensive, so it is
likely that the OP is running into OOM errors. (Though the log is only
the last few lines, hiding the actual error.)

Turning off flang would help in that case, as would turning off make
jobs.

-Dimitry