From unknown Sat Aug 16 11:37:37 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#49850 <49850@debbugs.gnu.org> To: bug#49850 <49850@debbugs.gnu.org> Subject: Status: Crosscompiling gzip for musl-based system with clang Reply-To: bug#49850 <49850@debbugs.gnu.org> Date: Sat, 16 Aug 2025 18:37:37 +0000 retitle 49850 Crosscompiling gzip for musl-based system with clang reassign 49850 gzip submitter 49850 Caleb Heydon severity 49850 normal tag 49850 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 03 17:29:43 2021 Received: (at submit) by debbugs.gnu.org; 3 Aug 2021 21:29:43 +0000 Received: from localhost ([127.0.0.1]:41673 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mB1yp-0006b6-FH for submit@debbugs.gnu.org; Tue, 03 Aug 2021 17:29:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:58022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAxWK-0008BO-BH for submit@debbugs.gnu.org; Tue, 03 Aug 2021 12:44:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mAxWK-0004fY-2Z for bug-gzip@gnu.org; Tue, 03 Aug 2021 12:44:00 -0400 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:43697) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mAxWH-00067p-KT for bug-gzip@gnu.org; Tue, 03 Aug 2021 12:43:59 -0400 Received: by mail-lf1-x129.google.com with SMTP id b6so17995816lff.10 for ; Tue, 03 Aug 2021 09:43:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uconn-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=3kvfVQC6BMRd3VVwbLOOsqSe5ydDK7NdSxFqS80dCPE=; b=mh3Ec0zKZQkdHUULy1TAZQIScRIobHOPhB820QO7hTlx19tLkciw/sxv92TSmFqjAO KaOFmEXVaKZGfZauwZE8KpPFnV88gulX3KC4QGTOdCFUWLU/jpUZFKrHhcw0rb/vl0Yl U6x/DFz6P+erlQFv3jMPV+zJG5weujWrDDlPPgUt4djOLBUx85na+ljDVY9yo0N9CkWt sfxDuze+q7YeC0dZu4QseA74pFPlarmMUlEqyrtgzfF5XUPmEYOZuvY0IQRIhtud+AWa nEgU0h9tSsFJfFHRYr4KuBl8P1JFqcyU8n5OJP8LaZ2K3qODST0jL38+F/aev9kW+lmx /N6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=3kvfVQC6BMRd3VVwbLOOsqSe5ydDK7NdSxFqS80dCPE=; b=E0itRf6n7QidWC5qCueB1JXPvr29IZx43A+fTl6iZWQMppgqTa0gU3zksidvpnWhJG bKaEfEmn4B68QVWdTqyEocU6zzAJqa0w7bnOuuCz+ztjG63I+I8BHInOALyekr9UoqnT Pwu6RefrHSMSDDe5yi2OVouU56bKhgrK2lWLVRxFIYktHh40H9HryEp803tMvVx1NQSP H6c7InlLFd7qms4vlsrAeIpHiW43VOcxrKfhpaImCZFvdBPQnGIXPDXoFZ0f0yfSE9jJ ooaemFl+cxfYS2wcQNTLyM7RS98UmGPvrHQ4aNGb9MOo+GK+4mynlg9l8ej3m+LHVSzD meEg== X-Gm-Message-State: AOAM532ekpL7rOYGl/Eni8odsIfhYvXN/wFajUUhplvprtJVzUFZW3SI rn1dHpVbz4W5qhzgfE6QSAfiKMnXTkJXrKGGhd1CpBi3Z51h+g== X-Google-Smtp-Source: ABdhPJyfoJdTEV6eeWXq0c6ZWVbZ2jFbxhJ7Z7u50r39G1X3WsgiUWmwTg2y12kEjAkopuVWMeNQIzBc0wCaflVXbOs= X-Received: by 2002:a05:6512:4ce:: with SMTP id w14mr10644000lfq.564.1628009034635; Tue, 03 Aug 2021 09:43:54 -0700 (PDT) MIME-Version: 1.0 From: Caleb Heydon Date: Tue, 3 Aug 2021 12:43:44 -0400 Message-ID: Subject: Crosscompiling gzip for musl-based system with clang To: bug-gzip@gnu.org Content-Type: multipart/alternative; boundary="00000000000033719105c8aa641a" Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=caleb.heydon@uconn.edu; helo=mail-lf1-x129.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 03 Aug 2021 17:29:41 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --00000000000033719105c8aa641a Content-Type: text/plain; charset="UTF-8" Hello, I have been attempting to crosscompile gzip for a linux system that uses the musl libc using clang, and I have come across an issue while attempting to configure gzip. I set CC="cross-clang", and run ./configure --prefix=/usr --host=x86_64. cross-clang is just a wrapper script that sets the sysroot for crosscompiling. The configuration fails, and I get the following error: checking how cross-clang reports undeclared, standard C functions... configure: error: in `/home/user/Desktop/cross-compiling/build/gzip/gzip': configure: error: cannot detect from compiler exit status or warnings I have used a similar setup to successfully crosscompile many other pieces of software, so I am not entirely sure why gzip is not configuring. Any suggestions for getting around the issue or suggested software changes would be greatly appreciated. Thanks, Caleb Heydon --00000000000033719105c8aa641a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I have been attempting to crossc= ompile gzip for a linux system that uses the musl libc using clang, and I h= ave come across=C2=A0an issue while attempting=C2=A0to configure gzip.

I set CC=3D"cross-clang", and run ./configur= e --prefix=3D/usr --host=3Dx86_64.=C2=A0 cross-clang is just a wrapper scri= pt that sets the sysroot for crosscompiling.=C2=A0 The configuration fails,= and I get the following error:

checking how cross= -clang reports undeclared, standard C functions... configure: error: in `/h= ome/user/Desktop/cross-compiling/build/gzip/gzip':
configure: error:= cannot detect from compiler exit status or warnings

I have used a similar setup to successfully=C2=A0crosscompile many o= ther pieces of software, so I am not entirely sure why gzip is not configur= ing.=C2=A0 Any suggestions for getting around the issue or suggested softwa= re changes would be greatly appreciated.

Thanks,

Caleb Heydon
--00000000000033719105c8aa641a-- From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 04 03:07:49 2021 Received: (at 49850) by debbugs.gnu.org; 4 Aug 2021 07:07:49 +0000 Received: from localhost ([127.0.0.1]:42313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBB0G-0002Ry-PG for submit@debbugs.gnu.org; Wed, 04 Aug 2021 03:07:48 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:46906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBB0E-0002Rj-Ok for 49850@debbugs.gnu.org; Wed, 04 Aug 2021 03:07:47 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 460BE160113; Wed, 4 Aug 2021 00:07:40 -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 KUt8VLAYkFtC; Wed, 4 Aug 2021 00:07:34 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id BEC5D160117; Wed, 4 Aug 2021 00:07:34 -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 9Na1MMYkEUct; Wed, 4 Aug 2021 00:07:34 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 9CD09160113; Wed, 4 Aug 2021 00:07:34 -0700 (PDT) Subject: Re: bug#49850: Crosscompiling gzip for musl-based system with clang To: Caleb Heydon , 49850@debbugs.gnu.org References: From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <9c4e9126-9f62-bf17-dfd6-bff1cdc5f76f@cs.ucla.edu> Date: Wed, 4 Aug 2021 00:07:34 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 49850 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) gzip doesn't do much of anything special when cross-compiling; it's like other GNU or Autoconf-using programs. If your cross-compiler doesn't output to stderr on error, or outputs to stderr even when there isn't an error, that can confuse the process (with gzip and with other programs). So you might want to look into that. Otherwise, try putting 'set -x' into the relevant parts of the 'configure' shell script and look at the debugging output. From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 29 19:11:12 2022 Received: (at control) by debbugs.gnu.org; 29 Mar 2022 23:11:13 +0000 Received: from localhost ([127.0.0.1]:33835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZKzY-0001lT-Pw for submit@debbugs.gnu.org; Tue, 29 Mar 2022 19:11:12 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:36090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZKzV-0001lF-G4 for control@debbugs.gnu.org; Tue, 29 Mar 2022 19:11:12 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id A58E116005E for ; Tue, 29 Mar 2022 16:11:02 -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 z0T9Mx_p7D14 for ; Tue, 29 Mar 2022 16:11:02 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 0C27916006C for ; Tue, 29 Mar 2022 16:11:02 -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 nQVF-TBJfrae for ; Tue, 29 Mar 2022 16:11:01 -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 E67A416005E for ; Tue, 29 Mar 2022 16:11:01 -0700 (PDT) Message-ID: <52075588-7e27-c53e-1855-0117c7d8369b@cs.ucla.edu> Date: Tue, 29 Mar 2022 16:11:01 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Content-Language: en-US To: GNU bug control From: Paul Eggert Subject: gzip bug report maintenance Organization: UCLA Computer Science Department Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 49850 moreinfo severity 48885 wishlist tags 46835 notabug close 46835 close 46730 From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 26 00:47:07 2022 Received: (at 49850-done) by debbugs.gnu.org; 26 Dec 2022 05:47:07 +0000 Received: from localhost ([127.0.0.1]:50540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p9gKJ-00082k-Im for submit@debbugs.gnu.org; Mon, 26 Dec 2022 00:47:07 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:52916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p9gKG-000822-Q2 for 49850-done@debbugs.gnu.org; Mon, 26 Dec 2022 00:47:05 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 82D01160043; Sun, 25 Dec 2022 21:46:59 -0800 (PST) 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 uTwmkOmNcVMv; Sun, 25 Dec 2022 21:46:58 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id CCE81160044; Sun, 25 Dec 2022 21:46:58 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.9.2 zimbra.cs.ucla.edu CCE81160044 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=78364E5A-2AF3-11ED-87FA-8298ECA2D365; t=1672033618; bh=+jlwF6YjRXrU/uKuS1uBj1AAhENT/zcbtfm91a9k5MM=; h=Message-ID:Date:MIME-Version:Subject:From:To:Content-Type: Content-Transfer-Encoding; b=iQYvjxATQefHxcgnGvLPb/MxYxlbZ1BmYLvM4tXIUu/a1F2LJYEyTIuKXgTGGr675 T+BDHoat6277dXIxh91rBlp9uygLDRoyoTeUuSvNj/COXUUldtUnwce0D1m9XP4rms 46wqlH16DZW4KZnVisS6ynzBMJ2gBNE1hYqHvrG0= 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 MvbW4DViXZZw; Sun, 25 Dec 2022 21:46:58 -0800 (PST) Received: from [192.168.86.236] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 9CC7F160043; Sun, 25 Dec 2022 21:46:58 -0800 (PST) Message-ID: Date: Sun, 25 Dec 2022 21:46:58 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: bug#49850: Crosscompiling gzip for musl-based system with clang Content-Language: en-US From: Paul Eggert To: Caleb Heydon References: <9c4e9126-9f62-bf17-dfd6-bff1cdc5f76f@cs.ucla.edu> In-Reply-To: <9c4e9126-9f62-bf17-dfd6-bff1cdc5f76f@cs.ucla.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: 49850-done Cc: 49850-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.4 (----) No further comment on this old bug report, so I'm taking the liberty of closing it. From unknown Sat Aug 16 11:37:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 23 Jan 2023 12:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator