GNU bug report logs - #54759
Compile error on macOS w/ gcc

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: gzip; Reported by: Young Mo Kang <kym327@HIDDEN>; Keywords: moreinfo; dated Thu, 7 Apr 2022 01:00:02 UTC; Maintainer for gzip is bug-gzip@HIDDEN.
Added tag(s) moreinfo. Request was from Paul Eggert <eggert@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 54759 <at> debbugs.gnu.org:


Received: (at 54759) by debbugs.gnu.org; 7 Apr 2022 22:57:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 07 18:57:16 2022
Received: from localhost ([127.0.0.1]:33597 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ncb3z-0000WW-V0
	for submit <at> debbugs.gnu.org; Thu, 07 Apr 2022 18:57:16 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:49434)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1ncb3y-0000WH-TK
 for 54759 <at> debbugs.gnu.org; Thu, 07 Apr 2022 18:57:15 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2F98116006C;
 Thu,  7 Apr 2022 15:57:09 -0700 (PDT)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id UCRqe6qniLDL; Thu,  7 Apr 2022 15:57:08 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 9323B16008E;
 Thu,  7 Apr 2022 15:57:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id Xc_-rpO3UbNs; Thu,  7 Apr 2022 15:57:08 -0700 (PDT)
Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 704CA16006C;
 Thu,  7 Apr 2022 15:57:08 -0700 (PDT)
Message-ID: <1c4dfe26-5438-d8ee-5a59-8104df8f3753@HIDDEN>
Date: Thu, 7 Apr 2022 15:57:08 -0700
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
 Thunderbird/91.7.0
Subject: Re: bug#54759: Compile error on macOS w/ gcc
Content-Language: en-US
To: Young Mo Kang <kym327@HIDDEN>
References: <CB71C5A0-92B5-4E0D-8779-C24F3D236B4B@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
In-Reply-To: <CB71C5A0-92B5-4E0D-8779-C24F3D236B4B@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 54759
Cc: 54759 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Thanks for the bug report. Please try gzip 1.12, released today. It has 
bug fixes (inherited from Gnulib) in the area you reported, and should 
build on macOS with GCC. Thanks.




Information forwarded to bug-gzip@HIDDEN:
bug#54759; Package gzip. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Apr 2022 00:59:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 06 20:59:06 2022
Received: from localhost ([127.0.0.1]:59365 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ncGUL-0003Zj-2y
	for submit <at> debbugs.gnu.org; Wed, 06 Apr 2022 20:59:06 -0400
Received: from lists.gnu.org ([209.51.188.17]:36702)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <kym327@HIDDEN>) id 1ncGUJ-0003Zc-CE
 for submit <at> debbugs.gnu.org; Wed, 06 Apr 2022 20:59:04 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:39290)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <kym327@HIDDEN>) id 1ncGUI-0008AJ-W7
 for bug-gzip@HIDDEN; Wed, 06 Apr 2022 20:59:03 -0400
Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]:37528)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <kym327@HIDDEN>) id 1ncGUF-0001f5-VM
 for bug-gzip@HIDDEN; Wed, 06 Apr 2022 20:59:02 -0400
Received: by mail-pj1-x102d.google.com with SMTP id
 ku13-20020a17090b218d00b001ca8fcd3adeso7454010pjb.2
 for <bug-gzip@HIDDEN>; Wed, 06 Apr 2022 17:58:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=from:content-transfer-encoding:mime-version:subject:message-id:date
 :to; bh=pDhEpxjRljJ+EAapOwK9Wnjoi47NKwMTI3zCrZqZcqA=;
 b=dIGRsBgrHm/73194Yh6cfZ6JcjSt9zWyMVDk2y90SIlC6bMUx4qYaOFAE4sp/Lvfa/
 v9EVSRvlYNacceNXNJXAOhIVRu3UYdDrJjFGQm97JzvYH4CDNIfKXxzJoPMpJv7j7vE3
 R8t7pY6v73ymuluUgAd3Ut2yHxK+XPEO36vkiWJpprO70ttZvL21zjCdAWuQQkWrkbnE
 D5nFYkTOPFXYMSb/0i187hDcAemILgcwEbcxx4hR9hV0MDtyxQCjZKU/gjfsPtXOE/7a
 37LhooQSdgIilH7PTl5YE7RoYz8bfUg2quj1p8hxvSCLWfes/VlKATrV9V9nYzkvxyjY
 QCOw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:content-transfer-encoding:mime-version
 :subject:message-id:date:to;
 bh=pDhEpxjRljJ+EAapOwK9Wnjoi47NKwMTI3zCrZqZcqA=;
 b=Bf8+9wW89EH5XavNwkTda/7zLwZ5VF9LLNqfTBhHXYb7r2Tm3AfpOzIKYUP7Dxjcqy
 HfZSUyqHWZ98xR/ft8NzadtY3/HBOGTwOc/9P+c12Ud53TycN8LA9ERkQ0112YmIruyH
 vgDgLioSuxcSTqsaQL3QT1s2n5bef65t4lFZItrzaI5dCoLha7w4nDm8ZUqE17aBJJEy
 WnzhmKKeG6sTbijiEyBwJo/VOWdBUnYMxwSfuGVtCRQ9vWpQYAGAyXnHd+GA+cWJwiIx
 OO5p0F223JPZDBXc5V5nKm9Psow6UJqZP0cFotuP9vuXNNw/A9ThtwmhSE+nuodqzbQ+
 /sDw==
