Hello, While trying to build GCC 5.3.0 with 4.8.2 (on x86_64-linux-gnu), I get this: --8<---------------cut here---------------start------------->8--- libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../gcc-5.3.0/libcc1 -I ../../gcc-5.3.0/libcc1/../include -I ../../gcc-5.3.0/libcc1/../libgcc -I ../gcc -I../../gcc-5.3.0/libcc1/../gcc -I ../../gcc-5.3.0/libcc1/../gcc/c -I ../../gcc-5.3.0/libcc1/../gcc/c-family -I ../../gcc-5.3.0/libcc1/../libcpp/include -I/tmp/guix-build-gcc-cross-boot0-5.3.0.drv-0/build/./gmp -I/tmp/guix-build-gcc-cross-boot0-5.3.0.drv-0/gcc-5.3.0/gmp -I/tmp/guix-build-gcc-cross-boot0-5.3.0.drv-0/build/./mpfr/src -I/tmp/guix-build-gcc-cross-boot0-5.3.0.drv-0/gcc-5.3.0/mpfr/src -I/tmp/guix-build-gcc-cross-boot0-5.3.0.drv-0/gcc-5.3.0/mpc/src -W -Wall -fvisibility=hidden -g -O2 -MT callbacks.lo -MD -MP -MF .deps/callbacks.Tpo -c ../../gcc-5.3.0/libcc1/callbacks.cc -fPIC -DPIC -o .libs/callbacks.o In file included from ../../gcc-5.3.0/libcc1/../include/hashtab.h:40:0, from ../../gcc-5.3.0/libcc1/callbacks.hh:24, from ../../gcc-5.3.0/libcc1/callbacks.cc:23: ../../gcc-5.3.0/libcc1/../include/ansidecl.h:171:64: error: declaration of 'int asprintf(char**, const char*, ...)' has a different exception specifier # define ATTRIBUTE_NONNULL(m) __attribute__ ((__nonnull__ (m))) ^ ../../gcc-5.3.0/libcc1/../include/ansidecl.h:200:80: note: in expansion of macro 'ATTRIBUTE_NONNULL' #define ATTRIBUTE_PRINTF(m, n) __attribute__ ((__format__ (__printf__, m, n))) ATTRIBUTE_NONNULL(m) ^ ../../gcc-5.3.0/libcc1/../include/ansidecl.h:202:28: note: in expansion of macro 'ATTRIBUTE_PRINTF' #define ATTRIBUTE_PRINTF_2 ATTRIBUTE_PRINTF(2, 3) ^ ../../gcc-5.3.0/libcc1/../include/libiberty.h:628:50: note: in expansion of macro 'ATTRIBUTE_PRINTF_2' extern int asprintf (char **, const char *, ...) ATTRIBUTE_PRINTF_2; ^ In file included from ../../gcc-5.3.0/libcc1/../include/libiberty.h:49:0, from ../../gcc-5.3.0/libcc1/callbacks.cc:24: /gnu/store/hkwl20n5ca87bczjrlv8b8vfm26vcrxy-glibc-bootstrap-0/include/stdio.h:405:12: error: from previous declaration 'int asprintf(char**, const char*, ...) throw ()' extern int asprintf (char **__restrict __ptr, ^ In file included from ../../gcc-5.3.0/libcc1/../include/hashtab.h:40:0, from ../../gcc-5.3.0/libcc1/callbacks.hh:24, from ../../gcc-5.3.0/libcc1/callbacks.cc:23: ../../gcc-5.3.0/libcc1/../include/ansidecl.h:171:64: error: declaration of 'int vasprintf(char**, const char*, __va_list_tag*)' has a different exception specifier # define ATTRIBUTE_NONNULL(m) __attribute__ ((__nonnull__ (m))) ^ ../../gcc-5.3.0/libcc1/../include/ansidecl.h:200:80: note: in expansion of macro 'ATTRIBUTE_NONNULL' #define ATTRIBUTE_PRINTF(m, n) __attribute__ ((__format__ (__printf__, m, n))) ATTRIBUTE_NONNULL(m) ^ ../../gcc-5.3.0/libcc1/../include/libiberty.h:640:55: note: in expansion of macro 'ATTRIBUTE_PRINTF' extern int vasprintf (char **, const char *, va_list) ATTRIBUTE_PRINTF(2,0); ^ In file included from ../../gcc-5.3.0/libcc1/../include/libiberty.h:49:0, from ../../gcc-5.3.0/libcc1/callbacks.cc:24: /gnu/store/hkwl20n5ca87bczjrlv8b8vfm26vcrxy-glibc-bootstrap-0/include/stdio.h:399:12: error: from previous declaration 'int vasprintf(char**, const char*, __va_list_tag*) throw ()' extern int vasprintf (char **__restrict __ptr, const char *__restrict __f, ^ Makefile:442: recipe for target 'callbacks.lo' failed --8<---------------cut here---------------end--------------->8--- My understanding of <https://gcc.gnu.org/install/prerequisites.html> is that GCC 4.8.2 should be enough to build 5.3.0 since it’s a C++98 compiler; is this correct? I noticed that the fix for <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60125> changed ‘check_redeclaration_exception_specification’, which is implements the check leading to this error, and this change is more recent than 4.8.2. Could it explain this error? Thanks, Ludo’.