From nobody Mon Jan 24 18:26:26 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7687C1974C52 for ; Mon, 24 Jan 2022 18:26:39 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-21.consmr.mail.gq1.yahoo.com (sonic309-21.consmr.mail.gq1.yahoo.com [98.137.65.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4JjJNG2rF7z4ll2 for ; Mon, 24 Jan 2022 18:26:38 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1643048789; bh=9XTNxZQhjjWtp5NL6PrWeeB4+OmN+EPDELte3cwhEAk=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=Kip4i+JEF0sAwggGmll/1aZRFJi4qRL/CAlQaVVhbOX/jxVwjBtA2Fs071H8uFzkdV1Ww1MpRNI+T/fMXHZ+s5sfys5VBwS1iFhxMPw4lc6KPQSRXfYcaNXncXUwCyuwVC6GGEQ8Wj6YvGHGEhYiUiZh6XIxKuSlf7FO3+OfRuzp74D8g7mhC/LWwS6qaOlqYPTW2uxBiOA1VXpD80JoKjVEpwaN2749Rt1y/7LOUN0fwN9LuySHIU6EzoemVIsWNC1UzPCFpPZsI9HhvThQkmlr+8YkbasbuWL+boMKgwTXGycyoochyD/82vaNqxeKMgr0MnwZq+To0zMiVEX5zw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1643048789; bh=h7i4kXyesrKszqMKOthmw//VZdw25M4j0HHcrPFRYTi=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=BpQQtIk3P4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I48UEIAIeBRbyrhkBNXBg9fKsowhzDKAXKE88CKlx3ZVh7KP82HIFaTPxbGGZKByRAHOda ZC16SD4kWvsdaciXkJsIoEw3xcnDadjtGGxiIvzR.sJ3ciZ304AvhrnpWTrld2YNXMKieccNtQkF ZMZXxEVJmkcV4Jr43.GDtkbTR5ZnpnELePDupd17IIb0JB34yDIYvuD0fERE7l0Upt27iO8kvJm0 tD9O96nGgrPGq9XYbaBIakvZ_dR4xb1VOm8yAXCwFZpfbNHsm0NvkhBrNnPO6y18KpZY3Tn8LdWI XP_2FHlMspQc5w0F5Xqsw3YkkCa7RrYnDWuMj_fcZbqOalhsAKnz3nGJQkzgpMvCcJnXWhnmE9ox yibG2zHQLVHxG8r.WDUVgtcM6SazAzjsodiL0xPVWkhkSXBSVlZlWfikEUTqu_yURjeVmYllahRx s0ubJqrALpfOjUoJUA11rUgcXIqJmoj0P1JzcV80A6qF8zR7J4AvtNwt_kbLxURV2vXdtqb6AqEZ BAEuSUZJvpYM4 X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Mon, 24 Jan 2022 18:26:29 +0000 Received: by kubenode512.mail-prod1.omega.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 80d7ae90596d8bb0063ede849db057dd; Mon, 24 Jan 2022 18:26:28 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Troubles building world on stable/13 From: Mark Millard In-Reply-To: <20220124165449.GA39982@www.zefox.net> Date: Mon, 24 Jan 2022 10:26:26 -0800 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <5FAC2B2C-7740-435E-A183-FB3EF1FCE7F9@yahoo.com> References: <20220121031601.GA26308@www.zefox.net> <8595CFBD-DC65-4472-A0A1-8A7BE1C031D6@yahoo.com> <20220124165449.GA39982@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4JjJNG2rF7z4ll2 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=Kip4i+JE; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.147 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.50 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.147:from]; MLMMJ_DEST(0.00)[freebsd-arm]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.65.147:from]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N On 2022-Jan-24, at 08:54, bob prohaska wrote: > On Fri, Jan 21, 2022 at 11:14:32PM -0800, Mark Millard wrote: >>> On 2022-Jan-20, at 22:00, Mark Millard wrote: >>>=20 >>=20 >> It does no good for me since I do not get a failure, >> but you might try (instead of exectuing the .sh file) >> (I used \'s to split the huge line): >>=20 >> lldb -- "/usr/bin/c++" "-cc1" "-triple" "aarch64-unknown-freebsd13.0" = "-emit-obj" "--mrelax-relocations" \ >> "-disable-free" "-disable-llvm-verifier" "-discard-value-names" = "-main-file-name" "gmock_main.cc" \ >> "-mrelocation-model" "static" "-mframe-pointer=3Dnon-leaf" = "-fno-rounding-math" "-mconstructor-aliases" \ >> "-munwind-tables" "-target-cpu" "generic" "-target-feature" "+neon" = "-target-abi" "aapcs" \ >> "-fallow-half-arguments-and-returns" "-debug-info-kind=3Dstandalone" = "-dwarf-version=3D4" \ >> "-debugger-tuning=3Dgdb" \ >> = "-fcoverage-compilation-dir=3D/usr/obj/usr/src/arm64.aarch64/lib/googletes= t/gmock_main" \ >> "-O2" "-Wno-format-zero-length" "-Wsystem-headers" "-Werror" "-Wall" = "-Wno-format-y2k" "-W" \ >> "-Wno-unused-parameter" "-Wpointer-arith" "-Wreturn-type" = "-Wcast-qual" "-Wwrite-strings" "-Wswitch" \ >> "-Wshadow" "-Wunused-parameter" "-Wcast-align" "-Wchar-subscripts" = "-Wredundant-decls" \ >> "-Wmissing-variable-declarations" "-Wno-empty-body" = "-Wno-string-plus-int" "-Wno-unused-const-variable" \ >> "-Wno-error=3Dunused-but-set-variable" "-Wno-deprecated-declarations" = "-Wno-deprecated-copy" \ >> "-Wno-c++11-extensions" "-std=3Dc++11" "-fdeprecated-macro" \ >> = "-fdebug-compilation-dir=3D/usr/obj/usr/src/arm64.aarch64/lib/googletest/g= mock_main" \ >> "-ferror-limit" "19" "-stack-protector" "2" "-fno-signed-char" = "-fgnuc-version=3D4.2.1" \ >> "-fcxx-exceptions" "-fexceptions" "-vectorize-loops" "-vectorize-slp" = "-faddrsig" \ >> "-D__GCC_HAVE_DWARF2_CFI_ASM=3D1" "-x" "c++" "gmock_main-f5c28a.cpp" >>=20 >> and then "run" at the (lldb) prompt. It might stop and let you >> get a backtrace (bt command) in addition to whatever it reports >> about the stoppage. >=20 > That seems to have worked, to some extent. Here's the transcript, in = single-user mode: >=20 > root@pelorus:/usr/src #=20 > root@pelorus:/usr/src # lldb -- "/usr/bin/c++" "-cc1" "-triple" = "aarch64-unknown-freebsd13.0" "-emit-obj" "--mrelax-relocations" \ >> . . . >> "-fcxx-exceptions" "-fexceptions" "-vectorize-loops" "-vectorize-slp" = "-faddrsig" \ >> "-D__GCC_HAVE_DWARF2_CFI_ASM=3D1" "-x" "c++" "gmock_main-f5c28a.cpp" > (lldb) target create "/usr/bin/c++" >=20 > Current executable set to '/usr/bin/c++' (aarch64). > (lldb) settings set -- target.run-args "-cc1" . . . "c++" = "gmock_main-f5c28a.cpp" > (lldb)=20 > (lldb) run > Process 58516 launched: '/usr/bin/c++' (aarch64) > Process 58516 stopped > * thread #1, name =3D 'c++', stop reason =3D signal SIGSEGV: invalid = address (fault address: 0x1) > frame #0: 0x0000000002df7444 c++`::ProcessDeclAttributeList() = [inlined] getPointer at PointerIntPair.h:59:58 > 56 =09 > 57 explicit PointerIntPair(PointerTy PtrVal) { = initWithPointer(PtrVal); } > 58 =09 > -> 59 PointerTy getPointer() const { return = Info::getPointer(Value); } > 60 =09 > 61 IntType getInt() const { return = (IntType)Info::getInt(Value); } > 62 =09 > (lldb) bt > * thread #1, name =3D 'c++', stop reason =3D signal SIGSEGV: invalid = address (fault address: 0x1) > * frame #0: 0x0000000002df7444 c++`::ProcessDeclAttributeList() = [inlined] getPointer at PointerIntPair.h:59:58 > frame #1: 0x0000000002df7444 c++`::ProcessDeclAttributeList() = [inlined] isNull at PointerUnion.h:172:43 > frame #2: 0x0000000002df7444 c++`::ProcessDeclAttributeList() = [inlined] empty at TinyPtrVector.h:166:13 > frame #3: 0x0000000002df7444 c++`::ProcessDeclAttributeList() = [inlined] empty at ParsedAttr.h:873:40 > frame #4: 0x0000000002df7444 c++`::ProcessDeclAttributeList() at = SemaDeclAttr.cpp:8449:16 > frame #5: 0x000000000317e784 = c++`::ActOnClassTemplateSpecialization() at SemaTemplate.cpp:8537:3 > (lldb)=20 To look at the different frames: (lldb) up 1 (lldb) bt . . . (output) . . . (lldb) up 1 (lldb) bt . . . (output) . . . and so on until #5 has been displayed. > [repeated bt commands seem to duplicate the same output] >=20 > I can't make much sense of it, but perhaps others can. It does look > as if I've somehow corrupted c++. Is there some way to bootstrap > past the defect? All the clean targets I've tried (clean, cleandir,=20 > cleanworld, rm -rf /usr/obj, cleandepend) seem to have no effect, > singly and in combination.=20 >=20 > Is it possible to simply delete /usr/src/contrib/llvm-project and=20 > let git reconstruct it, then force a compiler rebuild somwhow? Using git status should report on any files that do not match what is in .git . In my context for main [so: 14] that would be: # git -C /usr/main-src status . . . (output --if any) . . . You would likely need /usr/src instead. Using git diff would show the specific differences. In my context for main [so: 14] that would look like (if no differences were found): # git -C /usr/main-src diff . . . (output --if any) . . . You would likely need /usr/src . If these do not show anything, the source code is not likely to be the problem. =3D=3D=3D Mark Millard marklmi at yahoo.com