From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.archlinux.org (mail.archlinux.org [95.216.189.61]) by sourceware.org (Postfix) with ESMTPS id 4E8A43858D20 for ; Sat, 5 Feb 2022 02:26:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4E8A43858D20 Message-ID: Date: Sat, 5 Feb 2022 12:26:09 +1000 MIME-Version: 1.0 Subject: Re: [PATCH] configure: add --disable-fix-includes Content-Language: en-US To: =?UTF-8?Q?Martin_Li=c5=a1ka?= , Jakub Jelinek , Richard Biener Cc: GCC Patches References: <417eca08-e1ad-538e-c39a-388e20e2fcca@suse.cz> <20220204133018.GD2646553@tucnak> <5e873856-28d1-817a-3a70-221c1e546fda@suse.cz> From: Allan McRae In-Reply-To: <5e873856-28d1-817a-3a70-221c1e546fda@suse.cz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, BODY_8BITS, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Feb 2022 02:26:18 -0000 On 5/2/22 01:22, Martin Liška wrote: > On 2/4/22 14:30, Jakub Jelinek via Gcc-patches wrote: >> We don't ship any include-fixed headers in Fedora/RHEL. > > Removing include-fixed from an installed folder, I see: > > make[2]: Entering directory '/home/marxin/Programming/postgres/src/common' > gcc -Wall -Wmissing-prototypes -Wpointer-arith > -Wdeclaration-after-statement -Werror=vla -Wendif-labels > -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type > -Wformat-security -fno-strict-aliasing -fwrapv > -fexcess-precision=standard -Wno-format-truncation > -Wno-stringop-truncation -O3 -march=native -flto=auto -DFRONTEND -I. > -I../../src/common -I../../src/include  -D_GNU_SOURCE > -DVAL_CC="\"gcc\"" -DVAL_CPPFLAGS="\"-D_GNU_SOURCE\"" > -DVAL_CFLAGS="\"-Wall -Wmissing-prototypes -Wpointer-arith > -Wdeclaration-after-statement -Werror=vla -Wendif-labels > -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type > -Wformat-security -fno-strict-aliasing -fwrapv > -fexcess-precision=standard -Wno-format-truncation > -Wno-stringop-truncation -O3 -march=native -flto=auto\"" > -DVAL_CFLAGS_SL="\"-fPIC\"" -DVAL_LDFLAGS="\"-O3 -march=native > -flto=auto -Wl,--as-needed > -Wl,-rpath,'/usr/local/pgsql/lib64',--enable-new-dtags\"" > -DVAL_LDFLAGS_EX="\"\"" -DVAL_LDFLAGS_SL="\"\"" -DVAL_LIBS="\"-lpgcommon > -lpgport -lz -lreadline -lm \""  -c -o pg_lzcompress.o pg_lzcompress.c > In file included from pg_lzcompress.c:186: > /usr/include/limits.h:124:26: error: no include path in which to search > for limits.h >   124 | # include_next >       |                          ^ > pg_lzcompress.c:226:9: error: ‘INT_MAX’ undeclared here (not in a function) >   226 |         INT_MAX,                                        /* No > upper limit on what we'll try to >       |         ^~~~~~~ > pg_lzcompress.c:189:1: note: ‘INT_MAX’ is defined in header > ‘’; did you forget to ‘#include ’? >   188 | #include "common/pg_lzcompress.h" >   +++ |+#include > > How do you solve this in Fedora/RHEL? The Fedora gcc.spec file has this: mv $FULLPATH/include-fixed/syslimits.h $FULLPATH/include/syslimits.h mv $FULLPATH/include-fixed/limits.h $FULLPATH/include/limits.h My understanding are these are not real fixinclude processed headers. Allan