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 1qI9hB-0007aZ-EI for pgsql-novice@arkaria.postgresql.org; Sat, 08 Jul 2023 15:18:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qI9h9-0004Pz-Ou for pgsql-novice@arkaria.postgresql.org; Sat, 08 Jul 2023 15:17:59 +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 1qI9h9-0004Pq-Cm for pgsql-novice@lists.postgresql.org; Sat, 08 Jul 2023 15:17:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qI9h6-002j7j-Tx for pgsql-novice@lists.postgresql.org; Sat, 08 Jul 2023 15:17:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 368FHtEB1632759; Sat, 8 Jul 2023 11:17:55 -0400 From: Tom Lane To: =?iso-8859-1?Q?J=FCrgen_Zornig?= cc: "pgsql-novice@lists.postgresql.org" Subject: Re: Encountering missing sourcefiles when building postgres on windows In-reply-to: References: Comments: In-reply-to =?iso-8859-1?Q?J=FCrgen_Zornig?= message dated "Fri, 07 Jul 2023 14:18:50 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1632757.1688829475.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 08 Jul 2023 11:17:55 -0400 Message-ID: <1632758.1688829475@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =3D?iso-8859-1?Q?J=3DFCrgen_Zornig?=3D writes: > I'm trying to build postgres on Windows 11 Enterprise / Visual Studio 20= 22 Professional, so I basically followed the instructions, installed the d= evenvironment (flex, bison, perl, ...), got the sources from git (I've tri= ed master and REL_15_2 branches) and ran /src/tools/msvc/build > The buildprocess itself seems to work, but I am encountering quite a lot= of missing sourcefiles (and also headers) as the errors tell me: The files you seem to be missing are precisely those that are generated by flex or bison (if you build from a git pull instead of a tarball). So it'd appear that either you misinstalled those tools, or something is going wrong when the build script calls them (maybe they are not in your PATH?). I'd advise looking further up in the build log to get a clue of what's going wrong. regards, tom lane