Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nfvwE-0007eE-AQ for pgsql-committers@arkaria.postgresql.org; Sun, 17 Apr 2022 03:51:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nfvwC-0001pO-IC for pgsql-committers@arkaria.postgresql.org; Sun, 17 Apr 2022 03:51:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nfvwC-0001pF-B0 for pgsql-committers@lists.postgresql.org; Sun, 17 Apr 2022 03:51:00 +0000 Received: from mail-il1-x12f.google.com ([2607:f8b0:4864:20::12f]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nfvw9-0003rL-3S for pgsql-committers@lists.postgresql.org; Sun, 17 Apr 2022 03:50:59 +0000 Received: by mail-il1-x12f.google.com with SMTP id x9so6850605ilc.3 for ; Sat, 16 Apr 2022 20:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=raCqTGT3sSkK9rXeJb9JKarQ2zi035ciS/zmv0LbFIU=; b=SiukF4PeyXdfiNKzxT73kP2BDzatgRRKgiTuFPcjMMckuvjExDFmkpbIzGgCCmgeEY Dp02xsdenoBcljqUQ3Z6d8Qw3rdEYNwRkPxLlRW7HXat+E8hTHq0/B0LKPEzbhUAFN4J +b1leuI79VuX2VUcnn5O9Cim75JUUHvpESAgBupD+ZmrX+rpAyM3up++GU0uOhlzmOLO gOOiY3Fmca/qyfT2lbQbUYssFtn20Zvge6PGhU5PVfq/wZf+y5ooxwDZp+UCqywHXh4O ieOvbVSCBeboE56qQFQRs4sDXYudnoyzOiP1qWLJjGgTfl7mPbT2L2sy/p+dt6l3fe4t seEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=raCqTGT3sSkK9rXeJb9JKarQ2zi035ciS/zmv0LbFIU=; b=fC96qfzy61rASoWkJ9ZvEQANG2rTxhHiHnu0kYVQ2Z0+GuIXGqP6FvxSXR9ei9jVPD WnpiQAObpu3jPHj3CeMLew96tIEuaH1Y7sPLp4s5YpPGLMQvlu/WFry46xoEn7oHt8Dy OgHUMi9P/xLQcPTWMnrtB9DjHfJxVLAKJF7y8LRh3BpiR0rcKGhY7NN3pcrP/JOiqLeT 9D8FUKqgxUsRbVhSwljf3ggSDYP6y0h/tAdZE1O65bQkUZ0cqA09uCAUS6WIXL1LfeE2 dwtFWq3FiWxtHTkUQ7SLnF9EvVQ173hApLcALVBURBpWmtOZ3iomn7RsZSXVrLzFrVcE W13A== X-Gm-Message-State: AOAM531fwZvvyTyqQhCfvX/7I9oHUcf1mOVn9fFhVlHRNNbwEN+leyWq HxFUqRi7y2qDPr876eCW2ApEPXy1Ho1dC+yINps= X-Google-Smtp-Source: ABdhPJzkC6oujyVV0azULFSdTv7tmWFabF1nF9vcMmNhAFEaad2vN6+yJPb2sHmjotn+2k6ME/xl21focKPARAyF1t8= X-Received: by 2002:a05:6e02:ece:b0:2ca:1b6b:6180 with SMTP id i14-20020a056e020ece00b002ca1b6b6180mr2274178ilk.316.1650167455405; Sat, 16 Apr 2022 20:50:55 -0700 (PDT) MIME-Version: 1.0 References: <202202142122.eqz4mu2ecfes@alvherre.pgsql> <3155481.1644950069@sss.pgh.pa.us> In-Reply-To: From: Thomas Munro Date: Sun, 17 Apr 2022 15:50:19 +1200 Message-ID: Subject: Re: pgsql: Track LLVM 15 changes. To: Tom Lane Cc: Alvaro Herrera , Fabien COELHO , Thomas Munro , pgsql-committers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Feb 16, 2022 at 9:18 AM Thomas Munro wrote: > On Wed, Feb 16, 2022 at 7:34 AM Tom Lane wrote: > > Although seawasp isn't actually failing at the moment, it's emitting > > a boatload of deprecation warnings, eg > > > > In file included from llvmjit_deform.c:27: > > ../../../../src/include/jit/llvmjit_emit.h:112:23: warning: 'LLVMBuildStructGEP' is deprecated: Use LLVMBuildStructGEP2 instead to support opaque pointers [-Wdeprecated-declarations] > > LLVMValueRef v_ptr = LLVMBuildStructGEP(b, v, idx, ""); > > ^ > > /home/fabien/clgtk/include/llvm-c/Core.h:3908:1: note: 'LLVMBuildStructGEP' has been explicitly marked deprecated here > > LLVM_ATTRIBUTE_C_DEPRECATED( > > ^ > > > > Is that on anyone's radar to clean up? > > Yeah I mentioned this problem in the other thread. I got as far as > finding this write-up: > > https://llvm.org/docs/OpaquePointers.html > > I haven't yet tried to work out what we really need to do, but I'm > planning to try. Possibly requires a bit more book keeping on our > part, since eg LLVMGetElementType() is going away. And now seaswap fails with an assertion about that. I'll try to have a look this week. Just to be clear, this is an LLVM 15-to-be problem so we have some time. #3 0x00007f5eea78e006 in __GI___assert_fail (assertion=0x7f5edce1d730 "NumContainedTys && \\"Attempting to get element type of opaque pointer\\"", file=0x7f5edce1d668 "/home/fabien/llvm-src/llvm/include/llvm/IR/Type.h", line=380, function=0x7f5edce1d6d0 "llvm::Type* llvm::Type::getNonOpaquePointerElementType() const") at assert.c:101 #4 0x00007f5edca8deae in llvm::Type::getNonOpaquePointerElementType (this=0x561441f6eb40) at /home/fabien/llvm-src/llvm/include/llvm/IR/Type.h:380 #5 0x00007f5edcb6e54f in LLVMGetElementType (WrappedTy=0x561441f6eb40) at /home/fabien/llvm-src/llvm/lib/IR/Core.cpp:801 #6 0x00007f5edf85ffe0 in llvm_pg_var_type () from /home/fabien/pg/build-farm-14/buildroot/HEAD/pgsql.build/tmp_install/home/fabien/pg/build-farm-14/buildroot/HEAD/inst/lib/postgresql/llvmjit.so #7 0x00007f5edf85f102 in llvm_create_context () from /home/fabien/pg/build-farm-14/buildroot/HEAD/pgsql.build/tmp_install/home/fabien/pg/build-farm-14/buildroot/HEAD/inst/lib/postgresql/llvmjit.so #8 0x00007f5edf86a3c9 in llvm_compile_expr () from /home/fabien/pg/build-farm-14/buildroot/HEAD/pgsql.build/tmp_install/home/fabien/pg/build-farm-14/buildroot/HEAD/inst/lib/postgresql/llvmjit.so #9 0x00005614404c24d4 in ExecBuildProjectionInfo () #10 0x00005614404deb92 in ExecAssignProjectionInfo () #11 0x0000561440505724 in ExecInitNestLoop () #12 0x00005614404d7851 in ExecInitNode () #13 0x0000561440508064 in ExecInitSort () #14 0x00005614404d78ab in ExecInitNode () #15 0x00005614404cfe92 in standard_ExecutorStart () #16 0x0000561440687846 in PortalStart () #17 0x0000561440686cbc in exec_simple_query () #18 0x000056144068491d in PostgresMain () #19 0x00005614405e24bb in BackendRun () #20 0x00005614405e1d1a in ServerLoop () #21 0x00005614405df217 in PostmasterMain () #22 0x000056144052dc0c in main ()