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.94.2) (envelope-from ) id 1qtyWl-00FKet-40 for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Oct 2023 23:03:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qtyWi-00977n-Uj for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Oct 2023 23:03:33 +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.94.2) (envelope-from ) id 1qtyWi-00977b-Ic for pgsql-hackers@lists.postgresql.org; Fri, 20 Oct 2023 23:03:33 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qtyWg-001V7o-Gf for pgsql-hackers@lists.postgresql.org; Fri, 20 Oct 2023 23:03:32 +0000 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-51e28cac164so5087007a12.1 for ; Fri, 20 Oct 2023 16:03:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697843008; x=1698447808; darn=lists.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=AR6kKn+D4ZdxWB/1krqSF94/Hfq8j9xHEu/mi48XEIM=; b=HiQ+XKCCjcYpkpxfj8kkaNZxBN3K+ONytN3cVI47mcicSD/qjwY2GCSdiXYUQfTjtM z+VwuJ3amqGe4rTg/2yycT9563DCrg93wijwJMIdmo1HS8Dwaty9a7kKZ7Z1QO6yTVW7 kg3u6R7UVDIWv0gvww46/9ZG/uYXfIsN7GFmIipbGxo+CvhgStFo8S2EDyWOB1dINquN CLywC4pCPCdoqM+ShfK423l6cR7xlWPYZFVC7vS+vUcI9/AV0ZaSGWbxCcFAshDS3+wa Km4iEJ0UgPwtHh9RiAeAiVDoQi/JYovpxGJU2GgXU4mFHfWMGGrFiT97udwDPbWqjtyW VS5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697843008; x=1698447808; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AR6kKn+D4ZdxWB/1krqSF94/Hfq8j9xHEu/mi48XEIM=; b=lOgz3qKDhSZ+jx802Zl7x1cDjboPqmzApHADEDyRRgv+4VrT5PUeMZJOhZAvD6vshp f0cnC/5x6z3n7xm7+41nrDi+Aq4ddzetXMg4i2bFaG88Otg/PdSU5M/WH6eFbyeQKuLu hdF2tUDzEY4LR/nhrX53C8JEBD5OC4k+kSXHVPWzmflaqnKtWXcJfrm37wbjpPSWkNGV FCRPDi5w1SmhDXUVZBLTQZaIqsnHiEXpkF7veanD7NI/H+g+9orHbqeabudlD66w20mI UuhaemAaxTfJLfR77X94Eq4s+dJ40H9r5cn+5HKd1jWPs3INMu0oGGfgkuALPAMQV+XB XzRQ== X-Gm-Message-State: AOJu0YwKaFgDSXcAvSuQRfCBW5fO+rxb4QJG+seKh8PAh/MOQIneI+Ok J4NpB8Nr4sHaE/W1CMoBNL7XxADm4ZiLf62/rAI= X-Google-Smtp-Source: AGHT+IFU5OtDE7KK4+YMwvqH/Ua1Gfij6NimUJD+9Na2GwXlom3OROug3ksiHclQXxLEpfffSP3vGncGIK1rUyNJwJA= X-Received: by 2002:a05:6402:294:b0:52b:db44:79e3 with SMTP id l20-20020a056402029400b0052bdb4479e3mr6380500edv.4.1697843008312; Fri, 20 Oct 2023 16:03:28 -0700 (PDT) MIME-Version: 1.0 References: <5716086.DvuYhMxLoT@aivenlaptop> <2700884.mvXUDI8C0e@aivenlaptop> <20231020221213.zlgwsh7wtwyz33ag@awork3.anarazel.de> In-Reply-To: <20231020221213.zlgwsh7wtwyz33ag@awork3.anarazel.de> From: Thomas Munro Date: Sat, 21 Oct 2023 12:02:51 +1300 Message-ID: Subject: Re: LLVM 16 (opaque pointers) To: Andres Freund Cc: Ronan Dunklau , =?UTF-8?B?RGV2cmltIEfDvG5kw7x6?= , PostgreSQL Hackers , Fabien COELHO , Dmitry Dolgov <9erthalion6@gmail.com> 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 Sat, Oct 21, 2023 at 11:12=E2=80=AFAM Andres Freund = wrote: > On 2023-10-21 10:48:47 +1300, Thomas Munro wrote: > > On Thu, Oct 19, 2023 at 6:20=E2=80=AFAM Thomas Munro wrote: > > I see that Mark has also just enabled --with-llvm on some POWER Linux > > animals, and they have failed in various ways. The failures are > > strangely lacking in detail. It seems we didn't have coverage before, > > and I recall that there were definitely versions of LLVM that *didn't* > > work for our usage in the past, which I'll need to dredge out of the > > archives. I will try to get onto a cfarm POWER machine and see if I > > can reproduce that, before and after these commits, and whose bug is > > it etc. > > I'm quite sure that jiting did pass on ppc64 at some point. Yeah, I remember debugging it on EDB's POWER machine. First off, we know that LLVM < 7 doesn't work for us on POWER, because: https://www.postgresql.org/message-id/CAEepm%3D39F_B3Ou8S3OrUw%2BhJEUP3p%3D= wCu0ug-TTW67qKN53g3w%40mail.gmail.com That was fixed: https://github.com/llvm/llvm-project/commit/a95b0df5eddbe7fa1e9f8fe0b1ff624= 27e1c0318 So I think that means that we'd first have to go through those animals and figure out which ones have older LLVM, and ignore those results -- they just can't use --with-llvm. Unfortunately there doesn't seem to be any clue on the version from the paths used by OpenSUSE. Mark, do you know? > > I doubt I can get anywhere near an s390x though, and we definitely had > > pre-existing problems on that arch. > > IMO an LLVM bug, rather than a postgres bug, but I guess it's all a matte= r of > perspective. > https://github.com/llvm/llvm-project/issues/53009#issuecomment-1042748553 Ah, good to know about that. But there are also reports of crashes in released versions that manage to get passed that ABI-wobble business: https://www.postgresql.org/message-id/flat/CAF1DzPXjpPxnsgySz2Zjm8d2dx7%3DJ= 070C%2BMQBFh%2B9NBNcBKCAg%40mail.gmail.com