Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jan 2024 09:16:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 276292] make buildworld: c++: error: clang frontend command failed with exit code 138
Message-ID:  <bug-276292-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276292

            Bug ID: 276292
           Summary: make buildworld: c++: error: clang frontend command
                    failed with exit code 138
           Product: Base System
           Version: 14.0-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: martin.jakob@gmx.com

since a few days, i get the error below when i make buildworld. a second run
with the same code revision, completes without an error.

uname -a:
FreeBSD betablock 14.0-STABLE FreeBSD 14.0-STABLE stable/14-c39254c8f GENER=
IC
amd64


---
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++ -O2 -pipe -fno-common
-I/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/usr.bin/clang/llvm-tblgen
-I/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libllvm
-I/usr/src/lib/clang/include -I/usr/src/contrib/llvm-project/llvm/include
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-DHAVE_VCS_VERSION_INC -DNDEBUG
-DLLVM_DEFAULT_TARGET_TRIPLE=3D\"x86_64-unknown-freebsd14.0\"
-DLLVM_HOST_TRIPLE=3D\"x86_64-unknown-freebsd14.0\"
-DDEFAULT_SYSROOT=3D\"/usr/obj/usr/src/amd64.amd64/tmp\" -DLLVM_TARGET_ENAB=
LE_X86
-DLLVM_NATIVE_ASMPARSER=3DLLVMInitializeX86AsmParser
-DLLVM_NATIVE_ASMPRINTER=3DLLVMInitializeX86AsmPrinter
-DLLVM_NATIVE_DISASSEMBLER=3DLLVMInitializeX86Disassembler
-DLLVM_NATIVE_TARGET=3DLLVMInitializeX86Target
-DLLVM_NATIVE_TARGETINFO=3DLLVMInitializeX86TargetInfo
-DLLVM_NATIVE_TARGETMC=3DLLVMInitializeX86TargetMC -ffunction-sections
-fdata-sections -gline-tables-only -MD -MF.depend.CodeEmitterGen.o
-MTCodeEmitterGen.o -Wno-format-zero-length -Wdate-time -Wno-empty-body
-Wno-string-plus-int -Wno-unused-const-variable
-Wno-error=3Dunused-but-set-parameter -Wno-tautological-compare -Wno-unused=
-value
-Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion
-Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch
-Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses
-Qunused-arguments -I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include
-fno-exceptions -fno-rtti -std=3Dc++17 -stdlib=3Dlibc++ -Wno-c++11-extensio=
ns -c
/usr/src/contrib/llvm-project/llvm/utils/TableGen/CodeEmitterGen.cpp -o
CodeEmitterGen.o
1.      <eof> parser at end of file
2.      Optimizer
--- _bootstrap-tools-usr.bin/clang/clang-tblgen ---
--- SveEmitter.o ---
c++  -O2 -pipe -fno-common
-I/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libclang
-I/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libllvm
-I/usr/src/contrib/llvm-project/clang/include -I/usr/src/lib/clang/include
-I/usr/src/contrib/llvm-project/llvm/include -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_VCS_VERSION_INC -DNDEBUG
-DLLVM_DEFAULT_TARGET_TRIPLE=3D\"x86_64-unknown-freebsd14.0\"
-DLLVM_HOST_TRIPLE=3D\"x86_64-unknown-freebsd14.0\"
-DDEFAULT_SYSROOT=3D\"/usr/obj/usr/src/amd64.amd64/tmp\" -DLLVM_TARGET_ENAB=
LE_X86
-DLLVM_NATIVE_ASMPARSER=3DLLVMInitializeX86AsmParser
-DLLVM_NATIVE_ASMPRINTER=3DLLVMInitializeX86AsmPrinter
-DLLVM_NATIVE_DISASSEMBLER=3DLLVMInitializeX86Disassembler
-DLLVM_NATIVE_TARGET=3DLLVMInitializeX86Target
-DLLVM_NATIVE_TARGETINFO=3DLLVMInitializeX86TargetInfo
-DLLVM_NATIVE_TARGETMC=3DLLVMInitializeX86TargetMC -ffunction-sections
-fdata-sections -gline-tables-only -MD -MF.depend.SveEmitter.o -MTSveEmitte=
r.o
-Wno-format-zero-length -Wdate-time -Wno-empty-body -Wno-string-plus-int
-Wno-unused-const-variable -Wno-error=3Dunused-but-set-parameter
-Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality
-Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef
-Wno-address-of-packed-member -Wno-switch -Wno-switch-enum
-Wno-knr-promoted-parameter -Wno-parentheses -Qunused-arguments
-I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include  -fno-exceptions
-fno-rtti -std=3Dc++17    -stdlib=3Dlibc++ -Wno-c++11-extensions   -c
/usr/src/contrib/llvm-project/clang/utils/TableGen/SveEmitter.cpp -o
SveEmitter.o
--- _bootstrap-tools-usr.bin/clang/llvm-tblgen ---
 #0 0x0000000004f90e61 PrintStackTrace
/usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:567:13
 #1 0x0000000004f8f275 RunSignalHandlers
/usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:105:18
 #2 0x0000000004f375f5 HandleCrash
/usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:73:5
 #3 0x0000000004f375f5 CrashRecoverySignalHandler
/usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:390=
:51
 #4 0x00000008294b453f handle_signal /usr/src/lib/libthr/thread/thr_sig.c:0=
:3
 #5 0x00000008294b3afb thr_sighandler
/usr/src/lib/libthr/thread/thr_sig.c:245:1
 #6 0x00000008266842d3 ([vdso]+0x2d3)
 #7 0x0000000004c20724 getMetadata
/usr/src/contrib/llvm-project/llvm/lib/IR/Metadata.cpp:1288:0
 #8 0x00000000061b5551 ScopedAliasMetadataDeepCloner
/usr/src/contrib/llvm-project/llvm/lib/Transforms/Utils/InlineFunction.cpp:=
1015:25
 #9 0x00000000061b5551 InlineFunction
/usr/src/contrib/llvm-project/llvm/lib/Transforms/Utils/InlineFunction.cpp:=
2172:35
#10 0x0000000005d110c9 run
/usr/src/contrib/llvm-project/llvm/lib/Transforms/IPO/Inliner.cpp:919:11
#11 0x0000000004e2ab02
/usr/src/contrib/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:89=
:5
#12 0x00000000044b4702 run
/usr/src/contrib/llvm-project/llvm/lib/Analysis/CGSCCPassManager.cpp:89:12
#13 0x0000000004e1a312
/usr/src/contrib/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:89=
:5
#14 0x00000000044b66c3 run
/usr/src/contrib/llvm-project/llvm/lib/Analysis/CGSCCPassManager.cpp:411:12
#15 0x0000000004e44812
/usr/src/contrib/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:89=
:5
#16 0x00000000044b5b09 run
/usr/src/contrib/llvm-project/llvm/lib/Analysis/CGSCCPassManager.cpp:279:18
#17 0x0000000004e1a512
/usr/src/contrib/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:89=
:5
#18 0x0000000004c34d56 runAfterPass<llvm::Module,
llvm::detail::PassConcept<llvm::Module, llvm::AnalysisManager<llvm::Module>=
 > >
/usr/src/contrib/llvm-project/llvm/include/llvm/IR/PassInstrumentation.h:25=
6:9
#19 0x0000000004c34d56 run
/usr/src/contrib/llvm-project/llvm/include/llvm/IR/PassManager.h:521:10
#20 0x0000000005d1273f isSmall
/usr/src/contrib/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:195:33
#21 0x0000000005d1273f ~SmallPtrSetImplBase
/usr/src/contrib/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:83:10
#22 0x0000000005d1273f ~PreservedAnalyses
/usr/src/contrib/llvm-project/llvm/include/llvm/IR/PassManager.h:152:7
#23 0x0000000005d1273f run
/usr/src/contrib/llvm-project/llvm/lib/Transforms/IPO/Inliner.cpp:1171:3
#24 0x0000000004e22e72
/usr/src/contrib/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:89=
:5
#25 0x0000000004c34d56 runAfterPass<llvm::Module,
llvm::detail::PassConcept<llvm::Module, llvm::AnalysisManager<llvm::Module>=
 > >
/usr/src/contrib/llvm-project/llvm/include/llvm/IR/PassInstrumentation.h:25=
6:9
#26 0x0000000004c34d56 run
/usr/src/contrib/llvm-project/llvm/include/llvm/IR/PassManager.h:521:10
#27 0x0000000002ca7ae4 isSmall
/usr/src/contrib/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:195:33
#28 0x0000000002ca7ae4 ~SmallPtrSetImplBase
/usr/src/contrib/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:83:10
#29 0x0000000002ca7ae4 ~PreservedAnalyses
/usr/src/contrib/llvm-project/llvm/include/llvm/IR/PassManager.h:152:7
#30 0x0000000002ca7ae4 RunOptimizationPipeline
/usr/src/contrib/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1049:5
#31 0x0000000002ca04ab EmitAssembly
/usr/src/contrib/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:0:3
#32 0x0000000002ca04ab EmitBackendOutput
/usr/src/contrib/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1268:13
#33 0x0000000002f9c703 reset
/usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/__memory/unique_ptr.h:2=
94:28
#34 0x0000000002f9c703 ~unique_ptr
/usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/__memory/unique_ptr.h:2=
63:75
#35 0x0000000002f9c703 HandleTranslationUnit
/usr/src/contrib/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:382:7
#36 0x00000000034a3600 begin
/usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/vector:1423:30
#37 0x00000000034a3600
finalize<std::__1::vector<std::__1::unique_ptr<clang::TemplateInstantiation=
Callback,
std::__1::default_delete<clang::TemplateInstantiationCallback> >,
std::__1::allocator<std::__1::unique_ptr<clang::TemplateInstantiationCallba=
ck,
std::__1::default_delete<clang::TemplateInstantiationCallback> > > > >
/usr/src/contrib/llvm-project/clang/include/clang/Sema/TemplateInstCallback=
.h:54:16
#38 0x00000000034a3600 ParseAST
/usr/src/contrib/llvm-project/clang/lib/Parse/ParseAST.cpp:203:3
#39 0x0000000002ee3706 Execute
/usr/src/contrib/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1062:10
#40 0x0000000002e69224 getPtr
/usr/src/contrib/llvm-project/llvm/include/llvm/Support/Error.h:272:42
#41 0x0000000002e69224 operator bool
/usr/src/contrib/llvm-project/llvm/include/llvm/Support/Error.h:235:16
#42 0x0000000002e69224 ExecuteAction
/usr/src/contrib/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1046:=
23
#43 0x0000000002f95753 ExecuteCompilerInvocation
/usr/src/contrib/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocat=
ion.cpp:264:25
#44 0x0000000002468752 cc1_main
/usr/src/contrib/llvm-project/clang/tools/driver/cc1_main.cpp:251:15
#45 0x0000000002476912 ExecuteCC1Tool
/usr/src/contrib/llvm-project/clang/tools/driver/driver.cpp:360:12
#46 0x0000000002d1d257 operator()
/usr/src/contrib/llvm-project/clang/lib/Driver/Job.cpp:428:30
#47 0x0000000002d1d257 callback_fn<(lambda at
/usr/src/contrib/llvm-project/clang/lib/Driver/Job.cpp:428:22)>
/usr/src/contrib/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:4=
5:12
#48 0x0000000004f37403 operator()
/usr/src/contrib/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:0=
:12
#49 0x0000000004f37403 RunSafely
/usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:426=
:3
#50 0x0000000002d1ccb2 Execute
/usr/src/contrib/llvm-project/clang/lib/Driver/Job.cpp:428:7
#51 0x0000000002ce702a ExecuteCommand
/usr/src/contrib/llvm-project/clang/lib/Driver/Compilation.cpp:199:15
#52 0x0000000002ce729f ExecuteJobs
/usr/src/contrib/llvm-project/clang/lib/Driver/Compilation.cpp:253:13
#53 0x0000000002d000d0 empty
/usr/src/contrib/llvm-project/llvm/include/llvm/ADT/SmallVector.h:94:46
#54 0x0000000002d000d0 ExecuteCompilation
/usr/src/contrib/llvm-project/clang/lib/Driver/Driver.cpp:1856:23
#55 0x0000000002475f91 main
/usr/src/contrib/llvm-project/clang/tools/driver/driver.cpp:562:21
#56 0x000000082b85635a __libc_start1 /usr/src/lib/libc/csu/libc_start1.c:15=
7:2
c++: error: clang frontend command failed with exit code 138 (use -v to see
invocation)
FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git
llvmorg-16.0.6-0-g7cbf1a259152)
Target: x86_64-unknown-freebsd14.0
Thread model: posix
InstalledDir: /usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin
--- _bootstrap-tools-usr.bin/clang/clang-tblgen ---
--- TableGen.o ---
c++  -O2 -pipe -fno-common
-I/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libclang
-I/usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libllvm
-I/usr/src/contrib/llvm-project/clang/include -I/usr/src/lib/clang/include
-I/usr/src/contrib/llvm-project/llvm/include -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_VCS_VERSION_INC -DNDEBUG
-DLLVM_DEFAULT_TARGET_TRIPLE=3D\"x86_64-unknown-freebsd14.0\"
-DLLVM_HOST_TRIPLE=3D\"x86_64-unknown-freebsd14.0\"
-DDEFAULT_SYSROOT=3D\"/usr/obj/usr/src/amd64.amd64/tmp\" -DLLVM_TARGET_ENAB=
LE_X86
-DLLVM_NATIVE_ASMPARSER=3DLLVMInitializeX86AsmParser
-DLLVM_NATIVE_ASMPRINTER=3DLLVMInitializeX86AsmPrinter
-DLLVM_NATIVE_DISASSEMBLER=3DLLVMInitializeX86Disassembler
-DLLVM_NATIVE_TARGET=3DLLVMInitializeX86Target
-DLLVM_NATIVE_TARGETINFO=3DLLVMInitializeX86TargetInfo
-DLLVM_NATIVE_TARGETMC=3DLLVMInitializeX86TargetMC -ffunction-sections
-fdata-sections -gline-tables-only -MD -MF.depend.TableGen.o -MTTableGen.o
-Wno-format-zero-length -Wdate-time -Wno-empty-body -Wno-string-plus-int
-Wno-unused-const-variable -Wno-error=3Dunused-but-set-parameter
-Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality
-Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef
-Wno-address-of-packed-member -Wno-switch -Wno-switch-enum
-Wno-knr-promoted-parameter -Wno-parentheses -Qunused-arguments
-I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include  -fno-exceptions
-fno-rtti -std=3Dc++17    -stdlib=3Dlibc++ -Wno-c++11-extensions   -c
/usr/src/contrib/llvm-project/clang/utils/TableGen/TableGen.cpp -o TableGen=
.o
--- _bootstrap-tools-usr.bin/clang/llvm-tblgen ---
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/CodeEmitterGen-fac609.cpp
c++: note: diagnostic msg: /tmp/CodeEmitterGen-fac609.sh
c++: note: diagnostic msg:=20

********************
*** [CodeEmitterGen.o] Error code 1

make[3]: stopped in /usr/src/usr.bin/clang/llvm-tblgen
--- _bootstrap-tools-usr.bin/clang/clang-tblgen ---

make[2]: stopped in /usr/src
--- _bootstrap-tools-usr.bin/clang/llvm-tblgen ---
1 error

make[3]: stopped in /usr/src/usr.bin/clang/llvm-tblgen

make[2]: stopped in /usr/src
       42,95 real       355,68 user        11,00 sys

make[1]: stopped in /usr/src

make: stopped in /usr/src

--=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-276292-227>