From: SZEDER Gábor Date: Wed, 02 Dec 2026 07:13:58 GMT Subject: Re: 2.98.0-rc0 Does not Build on NonStop x86 Message-ID: In-Reply-To: <20261201230524.W1hmljSP@teonanacatl.net> On Tue, Dec 01, 2026 at 06:05:24PM -0500, Todd Zullinger wrote: > rsbecker@nexbridge.com wrote: > > The built for 2.98.0-rc0 fails immediately on NonStop. This appears to be a > > portability issue. > > > > /usr/coreutils/bin/bash t/unit-tests/generate-clar-decls.sh > > "t/unit-tests/clar-decls.h" t/unit-tests/u-ctype.c t/unit-tests/u-dir.c > > t/unit-tests/u-example-decorate.c t/unit-tests/u-hash.c > > t/unit-tests/u-hashmap.c t/unit-tests/u-list-objects-filter-options.c > > t/unit-tests/u-mem-pool.c t/unit-tests/u-odb-inmemory.c > > t/unit-tests/u-oid-array.c t/unit-tests/u-oidmap.c t/unit-tests/u-oidtree.c > > t/unit-tests/u-prio-queue.c t/unit-tests/u-reftable-basics.c > > t/unit-tests/u-reftable-block.c t/unit-tests/u-reftable-merged.c > > t/unit-tests/u-reftable-pq.c t/unit-tests/u-reftable-readwrite.c > > t/unit-tests/u-reftable-stack.c t/unit-tests/u-reftable-table.c > > t/unit-tests/u-reftable-tree.c t/unit-tests/u-strbuf.c > > t/unit-tests/u-strcmp-offset.c t/unit-tests/u-string-list.c > > t/unit-tests/u-strvec.c t/unit-tests/u-trailer.c > > t/unit-tests/u-urlmatch-normalization.c t/unit-tests/u-utf8-width.c > > /usr/coreutils/bin/bash t/unit-tests/generate-clar-suites.sh > > t/unit-tests/clar-decls.h t/unit-tests/clar.suite > > > > cc -c99 -o tools/precompiled.h.gch -c     -g -O2 -D_LARGEFILE64_SOURCE=1 > > -D_FILE_OFFSET_BITS=64 -Winline -I/usr/local-ssl3.5/include > > -I/usr/coreutils/include -I/usr/tandem/xml/T0625L01_AAE/include  -I. > > -DGIT_HOST_CPU="\"NSV\"" -DCURL_STATICLIB -I/usr/local/include > > -DUSE_CURL_FOR_IMAP_SEND -DNO_D_TYPE_IN_DIRENT -DNO_ST_BLOCKS_IN_STRUCT_STAT > > -DNO_NSEC -DNO_GETTEXT -DNO_SYS_SELECT_H -DNO_POLL_H -DNO_SYS_POLL_H > > -DOLD_ICONV -DSHA1_DC -DSHA1DC_NO_STANDARD_INCLUDES > > -DSHA1DC_INIT_SAFE_HASH_DEFAULT=0 > > -DSHA1DC_CUSTOM_INCLUDE_SHA1_C="\"git-compat-util.h\"" > > -DSHA1DC_CUSTOM_INCLUDE_UBC_CHECK_C="\"git-compat-util.h\"" -DSHA256_BLK > > -DNO_PTHREADS -DHAVE_LIBCHARSET_H -DHAVE_STRINGS_H -DHAVE_DEV_TTY > > -DHAVE_OPENSSL_CSPRNG  -DSA_RESTART=0 -DHAVE_STRING_H=1 > > -DFREAD_READS_DIRECTORIES -DNO_POLL -Icompat/poll -DNO_STRCASESTR > > -DNO_STRLCPY -DNO_SETENV -DNO_MKDTEMP -DNO_UNSETENV -DNO_MMAP -DNO_PREAD > > -DNO_WRITEV -DNO_INTPTR_T -DNO_HSTRERROR -DNO_MEMMEM -Icompat/regex > > -DSHELL_PATH='"/usr/coreutils/bin/bash"' 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). But .gch/.pch is the extension of the output of that command, and the error message complains about the extension of the input file... So whatever compiler it is, it seems to complain about the .h suffix of our precompiled.h?! Weird. > Alternately, you could define NO_PRECOMPILED_HEADER to skip > this optimization. Yeah, I think that should work.