From nobody Mon Oct 17 18:39:16 2022 X-Original-To: ports-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 4Mrm4503rVz4f87Q for ; Mon, 17 Oct 2022 18:39:17 +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 4Mrm442Dgkz3qg5 for ; Mon, 17 Oct 2022 18:39:16 +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 4Mrm441JPwzvfl for ; Mon, 17 Oct 2022 18:39:16 +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 29HIdGlv077792 for ; Mon, 17 Oct 2022 18:39:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 29HIdGJC077791 for ports-bugs@FreeBSD.org; Mon, 17 Oct 2022 18:39:16 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: ports-bugs@FreeBSD.org Subject: [Bug 267156] databases/db5: fix build with clang 15 Date: Mon, 17 Oct 2022 18:39:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-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 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666031956; 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=8ovZkmVGUlw1tc2gAuSp8GcLuc9gdn4AI4notMsiCFc=; b=lxQOq7jOlgoRzJE1ikw5FusOmvkkvmTwuyQNdmzq2M+j9DCqMeEka03JJkwow2XToBlbBF osyFLlIkg5z2tqBmcmrg9/rPuVDDsEQZFS8bTGVhSDE3gL3gC9QiOaLEHG1PM0zzOw/+5Z TiqFzJ4YNpj1MhXvxSq/Jwz7Ke+JfkdXBjzenYEEObUdTryotboXB0crz+ifd/Lhxt6DhM e40T7ACkhBADgbz0PP4AORq+AwwJTno46Sn0dnrp5A5kkBetimUY4g73MkMB5In83yyu/j JLhmZrW9GqaRtQeS0BSzrEkNZlA2voe24FTxcZhwOZMq4mhGFfgqra87ZI2mFg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666031956; a=rsa-sha256; cv=none; b=qxxMYJJZY5iWloYLddavFSO6RJ6KaAHPQdMZL5gs3GsfK9pEmueUlAsO8/DpcJk/3SlaYT dIKiMtmpL3nKKOS8FTBFx25iezexcfnmDQexJmlUSwv3LQwu3+gmCmwaiwHTVyP0BwafRM /Kl3C3Yq/9bg48N8nJfv/FPy1ohwES+b2Laa3CiGHO7hrLTkIGM4Qw9cp2XYMo0HIMAXLf G04snhX2NR0EQ2n80fzQhaFEuEjSD3ZsTWzSDjfn9yDJaE98cf1e7jYpJxqYoeNYvqJpnU V3gqJtN1axjXtaQ7dTcqtxi3jHIVWkkSWm4No3Q9lrFyl1B4vbWsVLu1ffGXnA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267156 Bug ID: 267156 Summary: databases/db5: fix build with clang 15 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: dim@FreeBSD.org During an exp-run for llvm 15 (see bug 265425), it turned out that databases/db5 failed to build with clang 15. This is caused by db5's configure script attempting to detect TLS but encountering internal compiler errors while compiling its test cases, and t= hen concluding TLS does not work at all: ... checking whether C++ supports the wstring class... checking for thread local storage (TLS) class... none ... in config.log it shows what is happening: configure:19128: checking for thread local storage (TLS) class configure:19164: c++ -c -O2 -pipe -Wall -Wextra -fstack-protector-strong -fno-strict-aliasing -D_THREAD_SAFE conftest.cpp >&5 conftest.cpp:30:72: error: use of undeclared identifier 'NULL' template __thread T* TLSClass::tlsvar =3D NU= LL; ^ Assertion failed: (!isValueDependent() && "Expression evaluator can't be ca= lled on a dependent expression."), function isConstantInitializer, file /share/dim/src/freebsd/llvm-15-update/contrib/llvm-project/clang/lib/AST/Ex= pr.cpp, line 3184. 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 -O2 -pipe -Wall -Wextra -fstack-protector-strong -fno-strict-aliasing -D_THREAD_SAFE conftest.cpp 1. conftest.cpp:30:76: current parser token ';' #0 0x00000000053fec51 PrintStackTrace /share/dim/src/freebsd/llvm-15-update/contrib/llvm-project/llvm/lib/Support= /Unix/Signals.inc:569:13 #1 0x00000000053fcf35 RunSignalHandlers /share/dim/src/freebsd/llvm-15-update/contrib/llvm-project/llvm/lib/Support= /Signals.cpp:104:18 #2 0x00000000053a591e HandleCrash /share/dim/src/freebsd/llvm-15-update/contrib/llvm-project/llvm/lib/Support= /CrashRecoveryContext.cpp:76:5 #3 0x00000000053a5ae3 CrashRecoverySignalHandler /share/dim/src/freebsd/llvm-15-update/contrib/llvm-project/llvm/lib/Support= /CrashRecoveryContext.cpp:0:51 #4 0x0000000006a1b05e handle_signal /share/dim/src/freebsd/llvm-15-update/lib/libthr/thread/thr_sig.c:0:3 c++: error: clang frontend command failed with exit code 134 (use -v to see invocation) Interestingly enough this compilation error with a fatal crash exists for a very long time, even back to clang 10 and earlier! But for various reasons = the configure script has always ignored these errors and found some workaround = way to enable TLS anyway. For now the problem can be fixed by including at the top of conftest.cpp, which will allow the TLS test to succeed normally, without crashing, and the correct result will then be: configure:19128: checking for thread local storage (TLS) class configure:19165: c++ -c -O2 -pipe -Wall -Wextra -fstack-protector-strong -fno-strict-aliasing -D_THREAD_SAFE conftest.cpp >&5 conftest.cpp:33:35: warning: unused variable 'x' [-Wunused-variable] static __thread int x =3D 0; ^ 1 warning generated. configure:19165: $? =3D 0 configure:19220: result: modifier --=20 You are receiving this mail because: You are the assignee for the bug.=