From nobody Fri Oct 25 17:46:23 2024 X-Original-To: x11@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 4XZqvz6Yc9z5Zym1 for ; Fri, 25 Oct 2024 17:46:23 +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 4XZqvz2XWdz4TDL for ; Fri, 25 Oct 2024 17:46:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729878383; 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: in-reply-to:in-reply-to:references:references; bh=6UGsNtCtNXI2k59A34+G6f5vi0w3PKNx2QgJJrad0yU=; b=fuWSM6lgRaM1+soSNVlk3GzfoNKgUvZrVwLgM86tnLPtegCXWDSCKzRSqe0tiN4TdQ1eYX gFok1wD8gAY7kMhbiKZd1g+Hh1/OS9RDoavbAHo5zfMjz5KO5btTvIhGwkOHfbhW0hvraA ppG4FqtBr27phX0fVk++O7+vvj/u/ePNS5EHS7q4/xashGm7ylHR1LG29mZ1RCDtAPNGIK U5tviypAsvycwsJsN98jXEdvpv9U8r86gaMeY0wsUAyIGN8OKacWKjDAjkDgakoZlyzEjc IF7znZtsM12NXEfvxNmYEvoxDuJsTPMJWJTNhSWlAUsLYIMmWgmKMYCyPVrq4A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729878383; a=rsa-sha256; cv=none; b=x45KFIT0d9li3c7ZTq6IsgRKkEn5c09ubKJDYRXouQhnNIIkWjiu1r9v7nJtQDe4H1wgUs gwg/HeQTh2J0s7+bo5v8r1mCw17tttrHQNgCqheEmVm3e2MJY172g/d69YatzUGmMI4FUH 0dIDoW13jUyw93QUEkV3KOWMQnw8xNrenCIUxnLycKlCciFsnU0mxWEdUEm5wAiwQBKTaT GgwJMSYUIPkZP+a1hsHa1JjTxwHTFrtDCRhDEFWMOtry4wgIKk+3lpt+G173KGRSRpIu4B UfcQG/U1pkDxCu8UbCS7YhoqbJdjWD68wugwCrck8QxDBbV+s3/a5whXz4NTKw== 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 4XZqvz1wn4zbXS for ; Fri, 25 Oct 2024 17:46:23 +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 49PHkMF4069566 for ; Fri, 25 Oct 2024 17:46:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 49PHkMRl069565 for x11@FreeBSD.org; Fri, 25 Oct 2024 17:46:22 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: x11@FreeBSD.org Subject: [Bug 282316] graphics/mesa-dri: fix build with clang 19 Date: Fri, 25 Oct 2024 17:46:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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 Only Me X-Bugzilla-Who: jkim@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created Message-ID: In-Reply-To: References: 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: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-x11@freebsd.org Sender: owner-freebsd-x11@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282316 Jung-uk Kim changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #254502|0 |1 is obsolete| | --- Comment #1 from Jung-uk Kim --- Created attachment 254511 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D254511&action= =3Dedit Fix build with clang 19 and correct TLS model I just realized it builds with the previous patch but it does not work beca= use it causes errors like this: % vulkaninfo ERROR: [Loader Message] Code 0 : /usr/local/lib/libvulkan_intel.so: Unsuppo= rted relocation type 36 in non-PLT relocations ERROR: [Loader Message] Code 0 : loader_icd_scan: Failed loading library associated with ICD JSON /usr/local/lib/libvulkan_intel.so. Ignoring this J= SON ERROR: [Loader Message] Code 0 : /usr/local/lib/libvulkan_radeon.so: Unsupported relocation type 36 in non-PLT relocations ERROR: [Loader Message] Code 0 : loader_icd_scan: Failed loading library associated with ICD JSON /usr/local/lib/libvulkan_radeon.so. Ignoring this = JSON ERROR: [Loader Message] Code 0 : /usr/local/lib/libvulkan_lvp.so: Unsupport= ed relocation type 36 in non-PLT relocations ERROR: [Loader Message] Code 0 : loader_icd_scan: Failed loading library associated with ICD JSON /usr/local/lib/libvulkan_lvp.so. Ignoring this JSON ERROR: [Loader Message] Code 0 : vkCreateInstance: Found no drivers! Cannot create Vulkan instance. This problem is often caused by a faulty installation of the Vulkan driver = or attempting to use a GPU that does not support Vulkan. ERROR at /data/usr/obj/usr/ports/graphics/vulkan-tools/work/Vulkan-Tools-1.3.299/vul= kaninfo/./vulkaninfo.h:456:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER The reason is because clang 19 now supports "-mtls-dialect=3Dgnu2" but our = rtld does not support this model (yet?). Instead, we have been using "-ftls-model=3Dinitial-exec" for a while. This patch adds our TLS implementation. --=20 You are receiving this mail because: You are the assignee for the bug.=