[sr #110687] AC_C_BIGENDIAN fails when cross-compiling with -std=c11 and -flto

anonymous <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.bugs
Message-ID <[email protected]>
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: [email protected]
             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], [[email protected]])
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.