https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269067
Bug ID: 269067
Summary: Build of devel/boost-libs fails because of assertion
failure of clang on 14-CURRENT
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: b...@freebsd.org
Reporter: y...@freebsd.org
CC: d...@freebsd.org
yasu@rolling-vm-freebsd1[1018]% uname -a
FreeBSD rolling-vm-freebsd1.home.utahime.org 14.0-CURRENT FreeBSD 14.0-CURRENT
#0 main-n260055-8bce8d28abe: Sat Jan 14 01:06:42 JST 2023
ro...@rolling-vm-freebsd1.home.utahime.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
amd64
yasu@rolling-vm-freebsd1[1018]%
After devel/boost-libs is updated to 1.81.0, build of the port fails
on 14-CURRENT because of assersion failure of clang in base system.
--
clang-linux.compile.c++
bin.v2/libs/url/build/clang-linux-14/release/pch-off/threading-multi/visibility-hidden/src.o
"c++" -c -x c++ -fvisibility-inlines-hidden -fPIC -m64 -pthread -O3 -Wall
-fvisibility=hidden -Wno-inline -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -std=gnu++17 -pipe -DLIBICONV_PLUG
-fstack-protector-strong -fno-strict-aliasing -DBOOST_ALL_NO_LIB=1
-DBOOST_URL_DYN_LINK=1 -DBOOST_URL_SOURCE -DNDEBUG -I"." -o
"bin.v2/libs/url/build/clang-linux-14/release/pch-off/threading-multi/visibility-hidden/src.o"
"libs/url/src/src.cpp"
Assertion failed: (isa(Val) && "cast() argument of incompatible type!"),
function cast, file
/usr/src/contrib/llvm-project/llvm/include/llvm/Support/Casting.h, line 269.
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++ -c -x c++ -fvisibility-inlines-hidden -fPIC -m64
-pthread -O3 -Wall -fvisibility=hidden -Wno-inline -pipe -DLIBICONV_PLUG
-fstack-protector-strong -fno-strict-aliasing -DLIBICONV_PLUG -std=gnu++17
-pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing
-DBOOST_ALL_NO_LIB=1 -DBOOST_URL_DYN_LINK=1 -DBOOST_URL_SOURCE -DNDEBUG -I. -o
bin.v2/libs/url/build/clang-linux-14/release/pch-off/threading-multi/visibility-hidden/src.o
libs/url/src/src.cpp
1. ./boost/url/impl/segments_view.ipp:33:1: current parser token '{'
2. ./boost/url/impl/segments_view.ipp:17:1: parsing namespace 'boost'
3. ./boost/url/impl/segments_view.ipp:18:1: parsing namespace
'boost::urls'
#0 0x050b98d1 PrintStackTrace
/usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:565:13
#1 0x050b7c05 RunSignalHandlers
/usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:98:18
#2 0x0505fe2e HandleCrash
/usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:79:5
#3 0x0505fff3 CrashRecoverySignalHandler
/usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:0:51
#4 0x00082b39da60 handle_signal /usr/src/lib/libthr/thread/thr_sig.c:0:3
#5 0x00082b39d01f thr_sighandler
/usr/src/lib/libthr/thread/thr_sig.c:247:1
#6 0x0008282f92d3 ([vdso]+0x2d3)
#7 0x00082d52a99a __sys_thr_kill
/usr/obj/usr/src/amd64.amd64/lib/libc/thr_kill.S:4:0
#8 0x00082d4a3044 __raise /usr/src/lib/libc/gen/raise.c:0:10
#9 0x00082d5547b9 abort /usr/src/lib/libc/stdlib/abort.c:73:17
#10 0x00082d485e21 (/lib/libc.so.7+0x98e21)
#11 0x038b367b BuildDelegatingInitializer
/usr/src/contrib/llvm-project/clang/lib/Sema/SemaDeclCXX.cpp:4443:5
#12 0x038b2e49 BuildBaseInitializer
/usr/src/contrib/llvm-project/clang/lib/Sema/SemaDeclCXX.cpp:4525:14
#13 0x038b19fc BuildMemInitializer
/usr/src/contrib/llvm-project/clang/lib/Sema/SemaDeclCXX.cpp:0:0
#14 0x038b204d
/usr/src/contrib/llvm-project/clang/lib/Sema/SemaDeclCXX.cpp:4115:1
#15 0x0356345c ParseMemInitializer
/usr/src/contrib/llvm-project/clang/lib/Parse/ParseDeclCXX.cpp:3770:20
#16 0x035628fb ParseConstructorInitializer
/usr/src/contrib/llvm-project/clang/lib/Parse/ParseDeclCXX.cpp:3634:29
#17 0x034ec7d8 is
/usr/src/contrib/llvm-project/clang/include/clang/Lex/Token.h:97:49
#18 0x034ec7d8 ParseFunctionDefinition
/usr/src/contrib/llvm-project/clang/lib/Parse/Parser.cpp:1366:14
#19 0x0353d4d8 ParseDeclGroup
/usr/src/contrib/llvm-project/clang/lib/Parse/ParseDecl.cpp:2055:18
#20 0x034eb872 ParseDeclOrFunctionDefInternal
/usr/src/contrib/llvm-project/clang/lib/Parse/Parser.cpp:0:10
#21 0x034eb305 ParseDeclarationOrFunctionDefinition
/usr/src/contrib/llvm-project/clang/lib/Parse/Parser.cpp:1154:12
#22 0x034ea228 ParseExternalDeclaration
/usr/src/contrib/llvm-project/clang/lib/Parse/Parser.cpp:0:12
#23 0x03551be4 ~AttributePool
/usr/src/contr