[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sr #110687] AC_C_BIGENDIAN fails when cross-compiling with -std=c11 and
From: |
anonymous |
Subject: |
[sr #110687] AC_C_BIGENDIAN fails when cross-compiling with -std=c11 and -flto |
Date: |
Wed, 27 Jul 2022 10:27:59 -0400 (EDT) |
Follow-up Comment #2, sr #110687 (project autoconf):
> It appears to me that this is an issue with cross compilation and strict
conformance mode (-std=c11), not with -flto. Could you please report what
happens, using the same cross-compilation toolchain, if you run the same
configure command but using CFLAGS="-std=c11" LDFLAGS="" ?
In that case (only -std=c11) everything works as expected.
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
configure: creating ./config.status
config.status: creating issue618config.h
The issue only occurs when using -flto.
> It would also be helpful to know which C library is in use in the target
environment, and its version number.
The system is Ubuntu 22.04. glibc 2.35. The cross-compiler is
aarch64-linux-gnu-g++ (Ubuntu 11.2.0-17ubuntu1) 11.2.0.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/support/?110687>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/