[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: test-stdalign.c breaks on i686 on Fedora Rawhide (gcc 4.7)
From: |
Richard W.M. Jones |
Subject: |
Re: test-stdalign.c breaks on i686 on Fedora Rawhide (gcc 4.7) |
Date: |
Fri, 27 Jan 2012 08:32:14 +0000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Fri, Jan 27, 2012 at 12:57:20AM +0100, Bruno Haible wrote:
> Richard W.M. Jones wrote:
> > CC test-stdalign.o
>
> Please, can you show the entire compiler command? Run "make V=1" so that
> 'make' prints the real command.
Sure, it's:
depbase=`echo test-stdalign.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -std=gnu99 -DHAVE_CONFIG_H -I. -I../..
-DIN_LIBGUESTFS_GNULIB_TESTS=1 -I. -I. -I../.. -I./../.. -I../../gnulib/lib
-I./../../gnulib/lib -g -O2 -MT test-stdalign.o -MD -MP -MF $depbase.Tpo -c
-o test-stdalign.o test-stdalign.c &&\
mv -f $depbase.Tpo $depbase.Po
test-stdalign.c:70:1: error: static assertion failed: "verify (alignof
(int64_t) == offsetof (int64_t_helper, slot2))"
test-stdalign.c:73:1: error: static assertion failed: "verify (alignof (double)
== offsetof (double_helper, slot2))"
make[3]: *** [test-stdalign.o] Error 1
> > Compiler and kernel version:
> >
> > gcc-4.7.0-0.9.fc17.i686
> > Linux fedorarawhidex32 2.6.38.6-27.fc15.i686.PAE #1 SMP Sun May 15
> > 17:39:47 UTC 2011 i686 i686 i386 GNU/Linux
>
> Also it would be good to know if this compiler produces 32-bit (i686)
> or 64-bit (x86_64) code by default.
It's a 32 bit gcc on a 32 bit virtual machine, so (I guess) it only
produces 32 bit code. I am able to reproduce this on two completely
different 32 bit VMs, both with the same version of gcc above.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora