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 1v8wFw-007ToZ-V9 for pgsql-committers@arkaria.postgresql.org; Wed, 15 Oct 2025 07:49:08 +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 1v8wFu-004yFm-NN for pgsql-committers@arkaria.postgresql.org; Wed, 15 Oct 2025 07:49:05 +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 1v8wFu-004yFe-Au for pgsql-committers@lists.postgresql.org; Wed, 15 Oct 2025 07:49:05 +0000 Received: from mail.postgrespro.ru ([93.174.132.70]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1v8wFq-001rFR-0X for pgsql-committers@lists.postgresql.org; Wed, 15 Oct 2025 07:49:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mx2023; t=1760514538; bh=UdX4uX3bjK9PloQQO1Mjna+YQVLNdRfy69abMqsDeEs=; h=Message-ID:Date:User-Agent:Subject:To:Cc:References:From: In-Reply-To:From; b=6IuOXS4GoqQ1SRHyV+jyLhDG5TKyeDFDkECmbm5z2bbDltC2YrXiepZxGVzmP5hGw 3X3CNyrXmRPnwwS0jUnSJLZmvHvIE1rB62GucyQyL8gnltdZDoLGW8h3Ksqb4sRkz4 FYvv1l3s/yJdvoDt7zU94PKUtTnBTrUAvAzW2t7CPgwOiJayM+b7FMS8RMtedaOJAs 9OY+pMW3sQkVRnPqf6ysplyXN/NF2jTgLe0msviRksLZib1XrihgrEmQhpcIec8XVj 3lrw3csWQHQcsfCxiRwiHueD/ZqW0Qqj1m7+jOqcUIy4ksiYCmna/v1kNB6u2hCWx/ JhbrmhWckC3yw== Received: from [172.30.51.94] (debian11-template.l.postgrespro.ru [192.168.2.254]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: a.melnikov@postgrespro.ru) by mail.postgrespro.ru (Postfix/587) with ESMTPSA id 7F8F96004D; Wed, 15 Oct 2025 10:48:58 +0300 (MSK) Message-ID: Date: Wed, 15 Oct 2025 10:48:58 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pgsql: Move gramparse.h to src/backend/parser To: John Naylor , Andres Freund Cc: Tom Lane , John Naylor , pgsql-committers@lists.postgresql.org References: <2862807.1663184226@sss.pgh.pa.us> <20220914205715.xbmuqox5htobzggy@awork3.anarazel.de> <20220914210427.y26tkagmxo5wwbvp@awork3.anarazel.de> Content-Language: en-US From: "Anton A. Melnikov" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-KSMG-AntiPhishing: NotDetected, bases: 2025/10/15 07:33:00 X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.1.0.7854, bases: 2025/10/15 04:43:00 #27914696 X-KSMG-AntiVirus-Status: NotDetected, skipped X-KSMG-LinksScanning: not scanned, disabled by settings X-KSMG-Message-Action: skipped X-KSMG-Rule-ID: 1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi! On 15.09.2022 06:52, John Naylor wrote: > On Thu, Sep 15, 2022 at 4:04 AM Andres Freund wrote: >> >> The most general solution I can see would be >> >> diff --git i/src/backend/common.mk w/src/backend/common.mk >> index fa96a82b1a0..61861f5c7eb 100644 >> --- i/src/backend/common.mk >> +++ w/src/backend/common.mk >> @@ -23,6 +23,7 @@ objfiles.txt: Makefile $(SUBDIROBJS) $(OBJS) >> >> ifeq ($(with_llvm), yes) >> objfiles.txt: $(patsubst %.o,%.bc, $(OBJS)) >> +$(patsubst %.o,%.bc, $(OBJS)): $(OBJS) >> endif > > Since there have been no other ideas in the past few hours, I will > push this but it will be a blind attempt since it seems sporadic and > doesn't happen to reproduce for me. > My colleague Marina Polyakova found the similar bug on buildfarm [1] for REL_15_STABLE in the llvm build: -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o segparse.bc segparse.c segparse.y:177:10: fatal error: 'segscan.c' file not found 177 | #include "segscan.c" | ^~~~~~~~~~~ 1 error generated Maybe backpatch [2] to all supported versions not just 16+? With the best regards, -- Anton A. Melnikov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company [1] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=alligator&dt=2025-06-02%2019:07:06 [2] https://github.com/postgres/postgres/commit/16492df70bb25bc99ca3c340a75ba84ca64171b8