Re: [Bug 262310] c++: error: clang frontend command failed with exit code 139 [failure during gtest-all.cc compile, 13.1-PRERELEASE context]

From: Mark Millard <marklmi_at_yahoo.com>
Date: Thu, 03 Mar 2022 07:58:50 UTC
On 2022-Mar-2, at 20:39, bugzilla-noreply@freebsd.org wrote:

> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262310
> 
>            Bug ID: 262310
>           Summary: c++: error: clang frontend command failed with exit
>                    code 139
>           Product: Base System
>           Version: 13.0-STABLE
>          Hardware: arm64
>                OS: Any
>            Status: New
>          Severity: Affects Some People
>          Priority: ---
>         Component: arm
>          Assignee: freebsd-arm@FreeBSD.org
>          Reporter: wisdom@isogo.dyndns.org
> Attachment #232218 text/plain
>         mime type:
> 
> Created attachment 232218
>  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=232218&action=edit
> c++: note: diagnostic msg
> 
> I've tried to build world several times.  However all trials failed on same
> place with same error (clang frontend crashed).  Following is a part of the
> console log.
> 
> = = = = = = = = = = = = = = = = = = =
> $ uname -a
> FreeBSD raspi.isogo.dyndns.org 13.1-PRERELEASE FreeBSD 13.1-PRERELEASE #14
> stable/13-11045f1b7: Mon Feb 28 12:09:56 JST 2022    
> root@raspi.isogo.dyndns.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC  arm64
> $ cd /usr/src; sudo make buildworld
> ...
> 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=/usr/obj/usr/src/arm64.aarch64/tmp
> -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin -O2 -pipe -fno-common -g -MD
> -MF.depend.gtest-all.o -MTgtest-all.o -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=unused-but-set-variable -Qunused-arguments
> -I/usr/obj/usr/src/arm64.aarch64/tmp/usr/include/private
> -I/usr/src/contrib/googletest/googletest/include
> -I/usr/src/contrib/googletest/googletest -g -std=c++11
> -Wno-deprecated-declarations -Wno-deprecated-copy -Wno-c++11-extensions -c
> /usr/src/contrib/googletest/googletest/src/gtest-all.cc -o gtest-all.o
> 1.     
> /usr/obj/usr/src/arm64.aarch64/tmp/usr/include/private/gtest/internal/gtest-type-util.h:960:37:
> current parser token '{'
> 2.     
> /usr/obj/usr/src/arm64.aarch64/tmp/usr/include/private/gtest/internal/gtest-type-util.h:58:1:
> parsing namespace 'testing'
> #0 0x0000000004112640 PrintStackTrace
> /usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:565:13
> #1 0x0000000004110a84 __cxx_atomic_store<CallbackAndCookie::Status>
> /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:389: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:
> ********************
> 
> 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/gtest-all-f81d5b.cpp
> c++: note: diagnostic msg: /tmp/gtest-all-f81d5b.sh
> c++: note: diagnostic msg:
> 
> ********************
> *** Error code 139
> 
> Stop.
> make[6]: stopped in /usr/src/lib/googletest/gtest
> *** Error code 1
> 
> Stop.
> make[5]: stopped in /usr/src/lib/googletest
> *** Error code 1
> 
> Stop.
> make[4]: stopped in /usr/src/lib
> *** Error code 1
> 
> Stop.
> make[3]: stopped in /usr/src
> *** Error code 1
> 
> Stop.
> make[2]: stopped in /usr/src
> *** Error code 1
> 
> Stop.
> make[1]: stopped in /usr/src
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/src
> 
> = = = = = = = = = = = = = = = =
> 
> I can't attach "c++: note: diagnostic msg: /tmp/gtest-all-f81d5b.cpp" because
> of file too large(7138KB).
> //
> 
> -- 
> You are receiving this mail because:
> You are the assignee for the bug.

Well, someone has independently replicated
"Troubles building world on stable/13" but
in 13.1-PRERELEASE vintage context.

For reference for "Troubles building world on stable/13",
its start on the lists was at:

https://lists.freebsd.org/archives/freebsd-arm/2022-January/000857.html

Also the only possibly useful evidence I got before
giving up analyzing the failure mode was as noted in:

https://lists.freebsd.org/archives/freebsd-arm/2022-February/000979.html


===
Mark Millard
marklmi at yahoo.com