From nobody Thu Jun 23 16:10:43 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B7DAB861C9C for ; Thu, 23 Jun 2022 16:10:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LTQGC2wSFz51fx for ; Thu, 23 Jun 2022 16:10:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 44FD11E388 for ; Thu, 23 Jun 2022 16:10:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 25NGAhm8094842 for ; Thu, 23 Jun 2022 16:10:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 25NGAh4C094840 for bugs@FreeBSD.org; Thu, 23 Jun 2022 16:10:43 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 264853] clang: fatal error when compiling peg with debug symbols Date: Thu, 23 Jun 2022 16:10:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jrm@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.mimetype attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656000643; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yi/z5VmQWN1m/k2SZ1j/PeUf4mWO0XhDJC57KSDobZE=; b=qE5PO6MjuuAqdloUWo9jEaDsgYCbCVIoCrCd+nBvfbSUwSTw4Bft/Nhio1h1uGjbW5uIpL 6mdkhET6erEEzGp+t9ALJb2BdK4Jav5PNC+3q5qh41p9pz0ryn+Hxa7DZlVtGoyzFrSIXb 64OHUU0q7io1uz9sHtVcJffyqNYFql1VM5ABGm5zVp02yaJZdQk6djz9bPR4pnQ5EWQudF PeS+VqEu8E8abADtCzJrZik1xdBBbx0DHdRiIwdCiqOpTS7Bpv6kQJgBvRtOALMyqiLMFH Ehqj62dt5QXw69s6tXnrXsLlCd3LhK/hW6bYv7G9bklpsSnP/2SIusu/hT+Lwg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656000643; a=rsa-sha256; cv=none; b=aDY86NWpKvxSyjF7/bsEZE6o0MztE3CTPFaXweSVIGXekXH2dB4DMKdQALVXj1m3DZRXpZ KhRN1LT8v2nfVQsfzL5azDNyD5QzrbTkyz4AymV4ZBPWaEFP2CEPmIeEwP7SbqtYnK37OR e3gc+S1a2XcAbnV2S9jf2X/5+RdpGJj1IiGIOJveenf7eOgnH1l41PxVaMm+iVcM1CsE0w FjuENiTTkDFFr9JG/2IgsM690Asdv3saRuief38Fz+EbgnKZEcX1DfRGEteYTDaIvg1HSy Sysf02PPgRDsxSuEQHbS0MtEhXxrHKBMmBr3sjLKgi374PwEN5aiQml148nIqg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264853 Bug ID: 264853 Summary: clang: fatal error when compiling peg with debug symbols Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: jrm@freebsd.org Attachment #234893 text/plain mime type: Created attachment 234893 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D234893&action= =3Dedit preprocessed source I saw this on CURRENT before and after llvm 14 was merged. The build log is short, so I'll include it below. When I remove -g from CFLAGS the build finishes. jrm@ser /usr/ports/textproc/peg/work/peg-0.1.18 [peg|=E2=9C=94] % gmake cc -g -Wall -O3 -DNDEBUG -Isrc -c -o peg.o src/peg.c In file included from src/peg.c:49: src/peg.peg-c:380:3: warning: unused label 'l77' [-Wunused-label] l77:; yy->__pos=3D yypos0; yy->__thunkpos=3D yythunkpos0; ^~~~ src/peg.peg-c:257:16: warning: unused function 'yyPush' [-Wunused-function] YY_LOCAL(void) yyPush(yycontext *yy, char *text, int count) ^ src/peg.peg-c:268:16: warning: unused function 'yyPop' [-Wunused-function] YY_LOCAL(void) yyPop(yycontext *yy, char *text, int count) { yy->__val -= =3D count; } ^ src/peg.peg-c:269:16: warning: unused function 'yySet' [-Wunused-function] YY_LOCAL(void) yySet(yycontext *yy, char *text, int count) { yy->__val[count]=3D yy->__; } ^ cannot have column info without line info !1417 =3D distinct !DILexicalBlock(scope: !1418, file: !9, column: 8) cannot have column info without line info !1417 =3D distinct !DILexicalBlock(scope: !1418, file: !9, column: 8) fatal error: error in backend: Broken module found, compilation aborted! 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: cc -g -Wall -O3 -DNDEBUG -Isrc -c -o peg.o src/p= eg.c 1. parser at end of file 2. Code generation #0 0x00000000050b95d1 PrintStackTrace /usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:565:13 #1 0x00000000050b7905 RunSignalHandlers /usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:98:18 #2 0x000000000505fb2e HandleCrash /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:79:5 #3 0x000000000505fabc /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:445= :3 #4 0x00000000050ab77c /usr/src/contrib/llvm-project/llvm/lib/Support/Process.cpp:102:5 #5 0x0000000002477e89 (/usr/bin/cc+0x2477e89) #6 0x0000000005067aae __is_long /usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/string:1445:22 #7 0x0000000005067aae ~basic_string /usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/string:2231:9 #8 0x0000000005067aae report_fatal_error /usr/src/contrib/llvm-project/llvm/lib/Support/ErrorHandling.cpp:104:5 #9 0x0000000005067949 (/usr/bin/cc+0x5067949) #10 0x0000000004d98b16 (/usr/bin/cc+0x4d98b16) #11 0x0000000004d29306 doFinalization /usr/src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1498:13 #12 0x0000000004d23297 runOnModule /usr/src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1585:41 #13 0x0000000004d23297 run /usr/src/contrib/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:539:44 #14 0x0000000002cbe654 ~TimeTraceScope /usr/src/contrib/llvm-project/llvm/include/llvm/Support/TimeProfiler.h:88:9 #15 0x0000000002cbe654 RunCodegenPipeline /usr/src/contrib/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1536:3 #16 0x0000000002cbe654 EmitAssembly /usr/src/contrib/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1565:3 #17 0x0000000002cbe654 EmitBackendOutput /usr/src/contrib/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1728:15 #18 0x0000000002fad2c3 reset /usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/__memory/unique_ptr.h:3= 12:28 #19 0x0000000002fad2c3 ~unique_ptr /usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/__memory/unique_ptr.h:2= 69:19 #20 0x0000000002fad2c3 HandleTranslationUnit /usr/src/contrib/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:370:7 #21 0x00000000034e28c4 begin /usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/vector:1408:30 #22 0x00000000034e28c4 finalize >, std::__1::allocator > > > > /usr/src/contrib/llvm-project/clang/include/clang/Sema/TemplateInstCallback= .h:54:16 #23 0x00000000034e28c4 ParseAST /usr/src/contrib/llvm-project/clang/lib/Parse/ParseAST.cpp:178:3 #24 0x0000000002ee975f Execute /usr/src/contrib/llvm-project/clang/lib/Frontend/FrontendAction.cpp:971:10 #25 0x0000000002e7dd9f getPtr /usr/src/contrib/llvm-project/llvm/include/llvm/Support/Error.h:271:42 #26 0x0000000002e7dd9f operator bool /usr/src/contrib/llvm-project/llvm/include/llvm/Support/Error.h:234:16 #27 0x0000000002e7dd9f ExecuteAction /usr/src/contrib/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1036:= 23 #28 0x0000000002fa6806 ExecuteCompilerInvocation /usr/src/contrib/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocat= ion.cpp:263:25 #29 0x0000000002477b45 cc1_main /usr/src/contrib/llvm-project/clang/tools/driver/cc1_main.cpp:248:15 #30 0x0000000002485095 ExecuteCC1Tool /usr/src/contrib/llvm-project/clang/tools/driver/driver.cpp:317:12 #31 0x0000000002d39f07 operator() /usr/src/contrib/llvm-project/clang/lib/Driver/Job.cpp:407:30 #32 0x0000000002d39f07 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 #33 0x000000000505fa64 operator() /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:0= :12 #34 0x000000000505fa64 RunSafely /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:428= :3 #35 0x0000000002d39b13 Execute /usr/src/contrib/llvm-project/clang/lib/Driver/Job.cpp:407:7 #36 0x0000000002d07f32 ExecuteCommand /usr/src/contrib/llvm-project/clang/lib/Driver/Compilation.cpp:196:15 #37 0x0000000002d083d9 ExecuteJobs /usr/src/contrib/llvm-project/clang/lib/Driver/Compilation.cpp:249:13 #38 0x0000000002d1d0fc empty /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/SmallVector.h:73:47 #39 0x0000000002d1d0fc ExecuteCompilation /usr/src/contrib/llvm-project/clang/lib/Driver/Driver.cpp:1617:23 cc: error: clang frontend command failed with exit code 70 (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 cc: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: cc: note: diagnostic msg: /tmp/peg-ee85f1.c cc: note: diagnostic msg: /tmp/peg-ee85f1.sh cc: note: diagnostic msg: ******************** gmake: *** [Makefile:43: peg.o] Error 70 --=20 You are receiving this mail because: You are the assignee for the bug.=