From nobody Thu Jun 20 01:26:12 2024 X-Original-To: freebsd-arch@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 4W4N9t6tY8z5Njfx for ; Thu, 20 Jun 2024 01:26:26 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) (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 4W4N9t4s05z4GSh for ; Thu, 20 Jun 2024 01:26:26 +0000 (UTC) (envelope-from bakul@iitbombay.org) Authentication-Results: mx1.freebsd.org; none Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-2c7dd4586afso353656a91.2 for ; Wed, 19 Jun 2024 18:26:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iitbombay-org.20230601.gappssmtp.com; s=20230601; t=1718846785; x=1719451585; darn=freebsd.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=m/ATuzezsNl98HjX+91gXRtiRw33RD2DSngNI1PZRtw=; b=zCxsvQkNv84eY2fU0eUezl9JqYYNETZDfTff+5ZRQOu7rPYcuGR8JwL+BNhh9K75tt 1ME6uaSMugagq7h1iocrOFGN+NR6cMDSiyExpHdkqkhcmCKvkXM3zcGTahDUANSkKXo3 uTvj/3fwDuf9ks2yByQIt5kkp4QPg/yii+0B0ELJo7fSfTq7zODejtzJZyFViEjSll4U WX716ZjzzgwUWsgdsDp0V57FPuItxBCdZfeKJoBwpqU324e0VeDG83kegqXYyPIKlFfq tKY0l+j5P/ahBAUFQzn8ZpBoUgPH8HwXI6mXZez37Jd3RA6IEVydGrhCPP/bJXEArgQU iYgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718846785; x=1719451585; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=m/ATuzezsNl98HjX+91gXRtiRw33RD2DSngNI1PZRtw=; b=F6m1qTebOPDWi+o7ubI3x+/oicEzYtmIn0uOeSH0oQJFwHpb7qoMqzgw4NV9XWUODF h7qGX2IbUWJc9IWjhig4CTU53EjgzSJvU9E95cOVJbLJah1ncfn+gQul3UMqqmzTAm7v za/c2iHgXP68aFTnxIHlKC2zVFb0ZZyuxS24NZ89ZSZJXg6dOfFNpRmjCczitmHRVtby 52wNGUDmX0OuGDm09juaWXMO8IFUpbK6+ayfkcHaE4cUC8QMThgAXlVYgIHQZGZOTVXz urLEJRUFadcngNCROXBL7gr9/aKDbl6FRo2fu/+SyLHNBiKOcO9a2zYWLnXS0DjB7gm7 2TYA== X-Gm-Message-State: AOJu0Yz8cbwOYsDgJy1rEyFpUbD5JuEK1fxk9mfbF6axhM9Kg2NNlX6K ZM5XHYJmsYeeXi8g9exc6+L/0pXn6IXhzKvAKr8xejnD+09+zHVhlwZmH+QqWJl6UdxxQynynoY = X-Google-Smtp-Source: AGHT+IFSvUGzwfF9Q1gUaynScOJNarq3FZ1376FwAaZ/gcmFZtjwlHUeE3h+FKaGVl7kRSluKTQBmA== X-Received: by 2002:a17:90a:d48d:b0:2c4:ab0b:9d9e with SMTP id 98e67ed59e1d1-2c7b5c82767mr3930803a91.15.1718846784813; Wed, 19 Jun 2024 18:26:24 -0700 (PDT) Received: from smtpclient.apple (107-215-223-229.lightspeed.sntcca.sbcglobal.net. [107.215.223.229]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c7e4ff980dsm356706a91.4.2024.06.19.18.26.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Jun 2024 18:26:24 -0700 (PDT) Content-Type: text/plain; charset=utf-8 List-Id: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: Minimum gcc and clang supported to generate FreeBSD binaries From: Bakul Shah In-Reply-To: Date: Wed, 19 Jun 2024 18:26:12 -0700 Cc: "freebsd-arch@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <197A5386-1096-4754-BA82-996140B56EAF@iitbombay.org> References: To: Warner Losh X-Mailer: Apple Mail (2.3774.600.62) X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4W4N9t4s05z4GSh On Jun 19, 2024, at 6:01=E2=80=AFPM, Warner Losh wrote: >=20 > Ah, but what do you say about tcc and pcc which are't gcc? Well, tcc = lies, and says it supports gcc (version 9 I think, but it's been a while = since I checked). tcc can't work today because we have qsort.h using = versioned symbols unconditionally, and it doesn't support versioned = symbols.... And patches to do that have been stalled for reasons = unrelated to this desire. pcc doesn't support gnuc symbols at all last I = checked. But it has real issues building some things in the tree, so = I'll not gate things by it unless somebody steps up to actually do the = work to make it work. The pcc upstream has been weird lately too. Why are versioned symbols required for qsort.h? Can we maintain freebsd specific hack in tcc port? Compiling with tcc is sooo much faster. That is more important to me = than the speed of the running code - at least during development. tcc = does require more work than just support for versioned symbols.... Just as the build is ideally portable to more platforms (linux, macos) = it should be portable to more compilers & to resist temptation to rely = on compiler specific features.=20 Personally I'd prefer if clang+llvm was picked up from a port and not = part of the freebsd sources -- to keep them somewhat more portable and = to cut down on buildworld time. Ok by me if only specific version(s) are = supported for a given compiler. Thanks for all the cleanup in any case.