From nobody Mon Dec 08 03:14:39 2025 X-Original-To: freebsd-current@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 4dPnCb2dcQz6Jp3x for ; Mon, 08 Dec 2025 03:14:51 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dPnCZ63Qbz3fTp for ; Mon, 08 Dec 2025 03:14:50 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-640b06fa959so6519722a12.3 for ; Sun, 07 Dec 2025 19:14:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1765163683; x=1765768483; darn=freebsd.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:date:from:from:to:cc:subject:date :message-id:reply-to; bh=1DzKiEvqyv7kktlR/XMNP/DDViXwa0VM9f86UUnZmWQ=; b=mWrTqKZoKsaR8DqOCkCouLodfVpvbSDoxyjANvvWq2T27SkBLgSGhpeBV7Ud6yeNPR IVFMAov8T5BPaSXFj0AfEvSMRWk2ziMQGbMpEeMWr0Ak4S3KiU66Jsv2caJFDo9o87pM 4oVi5Y+eSGFfCizUi9KY2G6pTx/TfzNaBCnOclYbXPmwcReW9LYriL7Os4hR8bIiR/7P nLdp62zfalaQv6roNVHTMZY1yHhEweZDX2NdQ0/aCg+M4PCtwP0QkAdr8mH9nSLLRfhQ VjcwIrvpt4FnJhR4IIlffs2ixYOOdJfuyuLHXddiC2BndbXBBJ1ylG+JRva2jpo/D+K1 ZLfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765163683; x=1765768483; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:date:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=1DzKiEvqyv7kktlR/XMNP/DDViXwa0VM9f86UUnZmWQ=; b=ug2kOis878pZLiQolG4H1lMum0y8/FF1a8jrqaOpzpybuceg5rLs5tzkLcTCrdFhRB m0uzwdp9XNhs23YG0dRWElXl+KW5u+a5uGemJG8m2Nc7LAV1bjLYz1CdleMVc8LURI1y zCc636yGacwaQqjikjl/UTN3QdvkX3sEjWwz+0QvUU3wRO3PN7Devgll4Uk225IWqbb/ OTsMQs2Ir69X/KnKW8KMs9H/NveESbeIyNvyFMj4feXhO5Mj1+2syQ8pEI/eWu64og3z G+EJ8Lvv3zzCDq6cac5GEU6oK6jxdqg2hauYzzjOJ5K0+tyLoyzYG9WT09WIxKKtL81i a6qA== X-Forwarded-Encrypted: i=1; AJvYcCU98PcKzXC5ohjcqBltrxRBg4PtCK1qGR2vipJ9/GIK98iw7HD3GqNfh0PALmudoSyR8Qq+GQIsYV+nJtz2th8=@freebsd.org X-Gm-Message-State: AOJu0Yw3lCZSTeHvbRXZwZbE5ioBBz0oYxlDydDrt4tNnGywcQgVShBy 83Wg16ikEVZVBapvsbVnpYRLh02UJkfmFOHqu+3XBdJsxqLFJCBEVjY4 X-Gm-Gg: ASbGnct4ZfFdVU/0pFELFR5tKLBfFJIywweF0RSfq923UUDRMaUvtMWlwG2GtFJB0gn uS2A7BPAVgcE/A2PEfbHqfkWbwNetEcJldbRhZcpZg5sJfn/34xdFf9zOaYPEo1eQqfxCUhzsVh EPbKe+KyLhi8hYL9xR8G63yUSeIp9ka658Eo9z94Bu5DEolWOvJhz8mKdYbAVYxHVxPnlkqrGz4 ClsfDu5dGOIXZE1I1rq9w1Q1p+eX2oPpGD6E3VqXHNSe/ulvSP5tWdlyz3qhPLY0vCxsJYyM4BC EKVUXUVhus5XCidDOhxNHzb+/7aeE3sszE9Q3jndjVE9+HydKfU2J2KkNfZDIGyT27D1F5V0Ivi MzuphyUC67WZiI9eitep8S1VCXeGYe61pGqx2fBgYZftQHCAWafsw4+qH9LixihQPAc90Nbb5QO k1oGaBYpSMnWlEzQHg84hNiUjw X-Google-Smtp-Source: AGHT+IHj8V9ZM7zzJb9UxDAvxP7SV6tfUxRdepOQs1OhoQoQQ2K2hDgFt1SZmRIBKzUqAV/SP1utIA== X-Received: by 2002:a05:6402:4314:b0:640:976f:13b0 with SMTP id 4fb4d7f45d1cf-6491a3e1fe8mr5307219a12.12.1765163683353; Sun, 07 Dec 2025 19:14:43 -0800 (PST) Received: from rimwks.local ([2001:470:1f1b:4dc:f489:3de4:6515:f056]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-647b368dcf8sm10170804a12.19.2025.12.07.19.14.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Dec 2025 19:14:41 -0800 (PST) From: Rozhuk Ivan X-Google-Original-From: Rozhuk Ivan Date: Mon, 8 Dec 2025 05:14:39 +0200 To: Konstantin Belousov Cc: Mateusz Guzik , Warner Losh , Mark Millard , FreeBSD Current , FreeBSD-STABLE Mailing List , brooks@freebsd.org Subject: Re: performance regressions in 15.0 Message-ID: <20251208051439.7c6a2c1a@rimwks.local> In-Reply-To: References: <18FB2858-5CBB-4B7A-8089-224A58C6A160@yahoo.com> <20251208035105.2313075d@rimwks.local> X-Mailer: Claws Mail 4.3.1 (GTK 3.24.51; amd64-portbld-freebsd14.3) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dPnCZ63Qbz3fTp On Mon, 8 Dec 2025 03:59:17 +0200 Konstantin Belousov wrote: > > So upstream DOES NOT RECOMMEND to build shared libs to users!!! > I am curious about the motivation. > > JFYI, shared llvm libs are required for lot of things. The incomplete > list of examples that I am aware of are dri drivers and ispc Intel > compiler. > For ports: LLVM_LINK_LLVM_DYLIB:BOOL If enabled, tools will be linked with the libLLVM shared library. Defaults to OFF. Setting LLVM_LINK_LLVM_DYLIB to ON also sets LLVM_BUILD_LLVM_DYLIB to ON. This option is not available on Windows. I do turn if off (to upstream default state): # ls /tmp/ports/usr/ports/devel/llvm19/work-default/stage/usr/local/llvm19/bin/clang-19 -rwxr-xr-x 2 root wheel 164M Dec 8 05:04:41 2025 /tmp/ports/usr/ports/devel/llvm19/work-default/stage/usr/local/llvm19/bin/clang-19* # find /tmp/ports -name "*libLLVM.so*" /tmp/ports/usr/ports/devel/llvm19/work-default/stage/usr/local/llvm19/lib/libLLVM.so.19.1 /tmp/ports/usr/ports/devel/llvm19/work-default/stage/usr/local/llvm19/lib/libLLVM.so /tmp/ports/usr/ports/devel/llvm19/work-default/.build/lib/libLLVM.so.19.1 /tmp/ports/usr/ports/devel/llvm19/work-default/.build/lib/libLLVM.so # make package ===> Building packages for llvm19-19.1.7_1 ===> Building llvm19-19.1.7_1 (no errors here) So ports also can be and should be staticly linked and it should not brake anything.