Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wL2c3-001UJH-12 for pgsql-hackers@arkaria.postgresql.org; Thu, 07 May 2026 17:34:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wL2c2-005MlZ-0m for pgsql-hackers@arkaria.postgresql.org; Thu, 07 May 2026 17:34:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wL2c1-005MlN-2y for pgsql-hackers@lists.postgresql.org; Thu, 07 May 2026 17:34:13 +0000 Received: from mail-qk1-x72b.google.com ([2607:f8b0:4864:20::72b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wL2by-00000000g45-2m9E for pgsql-hackers@postgresql.org; Thu, 07 May 2026 17:34:12 +0000 Received: by mail-qk1-x72b.google.com with SMTP id af79cd13be357-8ee7ffd738dso252604485a.1 for ; Thu, 07 May 2026 10:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1778175250; cv=none; d=google.com; s=arc-20240605; b=CIgOWY3Wh06xjhQLW697E3K1gXbtyshdcPGIVkpl0PM1x6zG1vh7CsKvcIkfY2i8GQ i23Z6aHoDbwSfDs2V7Y+R/liVxYo6WqCpA0sN74oaZXuwzlKQ2r+PjMZaLcVmwNLaxhO SnBcdnr4z/Aq980E4abjYQhDpLpzcAIHhEYNg6/En9Q/5qCk2JcJisz5i1I/BxYvlilJ RUCnmZzMM+n//VG/prPeRW+5sFqShraz827Yare1W24n77RNu4yAb2UF/6loZp39Tq2K IYorZmzKPJkAu8xD9LuzTliJcxmzppoo282jiu0KBJuzOJ7k0UOysnwKFyS+47Yu+FM2 /0KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=LOzG0TJ3qWXbusxlOito28aVa/d28T8WwJRuuDoWY8k=; fh=nnMEfyPmvflPIiQFdA1ZFc1FhRTVkqZe3hadEsDOrxc=; b=MdBQXnd7dkcB/7FLTP+/Wi8TLxvKuhdJ+nTqVZFs+r0/AGykXgehreoYwVUoK7K0q4 DcucVq4q3ca+RFNj8t1DXw8GD+t2s/ldqo3of+YPLrtIAR3m21HOvzDMr+5X8VJsFvXw rZ06jE7m4LWNnHOteOSseWYAnmWzjKqQvZidOUodEREG4fmklrkw75hVYGXCv+mcy+g5 pnXDw+3noH3yfqMtMC8757t5QAxB5XPHb6NT2TU4vhiLZnyuGke2QefK/A64xBAXyUhk U0qBmlXaHVFKlt43AAQc9heQsW+tSHa6y+LwXzqk4YSKFfkNGkZ9GICuxf249hesQU7H NjwQ==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fittl.com; s=google; t=1778175250; x=1778780050; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=LOzG0TJ3qWXbusxlOito28aVa/d28T8WwJRuuDoWY8k=; b=KpiDodzY0Ch0HAgpnBGRo3BJugD6yvdcLLPK8PkcMzaOu4C2OT+qAzTbbB7ep1KXvb EhN+rxy+avUOrwfgna+pNtWPNnELUFjQbvYuvclABQ8JrHjWnJKQlcgdV5oBpZbDQvq2 tJqm0Ps7iKOGQRkhd1BMxTqhNK+5XQpE/QvAI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778175250; x=1778780050; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=LOzG0TJ3qWXbusxlOito28aVa/d28T8WwJRuuDoWY8k=; b=AxAHuiMHIOm5QpZ6rhXLFCRQmMNycWeezzO1jklvtF/ugHcrYS5AEUCmxCzEXrjNEK Uri0gY+tv6+YPmFPS8U7MHDUope6SMvGo7zW6755snLJa1w8gAfIPO37/Cotmf5ujVOJ nTAzDFzR2yTQp89DP2f+Ndr5jwbgqUlvK0EHdJPEbPRmA0fAM9ZLZgWWQDYCYYk9u2RI 6HpunEDW6K3osrqN5HVdlKGfpBNDcfJ/VHQzPVT15w1XdLlJrNpG9SBSaA75kcKR+j7o eCrmODxJ0+epPFL3Jl8pYEGlXmA9LG2vwUDsMNcw+DCbe4bBesEHl6pdOixhRVR/0Jpu znwQ== X-Forwarded-Encrypted: i=1; AFNElJ+g/fOItQHYeYAdDi2GZRgL9Dl6DGDP4xX2RWhEnU9apw7OMdrhq9uC2ISzlaERGF/b5wi1ncTdKnJozifW@postgresql.org X-Gm-Message-State: AOJu0YwLHDsc1L3GXADNeDW+IzILc2wx/YYsQ4otBmg0x+8OFEG4RYH7 kAHnd46bkI1ICfYQTs7H82qD3/OFqzq9xbKPUKiFztC9j7pbDdMn4ZjuoEgvHgZ8XKszcTglHEz 9mK5MvgY3ETyrjGMTAVtYRfxXz+v3M7AiGmusG98h X-Gm-Gg: AeBDieuo7S+g+7nAzh4LspxglROUvMXawEiGqbiN0AlXCUjRDsZFLb53TQdLQgxRIvy KsRsgum0LXxdfOm/kBqswhLBIgpDcg4r1mVamdi6MmC9gx3hpyoCnbc7GFlA9wr9ep5jDw5fO5G gQ5iK1PzEW4VWKYbAMuFLGG3r1UluvupFdq2M5+O07Qm/fL11UwTAYf07/D4KCa/W1nW6mWG8X4 4EaUXQ+jf7U4NlGcoXtJeBrqRSOTcioERcqk/K2mDNZij/f5v2Xdu1XO20l7aqD0jTnWF5r72tS 2nAHwYGIvawQmjLLrIiQ8Z7XGFWywXJiqvJbxRrh1l8GhO9qLT0VGCjmnxSBrC2haR4tjLuIWyu lHJ7hatY= X-Received: by 2002:a05:620a:371e:b0:8f1:7ce7:5aff with SMTP id af79cd13be357-9064fc81bb9mr518668585a.1.1778175249798; Thu, 07 May 2026 10:34:09 -0700 (PDT) MIME-Version: 1.0 References: <223EA201-A0E8-4A13-B220-EB903E8DF817@eggerapps.at> <871806.1778168884@sss.pgh.pa.us> <873909.1778170924@sss.pgh.pa.us> In-Reply-To: <873909.1778170924@sss.pgh.pa.us> From: Lukas Fittl Date: Thu, 7 May 2026 10:33:33 -0700 X-Gm-Features: AVHnY4IVINBPWFBGHQ8ksD5aJHG6PLGdFWEIwBGDrD47wdTTMeJmgOfu5LuFp3o Message-ID: Subject: Re: Broken build on macOS (Universal / Intel): cpuid instruction not available To: Tom Lane Cc: John Naylor , Jakob Egger , pgsql-hackers , Tobias Bussmann , Andres Freund Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, May 7, 2026 at 9:22=E2=80=AFAM Tom Lane wrote: > > I wrote: > > ... The code in HEAD doesn't have > > that guard, and is essentially assuming that every x86 platform > > wil provide HAVE__GET_CPUID or HAVE__CPUID. > > Independently of whether macOS multi-arch is something we consider > supportable, I think the aforesaid assumption is a bad idea. > Can't we make pg_cpuid() return zeroes if it doesn't know how to > get the info, analogously to what pg_cpuid_subleaf() does? Having worked in that area in this cycle, I think returning zeroes (or adding a return value that confirms we got data) could work for the TSC related functionality, since we just fall back to the system clock and disallow TSC use if we can't get CPUID data. I'll let John confirm if there are any other optimizations that require CPUID data. CCing Andres as well, since he reviewed some of those patches for pg_cpu_x8= 6.c. Thanks, Lukas --=20 Lukas Fittl