GNU bug report logs -
#49850
Crosscompiling gzip for musl-based system with clang
Previous Next
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.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[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)]
This bug report was last modified 2 years and 206 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.