Bug#505375: FTBFS with GCC 4.4: dereferencing type-punned pointer will...
Martin Michlmayr
tbm at cyrius.com
Tue Nov 11 21:59:58 UTC 2008
Package: mdadm
Version: 2.6.7.1-1
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.4
Your package fails to build with the upcoming GCC 4.4. Version 4.4
has not been released yet but I'm building with a snapshot in order
to find errors and give people an advance warning.
GCC 4.4 cleaned up some more C++ headers. You always have to #include
headers directly and cannot rely for things to be included indirectly.
You can reproduce this problem with gcc-snapshot from unstable.
> Automatic build of mdadm_2.6.7.1-1 on em64t by sbuild/amd64 0.53
...
> gcc -Wall -Werror -Wstrict-prototypes -ggdb -fomit-frame-pointer -Os -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/tmp/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm.conf\" -DDEBIAN -c -o super0.o super0.c
> gcc -Wall -Werror -Wstrict-prototypes -ggdb -fomit-frame-pointer -Os -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/tmp/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm.conf\" -DDEBIAN -c -o super1.o super1.c
> cc1: warnings being treated as errors
> super1.c: In function 'update_super1':
> super1.c:617: error: dereferencing type-punned pointer will break strict-aliasing rules
> super1.c: In function 'init_super1':
> super1.c:721: error: dereferencing type-punned pointer will break strict-aliasing rules
> super1.c: In function 'write_init_super1':
> super1.c:895: error: dereferencing type-punned pointer will break strict-aliasing rules
> make[2]: *** [super1.o] Error 1
--
Martin Michlmayr
http://www.cyrius.com/
More information about the pkg-mdadm-devel
mailing list