From nobody Sat Jan 25 16:44:56 2025 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 4YgLBd3tHvz5lb2J for ; Sat, 25 Jan 2025 16:44:57 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YgLBd1Jcpz4GTw for ; Sat, 25 Jan 2025 16:44:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737823497; 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=9/pUq42n3lEwc5ogZyx9RTsj+NxtFiIW1babcN7e0wY=; b=p6zZo4QRYzVXnX1nFtIDP9eDKuYDOIe2TW6QdNcri2BZ95Kf9I2q2Juk2Fj1v5PbJyg6Vu Y4M7nxOK9rex6jJak+fN5rGyVA0zMHCSAEWnkAyG3CvkEAEDoKJlM6US7wOBMGMlSDsV+n KkG3q7+2v7Cu801B+Qmu1y9hy/NSKf9zyjH2pSdQoVsnlZ+fsG8jta+AGfRgvPLsT3nMT6 zYL/F87tIelQkIWUAZJh7udHnm+ovy5b8HoYHH7IVHMnhvteJwimBJSk1jt4mZuWGbuL7Q XrCb1e80UWKqDqSlKZvVjdfjy/XXk8ynsVnFEKinIBhJ+c8jTz8MWXePTrQaYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737823497; 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=9/pUq42n3lEwc5ogZyx9RTsj+NxtFiIW1babcN7e0wY=; b=cAmE2tOwxPMi5Y6zDSIVF7CcpIzsaTnq86hrhvFR8dj8YB2VMzttJI8KkwPUNkp5QBw+Mm gadyf1duVmjSGfptBvmOh7HRWznIWhjVbZWQ3jqAxjV/AB4gq1heRVUL2o9RpZPCzTlM1E hDCLVIIT9RO0lP396rHAQ6/If4HpmNNKuVb63GVWPlzOy80iQhxO2AXz5VQ3bvnvVXjnjy Hn5fTNpwjZSwpGs3S25fAYSyukHi4CDwLXuse9xUHU0Wk0CscPt7MbLBD93AVirGaG0yZo 47g+EhLRz3mFD5qxvbenI3V4+EaB+/BRvNuc91inXUHmR0dy6wGC1PlJzvcQRA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737823497; a=rsa-sha256; cv=none; b=BQuDQ/jsbQTbuFcJiRsShQfMA6KWlZM7oP0b1LnFmK+lL5c4oZza1DV74T+KSmnv0xLpZ6 VN+SHFM63cdZyczKUPB3bskUTyGdZAGkfxmApYjwzAAQhvDiLa6lrKPH62dotRB34eN0kx V3Gd+ewPqvh8tXGuj8HmxqpS5s8FWQJ4CHSH4rvujamkgy9uOnn6c1xBo/2yMJpSB8KS+H BwqCqgFZxKg8LalqHHJZbGhjlctjxPX7a5IvMFe+5qkzrdIV2wy9igaTfxQ7yk+JjqhgPo kotCeyn/iBwnKs39RT6GCodMmbiakdr1ok09KdHEGYUwTUtimcoJQbS6IbPuZA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YgLBd0ln0z1K65 for ; Sat, 25 Jan 2025 16:44:57 +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 50PGiuwK073469 for ; Sat, 25 Jan 2025 16:44:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 50PGiuOl073468 for ports-bugs@FreeBSD.org; Sat, 25 Jan 2025 16:44:56 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 284344] lang/ldc: fix build with LLVM_DEFAULT=19 Date: Sat, 25 Jan 2025 16:44:56 +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: acm@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D284344 Bug ID: 284344 Summary: lang/ldc: fix build with LLVM_DEFAULT=3D19 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: acm@FreeBSD.org Reporter: dim@FreeBSD.org Flags: maintainer-feedback?(acm@FreeBSD.org) Assignee: acm@FreeBSD.org When building lang/ldc with LLVM_DEFAULT=3D19, linking ldc-profdata fails w= ith: FAILED: bin/ldc-profdata : && /usr/local/llvm19/bin/clang++ -O2 -pipe -fPIC -fstack-protector-stro= ng -fno-strict-aliasing -DDMDV2 -O2 -pipe -fPIC -fstack-protector-strong -fno-strict-aliasing -DNDEBUG -fstack-protector-strong -Xlinker --dependency-file=3Dtools/CMakeFiles/ldc-profdata.dir/link.d tools/CMakeFiles/ldc-profdata.dir/ldc-profdata/llvm-profdata-19.1.cpp.o -o bin/ldc-profdata -lLLVM-19 -L/usr/local/llvm19/lib && : ld: error: undefined symbol: pthread_create >>> referenced by llvm-profdata-19.1.cpp >>>=20=20=20=20=20=20=20=20=20=20=20=20=20=20 tools/CMakeFiles/ldc-profdata.dir/ldc-profdata/llvm-profdata-19.1.cpp.o:(st= d::__1::future std::__1::__make_async_assoc_state[abi:sn190107]>>(std::__1::__async_func>&&)) clang++: error: linker command failed with exit code 1 (use -v to see invocation) This is because the link command line is missing -lpthread. For the tools/ subdirectory, use the CMAKE_THREAD_LIBS_INIT macro to fix the target_link_libraries() directive. --=20 You are receiving this mail because: You are the assignee for the bug.=