From nobody Sat Jan 22 07:14:32 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 249B0195F555 for ; Sat, 22 Jan 2022 07:14:45 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic313-21.consmr.mail.gq1.yahoo.com (sonic313-21.consmr.mail.gq1.yahoo.com [98.137.65.84]) (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 4JgnYw04RFz4bmM for ; Sat, 22 Jan 2022 07:14:43 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1642835676; bh=VYK2boiJ0RqARyitoTtYaibopbai6B/ZSIFDby+0wJY=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=POLbjmNnCSPQQD1UFxRH2+n8+OzwfkpvPJW0QdQticfgba8Tz23RvdDNqfwHnZhSCxxloP2DBTj0tkaqRaNFX+BRuk59eCRkZUeFFWiQoGDgbMIthYSyqHG6bROnydMC7bmf6h86Ywjnu44qWrmHt+eA6orR5y2/3GIya2d2H5yeity/xKk0BToFuYzFTCtt/yXmE7cooALhRQ88jbsjnOAD3q99Fh9WdUYP5BtiYPlkb1buJkAhwL+570zhXru3RK8JhT6cws6tBGmZC9AS3ZP11w3d1wp07DKkTkqWVbrrtr9PmCAI/B8MT55Y3tcgWVpZOk1NPpWuC9fvmInLUg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1642835676; bh=RR98mO2SiXB77I3+rApwvsmQYYlpEAqv0imY4mEC9V5=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=n7W4W4iiUQ2ZxP8QZEccVIPP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BDozlJKGzBTw1Bup.90 _hSvpc4S_LPsWwZO0vd.2SiBczoCXlCAPLs9Vvwh5_rySeKJkcWaB99qgRY9pFL_pYYKbGN6zRhx SxAFPth2QQs3mj5joU3waYkBl6F70Y05_lVCGXf6me5RuVdH22GJue7UZ7WL_a.fo9U1Gpnez5.8 eMbpSg_GL9XeBPH1YdpvixLTyqUQ0UAYwffWeE77tekYUs3UacxfoU16lcLEhh6bHntjFFqwpT2W tdaYWIY8eUWWjYZpRTlrbBmWW6j119omKGbVFgubekDkjRiSr9AnGR9_tO3FBsG0bkRTh8EjpBNp sQiXIlx0j7W6c48HsGIXJqLlun3H0zQv07dAy8Qip.sPstfBMAv_ffvm2Abg8CZKIaZNDxbjSwsG c.UFKkJOHdYs63bbthDZ9aIgia0ve84uMoUpvQv7_gV2f9j_aUp8vnwTHx4lhXEtIsmOvp3WUylJ NUiyKHYAiEPkT4PcuUGa7wfjsB3MpQ_Y_qqabWPPTvm6J8MnebQVDlTE3ojXrLGGyf4EOvv2_dJ4 EHWtpe6zqBQBpWSI- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Sat, 22 Jan 2022 07:14:36 +0000 Received: by kubenode514.mail-prod1.omega.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID edb5202e356f358f847ea9f874952af2; Sat, 22 Jan 2022 07:14:34 +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: Date: Fri, 21 Jan 2022 23:14:32 -0800 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <8595CFBD-DC65-4472-A0A1-8A7BE1C031D6@yahoo.com> References: <20220121031601.GA26308@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4JgnYw04RFz4bmM X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=POLbjmNn; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.84 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.84:from]; MLMMJ_DEST(0.00)[freebsd-arm]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.65.84:from]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N On 2022-Jan-21, at 16:02, Mark Millard wrote: > [I've switched back to messages with the original subject to > avoid mixing the issues.] >=20 > On 2022-Jan-20, at 22:00, Mark Millard wrote: >=20 >> On 2022-Jan-20, at 19:16, bob prohaska wrote: >>=20 >>> The last few attempts to build world on a Pi3 running stable/13 have >>> stopped with something like: >>>=20 >>> --- all_subdir_lib/googletest/gmock --- >>> =3D=3D=3D> lib/googletest/gmock (all) >>> Building = /usr/obj/usr/src/arm64.aarch64/lib/googletest/gmock/gmock-all.o >>> --- gmock-all.o --- >>> PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and = include the crash backtrace, preprocessed source, and associated run = script. >>> Stack dump: >>> 0. Program arguments: c++ -target aarch64-unknown-freebsd13.0 = --sysroot=3D/usr/obj/usr/src/arm64.aarch64/tmp = -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin -O2 -pipe -fno-common -g = -Wno-format-zero-length -fstack-protector-strong -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 = -Qunused-arguments = -I/usr/obj/usr/src/arm64.aarch64/tmp/usr/include/private = -I/usr/src/contrib/googletest/googlemock/include = -I/usr/src/contrib/googletest/googlemock = -I/usr/src/contrib/googletest/googletest/include -g -std=3Dc++11 = -Wno-deprecated-declarations -Wno-deprecated-copy -Wno-c++11-extensions = -c /usr/src/contrib/googletest/googlemock/src/gmock-all.cc -o = gmock-all.o >>> 1. = /usr/obj/usr/src/arm64.aarch64/tmp/usr/include/private/gtest/internal/gtes= t-type-util.h:1125:53: current parser token '{' >>> 2. = /usr/obj/usr/src/arm64.aarch64/tmp/usr/include/private/gtest/internal/gtes= t-type-util.h:58:1: parsing namespace 'testing' >>> --- all_subdir_lib/clang --- >>> Building = /usr/obj/usr/src/arm64.aarch64/lib/clang/libllvm/X86GenEVEX2VEXTables.inc >>> Building = /usr/obj/usr/src/arm64.aarch64/lib/clang/libllvm/X86GenFastISel.inc >>> --- all_subdir_lib/googletest --- >>> #0 0x0000000004112640 PrintStackTrace = /usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:565:13 >>> #1 0x0000000004110a84 __cxx_atomic_store = /usr/obj/usr/src/arm64.aarch64/tmp/usr/include/c++/v1/atomic:996:5 >>> #2 0x0000000004110a84 store = /usr/obj/usr/src/arm64.aarch64/tmp/usr/include/c++/v1/atomic:1617:10 >>> #3 0x0000000004110a84 RunSignalHandlers = /usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:99:16 >>> #4 0x00000000040b4f08 HandleCrash = /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:76= :5 >>> #5 0x00000000040b4f08 CrashRecoverySignalHandler = /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:38= 9:51 >>> #6 0x00000000452bad80 handle_signal = /usr/src/lib/libthr/thread/thr_sig.c:0:3 >>> c++: error: clang frontend command failed with exit code 139 (use -v = to see invocation) >>> FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git = llvmorg-13.0.0-0-gd7b669b3a303) >>> Target: aarch64-unknown-freebsd13.0 >>> Thread model: posix >>> InstalledDir: /usr/bin >>> c++: note: diagnostic msg:=20 >>> ******************** >>>=20 >>> PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: >>> Preprocessed source(s) and associated run script(s) are located at: >>> c++: note: diagnostic msg: /tmp/gmock-all-836ef8.cpp >>> c++: note: diagnostic msg: /tmp/gmock-all-836ef8.sh >>> c++: note: diagnostic msg:=20 >>>=20 >>> ******************** >>> *** [gmock-all.o] Error code 139 >>=20 >> So: SIGSEGV (signal 11) >>=20 >>> make[6]: stopped in /usr/src/lib/googletest/gmock >>> .ERROR_TARGET=3D'gmock-all.o' >>> = .ERROR_META_FILE=3D'/usr/obj/usr/src/arm64.aarch64/lib/googletest/gmock/gm= ock-all.o.meta' >>> .MAKE.LEVEL=3D'6' >>> MAKEFILE=3D'' >>> .MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes = silent=3Dyes verbose' >>>=20 >>> make[4]: stopped in /usr/src/lib >>> --- all_subdir_lib/clang --- >>>=20 >>> FWIW, filemon is enabled in /boot/loader.conf and the build command = was >>> make -j2 -DWITH_META_MODE buildworld > buildworld.log >>>=20 >>> This doesn't appear to be ARM-specific in any obvious way, but it = might >>> be, so I'm posting here first. >>>=20 >>=20 >> "uname -apKU" output from the building environment? >>=20 >> Commit identification for the /usr/src/ for stable/13 >> that is being built? >>=20 >> Any console messages? dmesg -a output of interest? >> /var/log/messasges content of interest? >>=20 >> Any messages of interest somewhat earlier in the >> buildworld.log ? >>=20 >> Does the problem repeat via using the files: >>=20 >> /tmp/gmock-all-836ef8.cpp >> /tmp/gmock-all-836ef8.sh >>=20 >> on that RPi3? Elsewhere that has more resources, such >> as more RAM? >=20 > I do not see anything between your: >=20 > Thank you, the script reports: > branch: stable/13 > merge-base: d7b156672a48c37e1b8ce9b4ae28a46ecea55412 > merge-base: CommitDate: 2022-01-21 15:58:11 +0000 > d7b156672a4 (HEAD -> stable/13, freebsd/stable/13) zone.9: Remove = documentation of non-existent NUMA configuration flags > n249092 (--first-parent --count for merge-base) >=20 > and where I'm at for stable/13: >=20 > branch: stable/13 > merge-base: a5f69859956049b5153b0e1b67f8f4a99622dc6f > merge-base: CommitDate: 2022-01-15 12:55:32 +0000 > a5f698599560 (HEAD -> stable/13, freebsd/stable/13) Ignore = debugger-injected signals left after detaching > n249004 (--first-parent --count for merge-base) >=20 > that would seem a likely explanation for why I > did not see the problem when I built. >=20 > The same goes for between your stable/13-n248948-9418a626103 > starting point and where my stable/13 environment is at. >=20 > (In my case, I also build for poudriere and chroot trees, > not just booting. So multiple builds are involved in the > sequence.) >=20 > I've not come up with any ideas beyond the 2: >=20 > A) Trying the two files that failure produced for attempted > reproduction of the problem (such as): >=20 > /tmp/gmock-all-836ef8.cpp > /tmp/gmock-all-836ef8.sh >=20 > but in other system-clang 13 contexts to see if the problem is > reproducible off that RPi3*. >=20 > B) Doing the /usr/obj/. . . cleanout and then a build-from-scratch > attempt. >=20 I see that there is: http://www.zefox.net/~fbsd/rpi3/20220121/ with a .cpp and .sh pair (f5c28a). I downloaded the two and tried the .sh under stable/13 and main and got no failures. (But it was not an RPi* at all.) For reference: # uname -apKU FreeBSD CA72_16Gp_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT #37 = main-n252475-e76c0108990b-dirty: Sat Jan 15 21:53:08 PST 2022 = root@CA72_16Gp_ZFS:/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm6= 4.aarch64/sys/GENERIC-NODBG-CA72 arm64 aarch64 1400047 1300524 (The above is a chroot use into an area that can be used with bectl to boot the machine.) # uname -apKU FreeBSD CA72_16Gp_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT #37 = main-n252475-e76c0108990b-dirty: Sat Jan 15 21:53:08 PST 2022 = root@CA72_16Gp_ZFS:/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm6= 4.aarch64/sys/GENERIC-NODBG-CA72 arm64 aarch64 1400047 1400047 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): 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" 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. In my environment the 2 references to: /usr/obj/usr/src/arm64.aarch64/lib/googletest/gmock_main have no such directory available. In my context it would be: = /usr/obj/BUILDs/13S-CA72-nodbg-clang/usr/13S-src/arm64.aarch64/lib/googlet= est/gmock_main But using the path instances for my context still did not recreate the failure. The command just added "lldb -- " in front of what was in the .sh file, other than my line splits for the email. =3D=3D=3D Mark Millard marklmi at yahoo.com