threads / discuss / 66968

2.98.0-rc0 Does not Build on NonStop x86

Subject: 2.98.0-rc0 Does not Build on NonStop x86

## tl;dr

A portability report against the first release candidate shows the build failing right away on HPE NonStop, with a possible link to the new precompiled-header support. Read the story.

replies: 3people: 3as markdown or json

rsbecker@nexbridge.com· Dec 1, 2026, 14:31 UTC · lore

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

Help requested.
Randall

-- Brief whoami: NonStop&UNIX developer since approximately UNIX(421664400) NonStop(211288444200000000) -- In real life, I talk too much.

Todd Zullinger· Dec 1, 2026, 23:05 UTC · re: rsbecker@nexbridge.com · lore

Re: 2.98.0-rc0 Does not Build on NonStop x86

rsbecker@nexbridge.com wrote:
Show 38 quoted lines
> 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).

Alternately, you could define NO_PRECOMPILED_HEADER to skip this optimization.

-- 
Todd
SZEDER Gábor· Dec 2, 2026, 07:13 UTC · re: Todd Zullinger · lore

Re: 2.98.0-rc0 Does not Build on NonStop x86

On Tue, Dec 01, 2026 at 06:05:24PM -0500, Todd Zullinger wrote:
Show 58 quoted lines
> 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.
rsbecker@nexbridge.com· Dec 2, 2026, 17:05 UTC · re: Todd Zullinger · lore

RE: 2.98.0-rc0 Does not Build on NonStop x86

Show 12 quoted lines
>-----Original Message-----
>From: Todd Zullinger <tmz@pobox.com>
>Sent: December 1, 2026 6:05 PM
>To: rsbecker@nexbridge.com
>Cc: git@vger.kernel.org; SZEDER Gábor <szeder.dev@gmail.com>
>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
<snip>
Show 16 quoted lines
>> 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

← back to recent threads