X-Gm-Message-State: AOAM530rflbUm89YbIkJ1AnZ5quJvgffqedBYmMoV9O8Yae1HieLaSvg
 jQX5mhu+SJoeYMl9f7EK/wdvTMaj0Q==
X-Google-Smtp-Source: ABdhPJwqywozNOIJnZ0xFKBn6STaPLdNmfCRtGnulKO8V71wGD1RoH2sGRc8mB6jpSP4E854kdzn2Q==
X-Received: by 2002:a17:903:2441:b0:156:cd2c:c935 with SMTP id
 l1-20020a170903244100b00156cd2cc935mr11150366pls.121.1649293136400; 
 Wed, 06 Apr 2022 17:58:56 -0700 (PDT)
Received: from smtpclient.apple ([172.92.15.146])
 by smtp.gmail.com with ESMTPSA id
 g3-20020a17090a708300b001c7e8ae7637sm6696283pjk.8.2022.04.06.17.58.54
 for <bug-gzip@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 06 Apr 2022 17:58:55 -0700 (PDT)
From: Young Mo Kang <kym327@HIDDEN>
Content-Type: text/plain;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\))
Subject: Compile error on macOS w/ gcc
Message-Id: <CB71C5A0-92B5-4E0D-8779-C24F3D236B4B@HIDDEN>
Date: Wed, 6 Apr 2022 17:58:54 -0700
To: bug-gzip@HIDDEN
X-Mailer: Apple Mail (2.3654.120.0.1.13)
Received-SPF: pass client-ip=2607:f8b0:4864:20::102d;
 envelope-from=kym327@HIDDEN; helo=mail-pj1-x102d.google.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.1 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)

Hello gzip devs and maintainers,

Not sure if this issue has been already brought up, since I=E2=80=99m =
not subscribed to the email.

I am having compilation error on M1 mac running macOS 11.6.3 with gcc =
11.2.0.
It compiles just fine with clang, but not with gcc.
The reproducible commands:

```
wget https://ftp.gnu.org/gnu/gzip/gzip-1.11.tar.gz
tar xfz gzip-1.11.tar.gz
cd gzip-1.11
mkdir build
cd build
CC=3Dgcc-11 ../configure
make -j4
```

