This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Solaris vtv port breaks x32 build

On Mon, Nov 30, 2015 at 9:14 PM, Jeff Law <> wrote:
> Right, but isn't AC_COMPILE_IFELSE a compile test, not a run test?

The problem macro is _AC_COMPILER_EXEEXT_WORKS.  The message is at the end.

This macro *should* work for cross-compiling but somehow it doesn't
work.  In libvtv/configure $cross_compiling is not defined
appropriately.  I'm configuring with the following which definitely
indicates that cross-compiling is selected.

~/gnu/gcc/configure --prefix=/usr --enable-bootstrap --enable-shared
--enable-host-shared --enable-threads=posix --with-system-zlib
--enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-linker-build-id
--with-linker-hash-style=gnu --enable-plugin --enable-initfini-array
--with-tune=haswell --with-multilib-list=m32,m64,mx32
--build=x86_64-redhat-linux build_alias=x86_64-redhat-linux
--host=x86_64-redhat-linux host_alias=x86_64-redhat-linux
--enable-languages=c,c++,fortran,jit,lto --enable-libmpx
--enable-gnu-indirect-function --with-system-zlib --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info

configure:2863: checking for C compiler default output file name
-B/home/drepper/local/gcc-builds/test-20151130/./gcc/ -B/us
r/x86_64-redhat-linux/bin/ -B/usr/x86_64-redhat-linux/lib/ -isystem
/usr/x86_64-redhat-linux/include -isystem /usr/x86_64-redhat-li
nux/sys-include  -mx32 -g -O2   conftest.c  >&5
configure:2889: $? = 0
configure:2926: result: a.out
configure:2942: checking whether the C compiler works
configure:2951: ./a.out
/home/drepper/gnu/gcc/libvtv/configure: line 2953: ./a.out: cannot
execute binary file: Exec format error

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]