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 1maRbY-0005NC-Bz for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Oct 2021 23:54:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1maRbW-0002lR-Au for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Oct 2021 23:54:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1maRbV-0002lJ-89 for pgsql-hackers@lists.postgresql.org; Tue, 12 Oct 2021 23:54:42 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1maRbS-00029G-Nq for pgsql-hackers@postgresql.org; Tue, 12 Oct 2021 23:54:40 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id D65B65C0199; Tue, 12 Oct 2021 19:54:36 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 12 Oct 2021 19:54:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=fm2; bh=d dob0q/mjZO/Aftmirur6nZFZSrQ+K/aZs6LwedOtCA=; b=oWU0qLoowZ1cMan8R fkd51XAMg6qYtkLvoCmKKS5wnCvamW8wovcscP/BL+AaopsHdDAIA8NtbuiTa2aw unkG759jB3Vid0jl/IytAtKHmKJ/RygWQbtUepFDDdPpANxteTAq46pjKGj5nvQo T+1TTRKT2aVyVS+CPlQ3S4z6gjJrCBw8U61zhMNor/9+KGDH2yl6o1L2iZq4jFZw +MeeareNqhC2Lo9kRO4xTH36w80/Rty/J151lVY+iEBAA/DCSPfYw6EogLcZ5WUa +MohvpbBjJb3rMmGigFWYJLl8VIIDRd/6hUXb9rE1WwzE7H5rqAZCNOMqTMM5t2R D4KaQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=ddob0q/mjZO/Aftmirur6nZFZSrQ+K/aZs6LwedOt CA=; b=jhNGqRZxooXGxtkOcw7+AcGfNXluPPS8WFBe2MMes/xgWcnMEn+gbgL4T TKEfjxVFOeUIIoa+0CFgjEmHUgirTHFB86ANOHfHjcWxnY6ArHX2/juDQFhuxyzV H8kqYtzN/V/xfNXAiE2KqlY0DkAppzQ6/FSTsC2ufVvJx6BCBgxX6S/w1SiLL0od mheCyc1u0SvmX1FbfGBxo7zRxPlWWvih0DyUSQMG/SA5OgTEJ2gSpw8mkzNh9fYR EkwB+TY8r/yxnywKlR66I8kTXZ/DOvnA7OKHw1Z5R15hZFfbxbOcNsTzbS1Qs6HV Tz/umJlLc97NE4SFl9GQjFUHXczZg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddtledgvdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtugfgjgesthekredttddtjeenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhepieduueejhfeufeffffffkeeitdfhleeuffeulefhkeehueejffefgffh ffffteffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 12 Oct 2021 19:54:36 -0400 (EDT) Date: Tue, 12 Oct 2021 16:54:35 -0700 From: Andres Freund To: Josef =?utf-8?B?xaBpbcOhbmVr?= Cc: Pg Hackers Subject: Re: [RFC] building postgres with meson Message-ID: <20211012235435.ozcmsvosdziala7f@alap3.anarazel.de> References: <20211012083721.hvixq4pnh2pixr3j@alap3.anarazel.de> <20211012171734.v6njkirzk5e7a6yt@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2021-10-13 01:19:27 +0200, Josef Šimánek wrote: > I tried to clean and start from scratch, but I'm getting different > error probably related to wrongly configured JIT (LLVM wasn't found > during meson setup). I'll debug on my side to provide more info. ../src/backend/jit/jit.c:91:73: error: ‘DLSUFFIX’ undeclared (first use in this function) 91 | snprintf(path, MAXPGPATH, "%s/%s%s", pkglib_path, jit_provider, DLSUFFIX); | ^~~~~~~~ This *very* likely is related to building in a source tree that also contains a "non-meson" build "in place". The problem is that the meson build picks up the pg_config.h generated by ./configure in the "normal" build, rather than the one meson generated itself. You'd need to execute make distclean or such, or use a separate git checkout. I forgot about this issue because I only ever build postgres from outside the source-tree (by invoking configure from a separate directory), so there's never build products in it. I think at least I need to make the build emit a warning / error if there's a pg_config.h in the source tree... This is the part of the jit code that's built regardless of llvm availability - you'd get the same error in a few other places unrelated to jit. Greetings, Andres Freund