GNU bug report logs - #49850
Crosscompiling gzip for musl-based system with clang

Previous Next

Package: gzip;

Reported by: Caleb Heydon <caleb.heydon <at> uconn.edu>

Date: Tue, 3 Aug 2021 21:30:02 UTC

Severity: normal

Tags: moreinfo

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 49850 in the body.
You can then email your comments to 49850 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gzip <at> gnu.org:
bug#49850; Package gzip. (Tue, 03 Aug 2021 21:30:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Caleb Heydon <caleb.heydon <at> uconn.edu>:
New bug report received and forwarded. Copy sent to bug-gzip <at> gnu.org. (Tue, 03 Aug 2021 21:30:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Caleb Heydon <caleb.heydon <at> uconn.edu>
To: bug-gzip <at> gnu.org
Subject: Crosscompiling gzip for musl-based system with clang
Date: Tue, 3 Aug 2021 12:43:44 -0400
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]

Information forwarded to bug-gzip <at> gnu.org:
bug#49850; Package gzip. (Wed, 04 Aug 2021 07:08:01 GMT) Full text and rfc822 format available.

Message #8 received at 49850 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Caleb Heydon <caleb.heydon <at> uconn.edu>, 49850 <at> debbugs.gnu.org
Subject: Re: bug#49850: Crosscompiling gzip for musl-based system with clang
Date: Wed, 4 Aug 2021 00:07:34 -0700
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.




Added tag(s) moreinfo. Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Tue, 29 Mar 2022 23:12:01 GMT) Full text and rfc822 format available.

Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Mon, 26 Dec 2022 05:48:03 GMT) Full text and rfc822 format available.

Notification sent to Caleb Heydon <caleb.heydon <at> uconn.edu>:
bug acknowledged by developer. (Mon, 26 Dec 2022 05:48:03 GMT) Full text and rfc822 format available.

Message #15 received at 49850-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Caleb Heydon <caleb.heydon <at> uconn.edu>
Cc: 49850-done <at> debbugs.gnu.org
Subject: Re: bug#49850: Crosscompiling gzip for musl-based system with clang
Date: Sun, 25 Dec 2022 21:46:58 -0800
No further comment on this old bug report, so I'm taking the liberty of 
closing it.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 23 Jan 2023 12:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 93 days ago.

Previous Next


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