From nobody Mon Jan 24 18:29:08 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 0B81719777A5 for ; Mon, 24 Jan 2022 18:29:20 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-24.consmr.mail.gq1.yahoo.com (sonic304-24.consmr.mail.gq1.yahoo.com [98.137.68.205]) (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 4JjJRM15vfz4n7n for ; Mon, 24 Jan 2022 18:29:19 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1643048951; bh=LZUTcLsZaRUrqMqt3MbJqo+/lSq8u/MuoVmYxuIj+N8=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=DMFdY/zTDYmXFs05vdIMIbgisLPvtNW/L9TiIsOx1rzhkCvEiIiLnJTARzsVKYLxFNxLfHOgTSK7RFfyP2QQKZABWJKSLDbiAVqxAWKunc0Ep/n9TM3Yjbn8gBV6HLJgDsgDgA8++iDhGTjyZSGXTOViir51OHDx17Z7vcgt0NQnom/hin6IJ9tylx/tyAr9JQj9W0pE3wMLXUUbmnb8VHAFRrSJASwYjhG9N9OuaZEFS8KZcpGGVVB+QkcNYChBeza16hr6Hah2WTuz+t4M8sstsOkXHYw8fy9zL1Ec+qZexXM5E8fLRGyHNybHR/zTn6+r56CtlXSjyRcBlHo4tg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1643048951; bh=mzorULgZDUZeMibEFvEez2RmIoU6INyj8dm50GkHFU+=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=H9tv2/7eyzxgT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yIAIqSDlHG gpyIAx.Ey8erQH3jeqTrN7GasdY1A96Os6kJIZv9Qt4HnhsyYpUD5UDx7SwR7.vYi20O_mMj809G .fMAb07ZG.4r9L2EhtFUtwJY.28qGzYdCWytF8cHwtQEHomOiVXgym8e7NWxki8JOYmcg.EEwQ.d Kpmq9XZy.7dHq15eyoGWVXO0wd8j52l7PVAB0SXue3M1iFrayruvyVRFgIauRB8Lj1EFA.Ds2N0c 2ClhyvqIVowb7eHYrjQvk.BrpNQ4HETFtPglKR7J7AcuQIaQG8L1pAXIk.v5zhGA6yOUY3Vqx.LP B6uEKmYIHbq2OKplYDIVWLp329Azmxyx9rXGyUnjedeOvfL3Dj.h2G0KYTP5_SDly9xkw9qqr_k7 yCG2lpmxa1xachZaG3eqqg0dgbsNZPRBOCBoqY_Skcj2Oz4kBW5QNTRP6eD16Xsxu97L3.1mPsuj kvFlHo2uGW2RC3mnu00NIX5zKfqfJTMWSr09zIrzfRxiB9BhEQfUDChxSD9h3OGZQt3xUrWxliyf mcJJiZXF4qhngJw-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Mon, 24 Jan 2022 18:29:11 +0000 Received: by kubenode525.mail-prod1.omega.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 5bea33f7cb9362769eba4560ed4a8159; Mon, 24 Jan 2022 18:29:09 +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: <5FAC2B2C-7740-435E-A183-FB3EF1FCE7F9@yahoo.com> Date: Mon, 24 Jan 2022 10:29:08 -0800 Cc: Free BSD Content-Transfer-Encoding: quoted-printable Message-Id: <1CB4EDCD-0998-4363-8CEA-14854EB76FA3@yahoo.com> References: <20220121031601.GA26308@www.zefox.net> <8595CFBD-DC65-4472-A0A1-8A7BE1C031D6@yahoo.com> <20220124165449.GA39982@www.zefox.net> <5FAC2B2C-7740-435E-A183-FB3EF1FCE7F9@yahoo.com> To: bob prohaska X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4JjJRM15vfz4n7n X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b="DMFdY/zT"; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.205 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.48 / 15.00]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-0.98)[-0.982]; 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.68.205:from]; MLMMJ_DEST(0.00)[freebsd-arm]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.205:from]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N On 2022-Jan-24, at 10:26, Mark Millard wrote: > On 2022-Jan-24, at 08:54, bob prohaska wrote: >=20 >> 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 >=20 > To look at the different frames: >=20 > (lldb) up 1 > (lldb) bt > . . . (output) . . . > (lldb) up 1 > (lldb) bt > . . . (output) . . . >=20 > and so on until #5 has been displayed. >=20 >> [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? >=20 > 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: >=20 > # git -C /usr/main-src status > . . . (output --if any) . . . >=20 > You would likely need /usr/src instead. >=20 > Using git diff would show the specific differences. In my > context for main [so: 14] that would look like (if no > differences were found): >=20 > # git -C /usr/main-src diff > . . . (output --if any) . . . >=20 > You would likely need /usr/src . >=20 > If these do not show anything, the source code is not > likely to be the problem. >=20 That last is a bad wording on my part: corrupted source code is not likely to be the problem. =3D=3D=3D Mark Millard marklmi at yahoo.com