Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Mar 2022 23:58:50 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        bob prohaska <fbsd@www.zefox.net>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@FreeBSD.org>
Subject:   Re: [Bug 262310] c++: error: clang frontend command failed with exit code 139 [failure during gtest-all.cc compile, 13.1-PRERELEASE context]
Message-ID:  <BB4FA5D1-37D1-44FC-B245-520AF588B4E9@yahoo.com>
In-Reply-To: <bug-262310-7@https.bugs.freebsd.org/bugzilla/>
References:  <bug-262310-7@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2022-Mar-2, at 20:39, bugzilla-noreply@freebsd.org wrote:

> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262310
>=20
>            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:
>=20
> Created attachment 232218
>  --> =
https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D232218&action=3Dedit=

> c++: note: diagnostic msg
>=20
> 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.
>=20
> =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =
=3D
> $ 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   =20
> 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=3D/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=3Dunused-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=3Dc++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.    =20
> =
/usr/obj/usr/src/arm64.aarch64/tmp/usr/include/private/gtest/internal/gtes=
t-type-util.h:960:37:
> current parser token '{'
> 2.    =20
> =
/usr/obj/usr/src/arm64.aarch64/tmp/usr/include/private/gtest/internal/gtes=
t-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: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
> 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:
>=20
> ********************
> *** Error code 139
>=20
> Stop.
> make[6]: stopped in /usr/src/lib/googletest/gtest
> *** Error code 1
>=20
> Stop.
> make[5]: stopped in /usr/src/lib/googletest
> *** Error code 1
>=20
> Stop.
> make[4]: stopped in /usr/src/lib
> *** Error code 1
>=20
> Stop.
> make[3]: stopped in /usr/src
> *** Error code 1
>=20
> Stop.
> make[2]: stopped in /usr/src
> *** Error code 1
>=20
> Stop.
> make[1]: stopped in /usr/src
> *** Error code 1
>=20
> Stop.
> make: stopped in /usr/src
>=20
> =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D
>=20
> I can't attach "c++: note: diagnostic msg: /tmp/gtest-all-f81d5b.cpp" =
because
> of file too large(7138KB).
> //
>=20
> --=20
> 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


=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BB4FA5D1-37D1-44FC-B245-520AF588B4E9>