Date: Fri, 20 Jan 2023 06:01:21 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 269067] Build of devel/boost-libs fails because of assertion failure of clang on 14-CURRENT Message-ID: <bug-269067-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269067 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: bugs@FreeBSD.org Reporter: yasu@freebsd.org CC: dim@FreeBSD.org yasu@rolling-vm-freebsd1[1018]% uname -a FreeBSD rolling-vm-freebsd1.home.utahime.org 14.0-CURRENT FreeBSD 14.0-CURR= ENT #0 main-n260055-8bce8d28abe: Sat Jan 14 01:06:42 JST 2023=20=20=20=20 rootz@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/visibi= lity-hidden/src.o "c++" -c -x c++ -fvisibility-inlines-hidden -fPIC -m64 -pthread -O3 -Wall -fvisibility=3Dhidden -Wno-inline -pipe -DLIBICONV_PLUG -fstack-protector-s= trong -fno-strict-aliasing -DLIBICONV_PLUG -std=3Dgnu++17 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -DBOOST_ALL_NO_LIB=3D1 -DBOOST_URL_DYN_LINK=3D1 -DBOOST_URL_SOURCE -DNDEBUG -I"." -o "bin.v2/libs/url/build/clang-linux-14/release/pch-off/threading-multi/visib= ility-hidden/src.o" "libs/url/src/src.cpp" Assertion failed: (isa<X>(Val) && "cast<Ty>() 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=3Dhidden -Wno-inline -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -DLIBICONV_PLUG -std=3Dgnu++17 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -DBOOST_ALL_NO_LIB=3D1 -DBOOST_URL_DYN_LINK=3D1 -DBOOST_URL_SOURCE -DNDEBUG= -I. -o bin.v2/libs/url/build/clang-linux-14/release/pch-off/threading-multi/visibi= lity-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 0x00000000050b98d1 PrintStackTrace /usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:565:13 #1 0x00000000050b7c05 RunSignalHandlers /usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:98:18 #2 0x000000000505fe2e HandleCrash /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:79:5 #3 0x000000000505fff3 CrashRecoverySignalHandler /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:0:51 #4 0x000000082b39da60 handle_signal /usr/src/lib/libthr/thread/thr_sig.c:0= :3 #5 0x000000082b39d01f thr_sighandler /usr/src/lib/libthr/thread/thr_sig.c:247:1 #6 0x00000008282f92d3 ([vdso]+0x2d3) #7 0x000000082d52a99a __sys_thr_kill /usr/obj/usr/src/amd64.amd64/lib/libc/thr_kill.S:4:0 #8 0x000000082d4a3044 __raise /usr/src/lib/libc/gen/raise.c:0:10 #9 0x000000082d5547b9 abort /usr/src/lib/libc/stdlib/abort.c:73:17 #10 0x000000082d485e21 (/lib/libc.so.7+0x98e21) #11 0x00000000038b367b BuildDelegatingInitializer /usr/src/contrib/llvm-project/clang/lib/Sema/SemaDeclCXX.cpp:4443:5 #12 0x00000000038b2e49 BuildBaseInitializer /usr/src/contrib/llvm-project/clang/lib/Sema/SemaDeclCXX.cpp:4525:14 #13 0x00000000038b19fc BuildMemInitializer /usr/src/contrib/llvm-project/clang/lib/Sema/SemaDeclCXX.cpp:0:0 #14 0x00000000038b204d /usr/src/contrib/llvm-project/clang/lib/Sema/SemaDeclCXX.cpp:4115:1 #15 0x000000000356345c ParseMemInitializer /usr/src/contrib/llvm-project/clang/lib/Parse/ParseDeclCXX.cpp:3770:20 #16 0x00000000035628fb ParseConstructorInitializer /usr/src/contrib/llvm-project/clang/lib/Parse/ParseDeclCXX.cpp:3634:29 #17 0x00000000034ec7d8 is /usr/src/contrib/llvm-project/clang/include/clang/Lex/Token.h:97:49 #18 0x00000000034ec7d8 ParseFunctionDefinition /usr/src/contrib/llvm-project/clang/lib/Parse/Parser.cpp:1366:14 #19 0x000000000353d4d8 ParseDeclGroup /usr/src/contrib/llvm-project/clang/lib/Parse/ParseDecl.cpp:2055:18 #20 0x00000000034eb872 ParseDeclOrFunctionDefInternal /usr/src/contrib/llvm-project/clang/lib/Parse/Parser.cpp:0:10 #21 0x00000000034eb305 ParseDeclarationOrFunctionDefinition /usr/src/contrib/llvm-project/clang/lib/Parse/Parser.cpp:1154:12 #22 0x00000000034ea228 ParseExternalDeclaration /usr/src/contrib/llvm-project/clang/lib/Parse/Parser.cpp:0:12 #23 0x0000000003551be4 ~AttributePool /usr/src/contrib/llvm-project/clang/include/clang/Sema/ParsedAttr.h:770:22 #24 0x0000000003551be4 ~ParsedAttributes /usr/src/contrib/llvm-project/clang/include/clang/Sema/ParsedAttr.h:965:7 #25 0x0000000003551be4 ParseInnerNamespace /usr/src/contrib/llvm-project/clang/lib/Parse/ParseDeclCXX.cpp:247:5 #26 0x000000000355145d Exit /usr/src/contrib/llvm-project/clang/include/clang/Parse/Parser.h:1108:15 #27 0x000000000355145d ParseNamespace /usr/src/contrib/llvm-project/clang/lib/Parse/ParseDeclCXX.cpp:227:18 #28 0x0000000003536cc0 ParseDeclaration /usr/src/contrib/llvm-project/clang/lib/Parse/ParseDecl.cpp:0:0 #29 0x00000000034e9f1c ParseExternalDeclaration /usr/src/contrib/llvm-project/clang/lib/Parse/Parser.cpp:0:3 #30 0x0000000003551be4 ~AttributePool /usr/src/contrib/llvm-project/clang/include/clang/Sema/ParsedAttr.h:770:22 #31 0x0000000003551be4 ~ParsedAttributes /usr/src/contrib/llvm-project/clang/include/clang/Sema/ParsedAttr.h:965:7 #32 0x0000000003551be4 ParseInnerNamespace /usr/src/contrib/llvm-project/clang/lib/Parse/ParseDeclCXX.cpp:247:5 #33 0x000000000355145d Exit /usr/src/contrib/llvm-project/clang/include/clang/Parse/Parser.h:1108:15 #34 0x000000000355145d ParseNamespace /usr/src/contrib/llvm-project/clang/lib/Parse/ParseDeclCXX.cpp:227:18 #35 0x0000000003536cc0 ParseDeclaration /usr/src/contrib/llvm-project/clang/lib/Parse/ParseDecl.cpp:0:0 #36 0x00000000034e9f1c ParseExternalDeclaration /usr/src/contrib/llvm-project/clang/lib/Parse/Parser.cpp:0:3 #37 0x00000000034e85e0 ParseTopLevelDecl /usr/src/contrib/llvm-project/clang/lib/Parse/Parser.cpp:720:10 #38 0x00000000034e2c1d ParseAST /usr/src/contrib/llvm-project/clang/lib/Parse/ParseAST.cpp:157:5 #39 0x0000000002ee9a0f Execute /usr/src/contrib/llvm-project/clang/lib/Frontend/FrontendAction.cpp:971:10 #40 0x0000000002e7e04f getPtr /usr/src/contrib/llvm-project/llvm/include/llvm/Support/Error.h:271:42 #41 0x0000000002e7e04f operator bool /usr/src/contrib/llvm-project/llvm/include/llvm/Support/Error.h:234:16 #42 0x0000000002e7e04f ExecuteAction /usr/src/contrib/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1036:= 23 #43 0x0000000002fa6ab6 ExecuteCompilerInvocation /usr/src/contrib/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocat= ion.cpp:263:25 #44 0x0000000002477b75 cc1_main /usr/src/contrib/llvm-project/clang/tools/driver/cc1_main.cpp:248:15 #45 0x00000000024850c5 ExecuteCC1Tool /usr/src/contrib/llvm-project/clang/tools/driver/driver.cpp:317:12 #46 0x0000000002d3a1b7 operator() /usr/src/contrib/llvm-project/clang/lib/Driver/Job.cpp:407:30 #47 0x0000000002d3a1b7 callback_fn<(lambda at /usr/src/contrib/llvm-project/clang/lib/Driver/Job.cpp:407:22)> /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:4= 5:12 #48 0x000000000505fd64 operator() /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:0= :12 #49 0x000000000505fd64 RunSafely /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:428= :3 #50 0x0000000002d39dc3 Execute /usr/src/contrib/llvm-project/clang/lib/Driver/Job.cpp:407:7 #51 0x0000000002d081e2 ExecuteCommand /usr/src/contrib/llvm-project/clang/lib/Driver/Compilation.cpp:196:15 #52 0x0000000002d08689 ExecuteJobs /usr/src/contrib/llvm-project/clang/lib/Driver/Compilation.cpp:249:13 #53 0x0000000002d1d3ac empty /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/SmallVector.h:73:47 #54 0x0000000002d1d3ac ExecuteCompilation /usr/src/contrib/llvm-project/clang/lib/Driver/Driver.cpp:1617:23 c++: error: clang frontend command failed with exit code 134 (use -v to see invocation) FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c) Target: x86_64-unknown-freebsd14.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/src-a91ba6.cpp c++: note: diagnostic msg: /tmp/src-a91ba6.sh c++: note: diagnostic msg:=20 ******************** ...failed clang-linux.compile.c++ bin.v2/libs/url/build/clang-linux-14/release/pch-off/threading-multi/visibi= lity-hidden/src.o... ---------------------------------------------------------------------- Full build log: https://people.freebsd.org/~yasu/poudriere/data/logs/bulk/curamd64-default/= 2023-01-20_14h31m30s/logs/boost-libs-1.81.0.log --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269067-227>