Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g74lh-0004fg-N5 for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Oct 2018 20:26:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g74lc-0007QW-Kl for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Oct 2018 20:26:08 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g74la-0007QJ-Jb for pgsql-bugs@lists.postgresql.org; Mon, 01 Oct 2018 20:26:08 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g74lN-0004w3-Vw for pgsql-bugs@lists.postgresql.org; Mon, 01 Oct 2018 20:26:01 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 982DA21FF1; Mon, 1 Oct 2018 16:25:51 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 01 Oct 2018 16:25:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=3hLALZ8OYhWgsYImCrO3eIZy/UxWCa+CnyKHrNyb6ls=; b=JtQv4pGv vHhjJp6UMRM6Tx8hFAd9V8Tfg84XvW2/prH96fpwJ4cfRD6PWV0ItBIEi2N/fWCC Qu8KaCprkjEGtXCOyR4rttsW+NUv9CTb7//AZJn3a8mpEy0v4oNtz175TZCWcC5L apgtvfDNniXKlWA0WZ/Hvi+FFDd4FdbEF6PlLwga7c9Yunefw5wV3aDw30dLGQnx 3wXx4SmmdnMY4pwyM//NvewTFFD1t3ZxSrmp7XTpCgveJv5i+qT/aRYMDG8FHBOU U0kgXw1FJjnGrSHHN3xInaph4OAY7Io5z47HZk/w9cAOUsEIWbiHUUBxGlcxGoW5 cZuhoxkr4YXdTw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=3hLALZ8OYhWgsYImCrO3eIZy/UxWC a+CnyKHrNyb6ls=; b=TT0+KiX3NgROsN6sEnhPQOuu82lM34suYMHzVFRqyOsL2 rT3Khj6uuqNvbSPl90FwJ2rFsBM/hvqoBZvAYwwLuAIzBpZmSr/0l/RMkiG2tKf0 NyGYoNPFRmgjZV+McztVhyAwfWobiQ+sLsUBvuk8IDOXi1yC81WzXpor13C15jEf mV6vu91plWAqc8lIO7qET7HupkKP6O+2jByj0QFaOzs3q91uy7mh7DRoZJrU7nU/ 44dKa/9z7y+DR9mfws2TrbCBxX4qywBlIib4LYfJe4sTg9WoX0ZFxF7mLFY2pdC5 Z7IhZ/6HBXgQ5Y7GSFjVa88Nl4NO+oNMtMGkJm/NQ== X-ME-Sender: X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id C1067E474F; Mon, 1 Oct 2018 16:25:50 -0400 (EDT) Date: Mon, 1 Oct 2018 13:25:48 -0700 From: Andres Freund To: code@legitimatesounding.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15414: extension compilation fails when c++ files are named with .cc Message-ID: <20181001202548.tt6xc2aqu3phakly@alap3.anarazel.de> References: <15414-df6868d261e60784@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15414-df6868d261e60784@postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-10-01 19:46:03 +0000, PG Bug reporting form wrote: > The following bug has been logged on the website: > > Bug reference: 15414 > Logged by: Jerry Sievert > Email address: code@legitimatesounding.com > PostgreSQL version: 11beta4 > Operating system: any > Description: > > when --with-llvm is configured, compiling c++ extensions that use .cc and > not .cpp fail with no rule to create .bc files. We currently have two rules to compile .bc files from source code: src/Makefile.global.in %.bc : %.c $(COMPILE.c.bc) -o $@ $< %.bc : %.cpp $(COMPILE.cxx.bc) -o $@ $< I'm a bit worried that supporting extensions that PG itself doesn't use - and thus necessarily built by a buildsystem that's not just PGXS - will be a, let's say iterative, process. Before v11 there wasn't a C++ integration PGXS wise, so extensions really can't be faulted for developing their own PGXS extensions. I guess we have two choices: 1) Add rules for ".cpp", ".cc", ".C", ".cxx", and ".c++" and whatever else we can think of. Add additional variants whenever somebody presents one (and backpatch it). 2) Insist that pg extensions follow PGXS rules, which atm are to use .cpp for c++ source files. I don't really have an opinion here. Greetings, Andres Freund