From nobody Mon Jan 24 16:54:49 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 1B5151982746 for ; Mon, 24 Jan 2022 16:54:52 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "www.zefox.com", Issuer "www.zefox.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JjGLM0TJlz3LlX for ; Mon, 24 Jan 2022 16:54:50 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.16.1/8.15.2) with ESMTPS id 20OGsoMo040060 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 24 Jan 2022 08:54:50 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.16.1/8.15.2/Submit) id 20OGsoLQ040057; Mon, 24 Jan 2022 08:54:50 -0800 (PST) (envelope-from fbsd) Date: Mon, 24 Jan 2022 08:54:49 -0800 From: bob prohaska To: Mark Millard Cc: freebsd-arm@freebsd.org, bob prohaska Subject: Re: Troubles building world on stable/13 Message-ID: <20220124165449.GA39982@www.zefox.net> References: <20220121031601.GA26308@www.zefox.net> <8595CFBD-DC65-4472-A0A1-8A7BE1C031D6@yahoo.com> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <8595CFBD-DC65-4472-A0A1-8A7BE1C031D6@yahoo.com> X-Rspamd-Queue-Id: 4JjGLM0TJlz3LlX X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of fbsd@www.zefox.net has no SPF policy when checking 50.1.20.27) smtp.mailfrom=fbsd@www.zefox.net X-Spamd-Result: default: False [-1.10 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; WWW_DOT_DOMAIN(0.50)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zefox.net]; AUTH_NA(1.00)[]; R_SPF_NA(0.00)[no SPF record]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-arm]; FREEMAIL_TO(0.00)[yahoo.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_WWW(0.50)[] X-ThisMailContainsUnwantedMimeParts: N 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" "-e= mit-obj" "--mrelax-relocations" \ > "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-fi= le-name" "gmock_main.cc" \ > "-mrelocation-model" "static" "-mframe-pointer=3Dnon-leaf" "-fno-rounding= -math" "-mconstructor-aliases" \ > "-munwind-tables" "-target-cpu" "generic" "-target-feature" "+neon" "-tar= get-abi" "aapcs" \ > "-fallow-half-arguments-and-returns" "-debug-info-kind=3Dstandalone" "-dw= arf-version=3D4" \ > "-debugger-tuning=3Dgdb" \ > "-fcoverage-compilation-dir=3D/usr/obj/usr/src/arm64.aarch64/lib/googlete= st/gmock_main" \ > "-O2" "-Wno-format-zero-length" "-Wsystem-headers" "-Werror" "-Wall" "-Wn= o-format-y2k" "-W" \ > "-Wno-unused-parameter" "-Wpointer-arith" "-Wreturn-type" "-Wcast-qual" "= -Wwrite-strings" "-Wswitch" \ > "-Wshadow" "-Wunused-parameter" "-Wcast-align" "-Wchar-subscripts" "-Wred= undant-decls" \ > "-Wmissing-variable-declarations" "-Wno-empty-body" "-Wno-string-plus-int= " "-Wno-unused-const-variable" \ > "-Wno-error=3Dunused-but-set-variable" "-Wno-deprecated-declarations" "-W= no-deprecated-copy" \ > "-Wno-c++11-extensions" "-std=3Dc++11" "-fdeprecated-macro" \ > "-fdebug-compilation-dir=3D/usr/obj/usr/src/arm64.aarch64/lib/googletest/= gmock_main" \ > "-ferror-limit" "19" "-stack-protector" "2" "-fno-signed-char" "-fgnuc-ve= rsion=3D4.2.1" \ > "-fcxx-exceptions" "-fexceptions" "-vectorize-loops" "-vectorize-slp" "-f= addrsig" \ > "-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. That seems to have worked, to some extent. Here's the transcript, in single= -user mode: root@pelorus:/usr/src #=20 root@pelorus:/usr/src # lldb -- "/usr/bin/c++" "-cc1" "-triple" "aarch64-un= known-freebsd13.0" "-emit-obj" "--mrelax-relocations" \ > "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-fi= le-name" "gmock_main.cc" \ > "-mrelocation-model" "static" "-mframe-pointer=3Dnon-leaf" "-fno-rounding= -math" "-mconstructor-aliases" \ > "-munwind-tables" "-target-cpu" "generic" "-target-feature" "+neon" "-tar= get-abi" "aapcs" \ > "-fallow-half-arguments-and-returns" "-debug-info-kind=3Dstandalone" "-dw= arf-version=3D4" \ > "-debugger-tuning=3Dgdb" \ compilation-dir=3D/usr/obj/usr/src/arm64.aarch64/lib/googletest/gmock_main"= \ "-O2" "-Wno-format-zero-length" "-Wsystem-headers" "-Werror" "-Wall" "-Wno-= format-y2k" "-W" \ "-Wno-unused-parameter" "-Wpointer-arith" "-Wreturn-type" "-Wcast-qual" "-W= write-strings" "-Wswitch" \ "-Wshadow" "-Wunused-parameter" "-Wcast-align" "-Wchar-subscripts" "-Wredun= dant-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/gm= ock_main" \ "-ferror-limit" "19" "-stack-protector" "2" "-fno-signed-char" "-fgnuc-vers= ion=3D4.2.1" \ "-fcxx-exceptions" "-fexceptions" "-vectorize-loops" "-vectorize-slp" "-fad= drsig" \ "-D__GCC_HAVE_DWARF2_CFI_ASM=3D1" "-x" "c++" "gmock_main-f5c28a.cpp" > "-fcoverage-compilation-dir=3D/usr/obj/usr/src/arm64.aarch64/lib/googlete= st/gmock_main" \ > "-O2" "-Wno-format-zero-length" "-Wsystem-headers" "-Werror" "-Wall" "-Wn= o-format-y2k" "-W" \ > "-Wno-unused-parameter" "-Wpointer-arith" "-Wreturn-type" "-Wcast-qual" "= -Wwrite-strings" "-Wswitch" \ > "-Wshadow" "-Wunused-parameter" "-Wcast-align" "-Wchar-subscripts" "-Wred= undant-decls" \ > "-Wmissing-variable-declarations" "-Wno-empty-body" "-Wno-string-plus-int= " "-Wno-unused-const-variable" \ > "-Wno-error=3Dunused-but-set-variable" "-Wno-deprecated-declarations" "-W= no-deprecated-copy" \ > "-Wno-c++11-extensions" "-std=3Dc++11" "-fdeprecated-macro" \ > "-fdebug-compilation-dir=3D/usr/obj/usr/src/arm64.aarch64/lib/googletest/= gmock_main" \ > "-ferror-limit" "19" "-stack-protector" "2" "-fno-signed-char" "-fgnuc-ve= rsion=3D4.2.1" \ > "-fcxx-exceptions" "-fexceptions" "-vectorize-loops" "-vectorize-slp" "-f= addrsig" \ > "-D__GCC_HAVE_DWARF2_CFI_ASM=3D1" "-x" "c++" "gmock_main-f5c28a.cpp" (lldb) target create "/usr/bin/c++" Current executable set to '/usr/bin/c++' (aarch64). (lldb) settings set -- target.run-args "-cc1" "-triple" "aarch64-unknown-f= reebsd13.0" "-emit-obj" "--mrelax-relocations" "-disable-free" "-disable-ll= vm-verifier" "-discard-value-names" "-main-file-name" "gmock_main.cc" "-mre= location-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=3Dg= db" "-fcoverage-compilation-dir=3D/usr/obj/usr/src/arm64.aarch64/lib/google= test/gmock_main" "-O2" "-Wno-format-zero-length" "-Wsystem-headers" "-Werro= r" "-Wall" "-Wno-format-y2k" "-W" "-Wno-unused-parameter" "-Wpointer-arith"= "-Wreturn-type" "-Wcast-qual" "-Wwrite-strings" "-Wswitch" "-Wshadow" "-Wu= nused-parameter" "-Wcast-align" "-Wchar-subscripts" "-Wredundant-decls" "-W= missing-variable-declarations" "-Wno-empty-body" "-Wno-string-plus-int" "-W= no-unused-const-variable" "-Wno-error=3Dunused-but-set-variable" "-Wno-depr= ecated-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/gmock_main" "-ferror-limit" "19" "-stack-prote= ctor" "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" (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 addres= s (fault address: 0x1) frame #0: 0x0000000002df7444 c++`::ProcessDeclAttributeList() [inlined]= getPointer at PointerIntPair.h:59:58 56 =09 57 explicit PointerIntPair(PointerTy PtrVal) { initWithPointer(PtrVa= l); } 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 addres= s (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 SemaDe= clAttr.cpp:8449:16 frame #5: 0x000000000317e784 c++`::ActOnClassTemplateSpecialization() a= t SemaTemplate.cpp:8537:3 (lldb)=20 [repeated bt commands seem to duplicate the same output] 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 Is it possible to simply delete /usr/src/contrib/llvm-project and=20 let git reconstruct it, then force a compiler rebuild somwhow? Thanks very much for reading and all your help! bob prohaska =20 =20