From: rsbecker@nexbridge.com Date: Wed, 02 Dec 2026 17:05:58 GMT Subject: RE: 2.98.0-rc0 Does not Build on NonStop x86 Message-ID: <061201dd827f$69f934a0$3deb9de0$@nexbridge.com> In-Reply-To: <20261201230524.W1hmljSP@teonanacatl.net> >-----Original Message----- >From: Todd Zullinger >Sent: December 1, 2026 6:05 PM >To: rsbecker@nexbridge.com >Cc: git@vger.kernel.org; SZEDER Gábor >Subject: Re: 2.98.0-rc0 Does not Build on NonStop x86 > >rsbecker@nexbridge.com wrote: >> The built for 2.98.0-rc0 fails immediately on NonStop. This appears to >> be a portability issue. >> >> cc -c99 -o tools/precompiled.h.gch -c     -g -O2 >> tools/precompiled.h >> c99: error: Invalid input file extension"tools/precompiled.h". >> Makefile:2947: recipe for target 'tools/precompiled.h.gch' failed > >This seems like it may be the potential issue mentioned in 8d3a673147 >(Makefile: precompile "git-compat-util.h", 2026-09-15): > > Use the ".gch" suffix for the precompiled header file, because > that's the only suffix GCC looks for when searching for a > precompiled header. Clang apparently looks for both ".pch" and > ".gch" suffixes. If we ever encounter a compiler which only > supports a different precompiled header suffix, then we might make > the suffix configurable via a Makefile knob; but until then it > remains hard-coded for the sake of simplicity. > >I don't know anything about this, but some light checks in the git logs for 2.98.0 >pointed there and it looks like a good place to start. :) > >You might be able to confirm this by changing the suffix from .gch to .pch (or >something else if your compiler has a different preference). > >Alternately, you could define NO_PRECOMPILED_HEADER to skip this optimization. Because we have no precompiled header support or gcc, using NO_PRECOMPILED_HEADER=Nope works fine. Thank you! Randall