Subject: bug#48084: closed (Re: bug#48084: ustr fails to cross-compile, even when using cc-for-target)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 28 Apr 2021 18:55:02 +0000

Your bug report

#48084: ustr fails to cross-compile, even when using cc-for-target

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
48084: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=48084
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#48084: ustr fails to cross-compile, even when using cc-for-target
From: Maxime Devos <[email-masked]>
To: [email-masked]
Date: Wed, 28 Apr 2021 20:54:13 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Fixed in 1059d1570b7078e6a83e067577b42ed24ee25b55
<https://git.savannah.gnu.org/cgit/guix.git/commit/?id=1059d1570b7078e6a83e067577b42ed24ee25b55>
by nckx.

Subject: ustr fails to cross-compile, even when using cc-for-target
From: Maxime Devos <[email-masked]>
To: [email-masked]
Date: Wed, 28 Apr 2021 19:16:17 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Severity: minor

This is without transparant qemu emulation, on a x86-64 Linux box.
Command: ./pre-inst-env guix build ustr --target=aarch64-linux-gnu.
(First patch ustr to use "CC=TARGET-gcc").
The package fails to build.  Some parts of the log that seem relevant:

(during configuration)
	sed -e "s,@HAVE_STDINT_H@,$have_stdint_h,g" -e "s,@USE_ASSERT@,$dbg1,g" -e "s,@USE_EOS_MARK@,$dbg2,g" -e "s,@HAVE_64bit_SIZE_MAX@,$sz64,g" -e "s,@HAVE_RETARDED_VSNPRINTF@,$vsnp,g" < ustr-
conf.h.in > ustr-conf-debug.h
/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/sh: line 1: ./autoconf_64b: cannot execute binary file: Exec format error
(during compilation

ustr-main.h:204:34: error: #if with no expression
 #if USTR_CONF_HAVE_64bit_SIZE_MAX

Greetings,
Maxime.