and the output by running the above:
```
+ wget https://ftp.gnu.org/gnu/gzip/gzip-1.11.tar.gz
--2022-04-06 17:50:53--  https://ftp.gnu.org/gnu/gzip/gzip-1.11.tar.gz
Resolving ftp.gnu.org (ftp.gnu.org)... 209.51.188.20
Connecting to ftp.gnu.org (ftp.gnu.org)|209.51.188.20|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1256839 (1.2M) [application/x-gzip]
Saving to: =E2=80=98gzip-1.11.tar.gz=E2=80=99

     0K .......... .......... .......... .......... ..........  4%  294K =
4s
    50K .......... .......... .......... .......... ..........  8%  588K =
3s
   100K .......... .......... .......... .......... .......... 12% 17.4M =
2s
   150K .......... .......... .......... .......... .......... 16% 25.3M =
1s
   200K .......... .......... .......... .......... .......... 20%  615K =
1s
   250K .......... .......... .......... .......... .......... 24% 16.3M =
1s
   300K .......... .......... .......... .......... .......... 28% 21.7M =
1s
   350K .......... .......... .......... .......... .......... 32% 28.1M =
1s
   400K .......... .......... .......... .......... .......... 36%  629K =
1s
   450K .......... .......... .......... .......... .......... 40% 30.0M =
1s
   500K .......... .......... .......... .......... .......... 44% 23.8M =
1s
   550K .......... .......... .......... .......... .......... 48% 29.4M =
0s
   600K .......... .......... .......... .......... .......... 52% 28.0M =
0s
   650K .......... .......... .......... .......... .......... 57% 29.5M =
0s
   700K .......... .......... .......... .......... .......... 61% 29.5M =
0s
   750K .......... .......... .......... .......... .......... 65% 29.6M =
0s
   800K .......... .......... .......... .......... .......... 69% 32.5M =
0s
   850K .......... .......... .......... .......... .......... 73%  691K =
0s
   900K .......... .......... .......... .......... .......... 77% 18.2M =
0s
   950K .......... .......... .......... .......... .......... 81% 32.3M =
0s
  1000K .......... .......... .......... .......... .......... 85% 31.6M =
0s
  1050K .......... .......... .......... .......... .......... 89% 37.1M =
0s
  1100K .......... .......... .......... .......... .......... 93% 35.5M =
0s
  1150K .......... .......... .......... .......... .......... 97% 33.7M =
0s
  1200K .......... .......... .......                         100% =
24.5M=3D0.5s

2022-04-06 17:50:54 (2.29 MB/s) - =E2=80=98gzip-1.11.tar.gz=E2=80=99 =
saved [1256839/1256839]

+ tar xfz gzip-1.11.tar.gz
+ cd gzip-1.11
+ mkdir build
+ cd build
+ CC=3Dgcc-11
+ ../configure
checking for a BSD-compatible install... =
/opt/homebrew/opt/coreutils/libexec/gnubin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... =
/opt/homebrew/opt/coreutils/libexec/gnubin/mkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc-11
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...=20
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc-11 accepts -g... yes
checking for gcc-11 option to enable C11 features... none needed
checking whether gcc-11 understands -c and -o together... yes
checking whether the compiler is clang... no
checking for compiler option needed when checking for declarations... =
none
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc-11... gcc3
checking how to run the C preprocessor... gcc-11 -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for nm... nm
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for a POSIX-compliant shell... /bin/sh
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking for sys/param.h... yes
checking for sys/socket.h... yes
checking for dirent.h... yes
checking for features.h... no
checking for stdio_ext.h... no
checking for getopt.h... yes
checking for sys/cdefs.h... yes
checking for sys/time.h... yes
checking for limits.h... yes
checking for threads.h... no
checking for math.h... yes
checking for sys/mman.h... yes
checking for utime.h... yes
checking for crtdefs.h... no
checking for fcntl.h... yes
checking for memory.h... yes
checking for time.h... yes
checking for sys/sdt.h... yes
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking build system type... aarch64-apple-darwin20.6.0
checking host system type... aarch64-apple-darwin20.6.0
checking for egrep... /usr/bin/grep -E
checking for Minix Amsterdam compiler... no
checking for ar... ar
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking whether malloc is ptrdiff_t safe... yes
checking whether malloc, realloc, calloc set errno on failure... yes
checking for _set_invalid_parameter_handler... no
checking for fchdir... yes
checking for fdopendir... yes
checking for fcntl... yes
checking for symlink... yes
checking for mempcpy... no
checking for vasnprintf... no
checking for snprintf... yes
checking for fpurge... yes
checking for __fpurge... no
checking for __freading... no
checking for __fseterr... no
checking for fstatat... yes
checking for fsync... yes
checking for getdtablesize... yes
checking for getprogname... yes
checking for getexecname... no
checking for gettimeofday... yes
checking for lstat... yes
checking for mprotect... yes
checking for openat... yes
checking for strerror_r... yes
checking for __xpg_strerror_r... no
checking for pipe... yes
checking for sigaction... yes
checking for sigaltstack... yes
checking for siginterrupt... yes
checking for catgets... yes
checking for unlinkat... yes
checking for futimes... yes
checking for futimesat... no
checking for futimens... yes
checking for utimensat... yes
checking for lutimes... yes
checking for chown... yes
checking for fchmod... yes
checking for fchown... yes
checking whether the preprocessor supports include_next... yes
checking whether source code line length is unlimited... yes
checking for gcc-11 options needed to detect all undeclared functions... =
none needed
checking for complete errno.h... yes
checking whether strerror_r is declared... yes
checking whether strerror_r returns char *... no
checking whether fchdir is declared... yes
checking for working fcntl.h... yes
checking for pid_t... yes
checking for mode_t... yes
checking for promoted mode_t type... int
checking whether fdatasync is declared... no
checking for stdint.h... yes
checking for inttypes.h... yes
checking whether printf supports size specifiers as in C99... yes
checking whether printf supports 'long double' arguments... yes
checking whether printf supports infinite 'double' arguments... yes
checking whether byte ordering is bigendian... no
checking whether long double and double are the same... yes
checking whether printf supports infinite 'long double' arguments... yes
checking whether printf supports the 'a' and 'A' directives... no
checking whether printf supports the 'F' directive... yes
checking whether printf supports the 'n' directive... no
checking whether printf supports the 'ls' directive... yes
checking whether printf supports POSIX/XSI format strings with =
positions... yes
checking whether printf supports the grouping flag... yes
checking whether printf supports the left-adjust flag correctly... yes
checking whether printf supports the zero flag correctly... yes
checking whether printf supports large precisions... yes
checking whether the compiler produces multi-arch binaries... no
checking whether printf survives out-of-memory conditions... yes
checking for wchar_t... yes
checking for wint_t... yes
checking whether wint_t is large enough... yes
checking for intmax_t... yes
checking where to find the exponent in a 'double'... word 1 bit 20
checking whether snprintf returns a byte count as in C99... yes
checking whether snprintf truncates the result as in C99... yes
checking for snprintf... (cached) yes
checking for strnlen... yes
checking for wcslen... yes
checking for wcsnlen... yes
checking for mbrtowc... yes
checking for wcrtomb... yes
checking whether _snprintf is declared... no
checking whether frexp() can be used without linking with libm... yes
checking whether alarm is declared... yes
checking whether stdin defaults to large file offsets... yes
checking whether fseeko is declared... yes
checking for fseeko... yes
checking whether fflush works on input streams... no
checking whether stat file-mode macros are broken... no
checking for C/C++ restrict keyword... __restrict__
checking for nlink_t... yes
checking whether lstat correctly handles trailing slash... no
checking whether ftello is declared... yes
checking whether ungetc works on arbitrary bytes... no
checking for ftello... yes
checking whether ftello works... yes
checking whether getcwd (NULL, 0) allocates memory for result... yes
checking for getcwd with POSIX signature... yes
checking whether getdtablesize is declared... yes
checking for getopt.h... (cached) yes
checking for getopt_long_only... yes
checking whether getopt is POSIX compatible... no
checking for struct timeval... yes
checking for wide-enough struct timeval.tv_sec member... yes
checking whether limits.h has WORD_BIT, BOOL_WIDTH etc.... no
checking whether stdint.h conforms to C99... yes
checking whether stdint.h works without ISO C predefines... yes
checking whether stdint.h has UINTMAX_WIDTH etc.... no
checking where to find the exponent in a 'float'... word 0 bit 23
checking whether imported symbols can be declared weak... no
checking for pthread.h... yes
checking for pthread_kill in -lpthread... yes
checking whether POSIX threads API is available... yes
checking for multithread API to use... posix
checking for a sed that does not truncate output... =
/opt/homebrew/bin/gsed
checking whether malloc (0) returns nonnull... yes
checking whether NAN macro works... yes
checking whether HUGE_VAL works... yes
checking for mmap... yes
checking for MAP_ANONYMOUS... yes
checking whether memchr works... yes
checking whether memrchr is declared... no
checking whether <limits.h> defines MIN and MAX... no
checking whether <sys/param.h> defines MIN and MAX... yes
checking for O_CLOEXEC... yes
checking whether strerror(0) succeeds... no
checking for nl_langinfo... yes
checking for ptrdiff_t... yes
checking whether C symbols are prefixed with underscore at the linker =
level... yes
checking for sigset_t... yes
checking for uid_t in sys/types.h... yes
checking for volatile sig_atomic_t... yes
checking for sighandler_t... no
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for good max_align_t... yes
checking whether NULL can be used in arbitrary expressions... yes
checking whether fcloseall is declared... no
checking which flavor of printf attribute matches inttypes macros... =
system
checking whether ecvt is declared... yes
checking whether fcvt is declared... yes
checking whether gcvt is declared... yes
checking whether strdup is declared... yes
checking for struct timespec in <time.h>... yes
checking for TIME_UTC in <time.h>... yes
checking whether execvpe is declared... no
checking whether the utimes function works... yes
checking whether <wchar.h> uses 'inline' correctly... yes
checking whether wcsdup is declared... yes
checking for time_t past the year 2038... yes
checking for alloca as a compiler built-in... yes
checking whether calloc (0, n) and calloc (n, 0) return nonnull... yes
checking whether this system supports file names of any length... no
checking for library containing clock_gettime... none required
checking for clock_gettime... yes
checking for clock_settime... yes
checking for closedir... yes
checking for dirfd... yes
checking whether dirfd is declared... yes
checking whether dirfd is a macro... no
checking whether // is distinct from /... no
checking whether dup works... yes
checking whether dup2 works... yes
checking for error_at_line... no
checking whether fflush works on input streams... (cached) no
checking whether fcntl handles F_DUPFD correctly... yes
checking whether fcntl understands F_DUPFD_CLOEXEC... yes
checking for fdatasync... yes
checking whether fdopendir is declared... yes
checking whether fdopendir works... yes
checking whether fflush works on input streams... (cached) no
checking whether conversion from 'int' to 'long double' works... yes
checking for nl_langinfo... (cached) yes
checking for ptrdiff_t... (cached) yes
checking whether fpurge is declared... yes
checking whether fpurge works... no
checking whether free is known to preserve errno... no
checking whether frexp works... yes
checking whether frexpl is declared... yes
checking whether frexpl() can be used without linking with libm... yes
checking whether frexpl works... yes
checking for fseeko... (cached) yes
checking whether fflush works on input streams... (cached) no
checking for _fseeki64... no
checking whether fstatat (..., 0) works... yes
checking for ftello... (cached) yes
checking for _ftelli64... no
checking whether getdtablesize works... yes
checking whether program_invocation_name is declared... no
checking whether program_invocation_short_name is declared... no
checking whether __argv is declared... no
checking whether __progname is defined in default libraries... yes
checking for gettimeofday with POSIX signature... yes
checking whether isnan(double) can be used without linking with libm... =
yes
checking whether isnan(float) can be used without linking with libm... =
yes
checking whether isnan(float) works... yes
checking whether isnan(long double) can be used without linking with =
libm... yes
checking whether isnanl works... yes
checking for C compiler flag to ignore unused libraries... none
checking for pthread_rwlock_t... yes
checking whether pthread_rwlock_rdlock prefers a writer to a reader... =
yes
checking whether lseek detects pipes... yes
checking whether malloc (0) returns nonnull... (cached) yes
checking for mempcpy... (cached) no
checking for memrchr... no
checking whether open recognizes a trailing slash... no
checking for opendir... yes
checking whether perror matches strerror... yes
checking whether frexp works... (cached) yes
checking whether ldexp can be used without linking with libm... yes
checking whether frexpl() can be used without linking with libm... =
(cached) yes
checking whether frexpl works... (cached) yes
checking whether frexpl is declared... (cached) yes
checking whether ldexpl() can be used without linking with libm... yes
checking whether ldexpl works... yes
checking whether ldexpl is declared... yes
checking for raise... yes
checking for sigprocmask... yes
checking for readdir... yes
checking whether realloc (0, 0) returns nonnull... yes
checking for reallocarray... no
checking whether rmdir works... yes
checking for struct sigaction.sa_sigaction... yes
checking for signbit macro... yes
checking for signbit compiler built-ins... yes
checking for sigprocmask... (cached) yes
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for ssize_t... yes
checking whether stat handles trailing slashes on files... no
checking for struct stat.st_atim.tv_nsec... no
checking for struct stat.st_atimespec.tv_nsec... yes
checking for struct stat.st_birthtimespec.tv_nsec... yes
checking for working stdalign.h... yes
checking for working stdnoreturn.h... yes
checking for stpcpy... yes
checking whether unlink honors trailing slashes... no
checking whether unlink of a parent directory fails as it should... yes
checking for utime... yes
checking whether utime handles trailing slashes on files... no
checking for ptrdiff_t... (cached) yes
checking for nl_langinfo... (cached) yes
checking for ptrdiff_t... (cached) yes
checking for stdint.h... (cached) yes
checking for underline in external names... yes
checking for an assembler syntax supported by this package... no
checking for an ANSI C-conforming const... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for size_t... (cached) yes
checking for off_t... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating lib/Makefile
config.status: creating tests/Makefile
config.status: creating lib/config.h
config.status: linking ../GNUmakefile to GNUmakefile
config.status: executing depfiles commands
+ make -j4
  GEN      version.c
  GEN      version.h
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in lib
  GEN      alloca.h
  GEN      dirent.h
  GEN      fcntl.h
  GEN      getopt.h
  GEN      getopt-cdefs.h
  GEN      inttypes.h
  GEN      limits.h
  GEN      math.h
  GEN      signal.h
  GEN      stdint.h
  GEN      stdio.h
  GEN      stdlib.h
  GEN      string.h
  GEN      sys/stat.h
  GEN      sys/time.h
  GEN      sys/types.h
  GEN      time.h
  GEN      unistd.h
  GEN      utime.h
  GEN      wchar.h
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
  CC       openat-proc.o
  CC       basename-lgpl.o
  CC       cloexec.o
  CC       opendir-safer.o
  CC       dirname-lgpl.o
  CC       stripslash.o
  CC       exitfail.o
  CC       creat-safer.o
  CC       open-safer.o
  CC       fd-hook.o
  CC       fd-safer-flag.o
  CC       dup-safer-flag.o
  CC       filenamecat-lgpl.o
  CC       freading.o
  CC       getprogname.o
  CC       gettime.o
In file included from ../../lib/gettime.c:22:
../../lib/timespec.h:52:1: warning: 'maybe_unused' attribute ignored =
[-Wattributes]
   52 | _GL_TIMESPEC_INLINE struct timespec
      | ^~~~~~~~~~~~~~~~~~~
../../lib/timespec.h:52:21: error: expected identifier or '(' before =
'struct'
   52 | _GL_TIMESPEC_INLINE struct timespec
      |                     ^~~~~~
../../lib/timespec.h:63:1: warning: 'maybe_unused' attribute ignored =
[-Wattributes]
   63 | _GL_TIMESPEC_INLINE int _GL_ATTRIBUTE_PURE
      | ^~~~~~~~~~~~~~~~~~~
../../lib/timespec.h:63:21: error: expected identifier or '(' before =
'int'
   63 | _GL_TIMESPEC_INLINE int _GL_ATTRIBUTE_PURE
      |                     ^~~
../../lib/timespec.h:71:1: warning: 'maybe_unused' attribute ignored =
[-Wattributes]
   71 | _GL_TIMESPEC_INLINE int _GL_ATTRIBUTE_PURE
      | ^~~~~~~~~~~~~~~~~~~
../../lib/timespec.h:71:21: error: expected identifier or '(' before =
'int'
   71 | _GL_TIMESPEC_INLINE int _GL_ATTRIBUTE_PURE
      |                     ^~~
../../lib/timespec.h:85:1: warning: 'maybe_unused' attribute ignored =
[-Wattributes]
   85 | _GL_TIMESPEC_INLINE double
      | ^~~~~~~~~~~~~~~~~~~
../../lib/timespec.h:85:21: error: expected identifier or '(' before =
'double'
   85 | _GL_TIMESPEC_INLINE double
      |                     ^~~~~~
make[3]: *** [gettime.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
```

and this is what I get from running =E2=80=9Cgcc-11 =E2=80=94version=E2=80=
=9D
```
gcc-11 (Homebrew GCC 11.2.0_3) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is =
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR =
PURPOSE.
```

Not sure if I have to set some special flags/configs for this to work, =
but even so, it would be nice if gzip can be built w/o custom =
flags/configs out of the box with both clang & gcc.

Thanks.
Young





Acknowledgement sent to Young Mo Kang <kym327@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gzip@HIDDEN. Full text available.
Report forwarded to bug-gzip@HIDDEN:
bug#54759; Package gzip. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 7 Apr 2022 23:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.