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

  • Done
  • quality assurance status badge
Details
One participant
  • Maxime Devos
Owner
unassigned
Submitted by
Maxime Devos
Severity
minor
M
M
Maxime Devos wrote on 28 Apr 2021 19:16
(address . bug-guix@gnu.org)
f71cdb59af274d808f86df4f7cac3dafdafb0ca7.camel@telenet.be
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.
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYImYYRccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7gQkAQCR6fKo0LLW2v38sbgXrCQAhfpt
KZB71NucfqzYu8s8BwD8DZ/U4167h7kBV5Ajj0Hio3EFsObzzbScIcNC8dJH+gU=
=zTP4
-----END PGP SIGNATURE-----


M
M
Maxime Devos wrote on 28 Apr 2021 20:54
(address . 48084-done@debbugs.gnu.org)
dcc5faa20cb452ef3cd72c30f79ee7812f1370ca.camel@telenet.be
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYImvVRccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7vAYAQC7liBJtAnBOlMKFMIEnx52FUcu
o3hInwR8LAtQJAURuQD+Lo4vZ3CBY1ic3f/dmFnLMwRk1EefJ8NloP2u4+J/FgY=
=ZQV4
-----END PGP SIGNATURE-----


Closed
?