URL: <https://savannah.gnu.org/support/?110687>
Summary: AC_C_BIGENDIAN fails when cross-compiling with -std=c11 and -flto Project: Autoconf Submitter: None Submitted: Wed 27 Jul 2022 01:27:11 PM UTC Category: None Priority: 5 - Normal Severity: 3 - Normal Status: None Privacy: Public Assigned to: None Originator Email: fanqu...@gmail.com Open/Closed: Open Discussion Lock: Any Operating System: GNU/Linux _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Wed 27 Jul 2022 01:27:11 PM UTC By: Anonymous Using the following configure.ac: AC_INIT([issue618], [1.0], [foo@bar.invalid]) AC_CONFIG_HEADERS([issue618config.h]) AC_C_BIGENDIAN AC_OUTPUT and the following command: autoheader && autoconf && rm -Rf config.status autom4te.cache/ && ./configure --host=aarch64-linux-gnu CFLAGS="-std=c11 -flto" LDFLAGS="-flto" configure fails with: checking whether byte ordering is bigendian... unknown configure: error: unknown endianness presetting ac_cv_c_bigendian=no (or yes) will help config.log is attached. See also: https://github.com/libexpat/libexpat/issues/618/. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Wed 27 Jul 2022 01:27:11 PM UTC Name: config.log Size: 13KiB By: None <http://savannah.gnu.org/support/download.php?file_id=53473> _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/support/?110687> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/