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.96) (envelope-from ) id 1vlSQR-00CVec-2O for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Jan 2026 13:51:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vlSQQ-009HJY-2p for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Jan 2026 13:51:11 +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.96) (envelope-from ) id 1vlSQQ-009HJH-0Y for pgsql-hackers@lists.postgresql.org; Thu, 29 Jan 2026 13:51:10 +0000 Received: from fhigh-a7-smtp.messagingengine.com ([103.168.172.158]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vlSQN-002vRG-1M for pgsql-hackers@lists.postgresql.org; Thu, 29 Jan 2026 13:51:09 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id 11ACF1400126; Thu, 29 Jan 2026 08:51:07 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Thu, 29 Jan 2026 08:51:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm1; t=1769694667; x= 1769781067; bh=m7Frjg9DsG7vqrG7Bu1NmKDv7XRRRLKBR80Duz8yY+c=; b=f 5LaXVfu2uF80P+dnkmbvQK4/akLwW0uYpQ9W8s9A8L5Sw6Lfew8F1F0+pSgbq/gN qLJseP+moNiiyn29hHZelmKa2dwXYAtlIzQUjsU0zZIbcHwBIOjUQ7xkm9SCU399 e16Eaf834n6Ha5Ad97lKdHGdoPkDC3DFZHzbdujWj0MNoEhfedG9rHg/ZU/qHqce VJakQDuXbO9DKg2DVpLjb8tbiajidYno6A5kFABOgxIyViyN6MkBmTM1S/rU6p+D WgCWq/dAWjz8sXu/fbL90AjjeJRA/xbp+9zoQgaA4i0fgbFPmk0p5GsLGzhQ2Fif IaoulYzGvzmZ/TZSx0Udw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1769694667; x=1769781067; bh=m 7Frjg9DsG7vqrG7Bu1NmKDv7XRRRLKBR80Duz8yY+c=; b=Q3d7Tz5L0+VTweTlw rZRg8Jjn4cTMgO4Q6ACo8ZMTq2489w5gQS6PaSRa4n4ruzBbFLIS5rvHij5psgrh 64wFjzy6hDXLz0KaB033sno0xOxzMAnwT94tQmghLb+iTHwhN8EnVTBlK8KqYdtz E2Zas/M+uQb8+JL2D7fDmZfwuv+V4tOLti04PguC73o0rnkJ4N3LA26vYC3Hgr8l C2AArSIJtOAcWNri6dJrCFPOABTw7dTKAXYZcQce1pB2lTwBOWR1ldhLOx5CnpDj tEtz9VuFE9XFeBarOoBbW+p1wWQ1PssE90n2InU7TyDK0CxMEvErdYHP/0je5cVE auqlw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduieeifeeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheplmhlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtf frrghtthgvrhhnpedtvdekhefghfeuffeltdetgeeifffhteeiteeftddvffefhfeggeek heefgfejhfenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmpdhpohhsth hgrhdrvghsnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mheprghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvpdhnsggprhgtphhtthhopeelpd hmohguvgepshhmthhpohhuthdprhgtphhtthhopegrnhgurhgvshesrghnrghrrgiivghl rdguvgdprhgtphhtthhopehpvghtvghrsegvihhsvghnthhrrghuthdrohhrghdprhgtph htthhopehrohgsvghrthhmhhgrrghssehgmhgrihhlrdgtohhmpdhrtghpthhtoheprggu ihhthigrrdhkrghmrghthhdusehisghmrdgtohhmpdhrtghpthhtohephhhlihhnnhgrkh grsehikhhirdhfihdprhgtphhtthhopehsrhhirhgrmhdrrhhksehinhdrihgsmhdrtgho mhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhsthhgrh gvshhqlhdrohhrghdprhgtphhtthhopehtrhhishhtrghnsehprghrthhinhdrihhopdhr tghpthhtohepphhoshhtghhrvghsqdhisghmqdgrihigseiffihpughlrdhvnhgvthdrih gsmhdrtghomh X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 29 Jan 2026 08:51:05 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1769694663; bh=3rPUutno7icv6hbH0tBPZCQ1AawknpP7hvkGTl/LiKY=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=R6jP+DhGXnCJlRJHIrYDMARD8KPv2XhRS+3Uu69iQmr1Nr97tyBlSVb/MZ9VLP75l rzgSUPuaGjxUW6OUyfTfHNSJZe3dBc995KXEgZ5uTyD7IqpN+I05m8gJKYcyQMNEPl R8oKSU5yfLBBt6ZEG4GS69dNZuMWEDu7q8s6DOZ5UtF51tjuOQtH2shkaPs89I0UT0 AG8zwdInGpQfdmykI4nDeHFaGFno22hwlbUjoVFISWSnQKBolu+MuSlp+o/jA5tmLw aS1W/EkQZm4PqsQRl18hvGAUY5sgbGdbobipeLLLHbq2Es7q1qxcrQh0up9KzkpmAB H4fjk1u0SF76A== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id A72016A; Thu, 29 Jan 2026 14:51:03 +0100 (CET) Date: Thu, 29 Jan 2026 14:51:03 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Robert Haas Cc: Aditya Kamath , Srirama Kucherlapati , "peter@eisentraut.org" , "andres@anarazel.de" , "pgsql-hackers@lists.postgresql.org" , "hlinnaka@iki.fi" , "tristan@partin.io" , "postgres-ibm-aix@wwpdl.vnet.ibm.com" Subject: Re: AIX support Message-ID: <202601291302.q4q4rgx7co54@alvherre.pgsql> 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 On 2026-Jan-28, Robert Haas wrote: > [...] > which happens because wait_event_funcs.c contains: > > #include "wait_event_funcs_data.c" > > and for some reason, that file gets placed in src/include/utils. > > The attached patch, which also adjusts wait_events.c, fixes it for me. Hmm, I think this setup is bogus and that your patch is clearly an improvement. Unfortunately, it doesn't work under Make using a VPATH build; see below. > This is kind of a good example of how you are not pursuing your goals > here in the best way possible. I agree. It seems the files are being generated in the wrong place (src/backend/utils/activity). This is what I get: make -C utils/activity wait_event_types.h pgstat_wait_event.c wait_event_funcs_data.c '/usr/bin/perl' /pgsql/source/master/src/backend/utils/activity/generate-wait_event_types.pl --code /pgsql/source/master/src/backend/utils/activity/wait_event_names.txt make[2]: 'pgstat_wait_event.c' is up to date. make[2]: Nothing to be done for 'wait_event_funcs_data.c'. prereqdir=`cd 'utils/activity/' >/dev/null && pwd` && \ cd '../../src/include/utils/' && rm -f wait_event_types.h && \ ln -s "$prereqdir/wait_event_types.h" . [... much later ...] gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -Wmissing-variable-declarations -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O2 -I. -I/pgsql/source/master/src/backend/utils/activity -I../../../../src/include -I/pgsql/source/master/src/include -D_GNU_SOURCE -c -o wait_event.o /pgsql/source/master/src/backend/utils/activity/wait_event.c -MMD -MP -MF .deps/wait_event.Po /pgsql/source/master/src/backend/utils/activity/wait_event.c:506:10: fatal error: utils/pgstat_wait_event.c: No such file or directory 506 | #include "utils/pgstat_wait_event.c" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[4]: *** [../../../../src/Makefile.global:972: wait_event.o] Error 1 make[3]: *** [/pgsql/source/master/src/backend/common.mk:37: activity-recursive] Error 2 make[2]: *** [/pgsql/source/master/src/backend/common.mk:37: utils-recursive] Error 2 Now I have these files: $ find . -name \*wait_event\*.[ch] ./src/backend/utils/activity/wait_event_types.h ./src/backend/utils/activity/pgstat_wait_event.c ./src/backend/utils/activity/wait_event_funcs_data.c ./src/include/utils/wait_event_types.h Not sure what a good fix for this is. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "I am amazed at [the pgsql-sql] mailing list for the wonderful support, and lack of hesitasion in answering a lost soul's question, I just wished the rest of the mailing list could be like this." (Fotis) https://postgr.es/m/200606261359.k5QDxE2p004593@auth-smtp.hol.gr