[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#455407: FTBFS with GCC 4.3: #define redefined



Package: gdc-4.1
Version: 0.25-4.1.2-17d1
Usertags: ftbfs-gcc-4.3

Your package fails to build with GCC 4.3.  Version 4.3 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.3 has converted a number
of warnings into errors.  With GCC 4.3, you're no longer to
just redefine a previous #define.  You need to either avoid
redefinitions directly or to use #ifndef to make sure that something
has not been defined already.  See
http://www.cyrius.com/journal/gcc/gcc-4.3-pedwarn.html

You can reproduce this problem with gcc-snapshot from unstable.  Note
that Red Hat, Novell and Ubuntu have done some work getting packages
to build with GCC 4.3 so there might be patches floating around
somewhere.  I suggest you talk to your upstream.

> Automatic build of gdc-4.1_0.25-4.1.2-17d1 on em64t by sbuild/amd64 0.53
...
> ./../../src/gcc/d/dmd/module.h:44: warning: unused parameter 'sc'
> c++   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes     -DHAVE_CONFIG_H -I. -Id -I../../src/gcc -I../../src/gcc/d -I../../src/gcc/../include -I../../src/gcc/../libcpp/include     -Id -I../../src/gcc/d/dmd -I../../src/gcc/d -D_GNU_SOURCE=1 -D_DH=1 -DD_NO_TRAMPOLINES=1 -DELFOBJ=1 -DLIBPHOBOS=\"-lgphobos\" -DLIBPHOBOS_PROFILE=\"-lgphobos\" -DD_GCC_VER=41 -Wno-missing-braces -fmessage-length=0 -include ../../src/gcc/d/dmd/total.h -o d/mtype.dmd.o -c ../../src/gcc/d/dmd/mtype.c
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
> cc1plus: warning: command line option "-Wmissing-prototypes" is valid for Ada/C/ObjC but not for C++
> In file included from ./../../src/gcc/d/dmd/stringtable.h:19,
>                  from ./../../src/gcc/d/dmd/total.h:25,
>                  from <command-line>:0:
> ./../../src/gcc/d/dmd/lstring.h:23: warning: ignoring #pragma warning 
> ../../src/gcc/d/dmd/mtype.c:1044:1: error: "FLT_MAX" redefined
> In file included from ../../src/gcc/d/dmd/mtype.c:25:
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:107:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1045:1: error: "DBL_MAX" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:108:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1046:1: error: "LDBL_MAX" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:109:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1047:1: error: "FLT_MIN" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:124:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1048:1: error: "DBL_MIN" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:125:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1049:1: error: "LDBL_MIN" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:126:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1050:1: error: "FLT_DIG" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:56:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1051:1: error: "DBL_DIG" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:57:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1052:1: error: "LDBL_DIG" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:58:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1053:1: error: "FLT_MANT_DIG" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:42:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1054:1: error: "DBL_MANT_DIG" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:43:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1055:1: error: "LDBL_MANT_DIG" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:44:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1056:1: error: "FLT_MAX_10_EXP" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:96:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1057:1: error: "DBL_MAX_10_EXP" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:97:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1058:1: error: "LDBL_MAX_10_EXP" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:98:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1059:1: error: "FLT_MIN_10_EXP" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:76:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1060:1: error: "DBL_MIN_10_EXP" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:77:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1061:1: error: "LDBL_MIN_10_EXP" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:78:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1062:1: error: "FLT_MAX_EXP" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:84:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1063:1: error: "DBL_MAX_EXP" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:85:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1064:1: error: "LDBL_MAX_EXP" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:86:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1065:1: error: "FLT_MIN_EXP" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:64:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1066:1: error: "DBL_MIN_EXP" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:65:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1067:1: error: "LDBL_MIN_EXP" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:66:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1068:1: error: "FLT_EPSILON" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:116:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1069:1: error: "DBL_EPSILON" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:117:1: error: this is the location of the previous definition
> ../../src/gcc/d/dmd/mtype.c:1070:1: error: "LDBL_EPSILON" redefined
> /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/include/float.h:118:1: error: this is the location of the previous definition

-- 
Martin Michlmayr
http://www.cyrius.com/




Reply to: