Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jun 2021 21:41:43 -0700
From:      Mark Millard via freebsd-ports <freebsd-ports@freebsd.org>
To:        bob prohaska <fbsd@www.zefox.net>
Cc:        FreeBSD ports <freebsd-ports@freebsd.org>, freebsd-arm <freebsd-arm@freebsd.org>, FreeBSD Toolchain <freebsd-toolchain@freebsd.org>
Subject:   Re: llvm10 build failure on Rpi3
Message-ID:  <F4299C8B-6A14-4BFD-A272-7559931D1E24@yahoo.com>
In-Reply-To: <20210626035234.GA18893@www.zefox.net>
References:  <6F0CF2F3-A298-4CEA-AA07-B79810F3E8CF@yahoo.com> <20210623222838.GA85566@www.zefox.net> <8E78EE69-44A2-429E-AB65-941537DE25A0@yahoo.com> <20210624043000.GA87740@www.zefox.net> <22B941CA-3AFF-42FD-98D1-D40EC2F6EC43@yahoo.com> <20210624160109.GB87740@www.zefox.net> <3B41633E-AAFC-422A-8D73-3B1B001023F0@yahoo.com> <20210625001651.GA98214@www.zefox.net> <D0845F74-A9A9-4588-910B-B55F9216C9C9@yahoo.com> <5A26965D-2DFD-4A46-A171-A382A61E3CFB@yahoo.com> <20210626035234.GA18893@www.zefox.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2021-Jun-25, at 20:52, bob prohaska <fbsd at www.zefox.net> wrote:

> On Fri, Jun 25, 2021 at 07:52:32PM -0700, Mark Millard wrote:
> [huge snip, hope the quotes are still correct]
>>> So I'm going to suggest using an official kernel build
>>> as built by the ci.freebsd.org systems, one that is not
>>> GENERIC-MMCCAM. In:
>>>=20
>=20
> World and kernel are updating now to -current as of yesterday.
> I'll replace GENERIC-MMCCAM with GENERIC for simplicity.

I still strongly recommend doing some testing of
official builds instead of your personal builds.
That includes kernel and world, if possible.

Until an official build shows the problem, you
are not as likely to get the problem worked on.

(And, so far, you have the only known context for
getting the problem.)

>>>=20
>>> I gather that no RPi4B is available to move the media
>>> to? (Having more RAM but being able to force much of
>>> it to be ignored can be handy as a test environment
>>> for this kind of context.)
>>>=20
>=20
> It's still patiently chewing away at www/chromium single-threaded.

Note that system-clang just got updates for stable/11 stable/12
stable/13 and main for a defect that prevents building
www/chromium with a clang that has assertions enabled (a form
of debug build contribution):

The branch main has been updated by dim:

URL:=20
=
https://cgit.FreeBSD.org/src/commit/?id=3De7e517981a6591c79fb49cd8810361b0=
f3ad5983


commit e7e517981a6591c79fb49cd8810361b0f3ad5983
Author:     Dimitry Andric <dim at FreeBSD.org>
AuthorDate: 2021-06-21 18:46:34 +0000
Commit:     Dimitry Andric <dim at FreeBSD.org>
CommitDate: 2021-06-21 18:48:37 +0000

    Fix clang assertion while building recent www/chromium
   =20
    Merge commit c8227f06b335 from llvm git (by Arthur Eubanks):
   =20
      [clang] Don't assert in EmitAggregateCopy on trivial_abi types
   =20
      Fixes PR42961.
   =20
      Reviewed By: rnk
   =20
      Differential Revision:=20
https://reviews.llvm.org/D97872

   =20
    PR:             256721, 255570
    Reported by:    jbeich
    MFC after:      3 days
---
 contrib/llvm-project/clang/lib/CodeGen/CGExprAgg.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/llvm-project/clang/lib/CodeGen/CGExprAgg.cpp =
b/contrib/llvm-project/clang/lib/CodeGen/CGExprAgg.cpp
index 60ea1b2af037..f3ab91559d30 100644
--- a/contrib/llvm-project/clang/lib/CodeGen/CGExprAgg.cpp
+++ b/contrib/llvm-project/clang/lib/CodeGen/CGExprAgg.cpp
@@ -2056,7 +2056,7 @@ void CodeGenFunction::EmitAggregateCopy(LValue =
Dest, LValue Src, QualType Ty,
               Record->hasTrivialCopyAssignment() ||
               Record->hasTrivialMoveConstructor() ||
               Record->hasTrivialMoveAssignment() ||
-              Record->isUnion()) &&
+              Record->hasAttr<TrivialABIAttr>() || Record->isUnion()) =
&&
              "Trying to aggregate-copy a type without a trivial =
copy/move "
              "constructor or assignment operator");
       // Ignore empty classes in C++.

> My mistake, but best to finish what's started.. Now that how to
> use the packages created is known they can be tested.=20
>=20
>>=20
>> So: no warning about being mis-tuned vs. the 1 GiByte of
>> used RAM. (I do not know about your context for this.)
>>=20
>=20
> My Pi3 does report too much swap. But I remain uncertain about
> the practical significance of the warning. I gather the issue
> is that a certain amount memory is set aside to "index", for
> lack of a better word, the data stored in swap. If there's too
> much swap relative to index, not all swap can be used. That
> seems not much different than running out of swap.=20

You are having problems that are hard to issolate and are also
effectively asserting this warning does not indicate an issue
that is contributing. If it were me, I'd be trying to find out
if the failure can be reproduced when the FreeBSD test involved
classifies that no warning is appropriate.

>> All the ports that devel/llvm10 needs are already in place
>> for poudriere's use for this experiment.

I should have mentioned that I have not added any junk:???
controls.

And my building in a releng/13 context means that 0xA5A5A5A5u
would not be happening on allocation. Stronger: the build
context uses my typical forced MALLOC_PRODUCTION style of build.

>> Another point is:
>>=20
>> # more /usr/local/etc/poudriere.d/options/devel_llvm10/options=20
>> # This file is auto-generated by 'make config'.
>> # Options for llvm10-10.0.1_3
>> _OPTIONS_READ=3Dllvm10-10.0.1_3
>> _FILE_COMPLETE_OPTIONS_LIST=3DBE_AMDGPU CLANG DOCS EXTRAS LIT LLD =
LLDB LLD_LINK OPENMP PYCLANG BE_FREEBSD BE_NATIVE BE_STANDARD
>> OPTIONS_FILE_SET+=3DBE_AMDGPU
>> OPTIONS_FILE_SET+=3DCLANG
>> OPTIONS_FILE_SET+=3DDOCS
>> OPTIONS_FILE_SET+=3DEXTRAS
>> OPTIONS_FILE_SET+=3DLIT
>> OPTIONS_FILE_SET+=3DLLD
>> OPTIONS_FILE_SET+=3DLLDB
>> OPTIONS_FILE_SET+=3DLLD_LINK
>> OPTIONS_FILE_SET+=3DOPENMP
>> OPTIONS_FILE_UNSET+=3DPYCLANG
>> OPTIONS_FILE_UNSET+=3DBE_FREEBSD
>> OPTIONS_FILE_SET+=3DBE_NATIVE
>> OPTIONS_FILE_UNSET+=3DBE_STANDARD
>>=20
>> (So I normally build less than BE_STANDARD or
>> BE_FREEBSD would build.)
>=20
> I'm my own worst enemy when it comes to customization.
> The less changed the better 8-)

Unless it avoids a problem? (I do it to avoid wasted
time.) I'm not claiming it would avoid the problem,
but it is one of the things that could be tried to
see what happens.

>> We will see if this is enough common context to
>> replicate the general type of build problem.
>> (Your details very from one attempt to the next
>> so an exact match need not be expected, even if
>> if this does also fail.)
>>=20
>=20
> If you replicate the problem I'll be very pleased.
> And just slightly relieved.
>=20
> My suspcions still center around  things I might have=20
> done to corrupt /usr/local/poudriere.

Poudriere is not involved in initializing memory for
llvm-tblgen's internal memory use.

It could be that jails more generally have a problem,
not just poudriere ones. But that would be a FreeBSD
issue, not a poudriere one.

> That leaves
> me wondering how to proceed after world, kernel and ports
> are updated. Delete /usr/local/poudriere (which would toss
> the packages created so far), delete only the jail (not
> sure if that'll delete existing packages library) or=20
> something more selective that I don't know about?=20

I see no likely gain from going down this path. Blaming
poudriere for lack of memory initialization in llvm-tblgen
makes no sense to me at all: poudriere is not involved
in that memory allocation or what the bytes are set to
before llvm-tblgen get the address of the memory.

> The Pi3B is purely experimental, but I'd rather not throw=20
> away usable progress given the extreme slowness of that
> progress.=20
>=20



=3D=3D=3D
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F4299C8B-6A14-4BFD-A272-7559931D1E24>