http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58666
Bug ID: 58666 Summary: make install after make bootstrap-lean fails starting with r202895 Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: krebbel at gcc dot gnu.org After bootstrap-lean the installation process tries to rebuild several files with the host GCC and -Werror which fails: /build/gcc-head/gcc/langhooks.c: In function ‘void lhd_print_error_function(diagnostic_context*, const char*, diagnostic_info*)’: /build/gcc-head/gcc/langhooks.c:457:41: error: unknown conversion type character ‘r’ in format [-Werror=format] /build/gcc-head/gcc/langhooks.c:457:41: error: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘const char*’ [-Werror=format] /build/gcc-head/gcc/langhooks.c:457:41: error: unknown conversion type character ‘R’ in format [-Werror=format] /build/gcc-head/gcc/langhooks.c:457:41: error: too many arguments for format [-Werror=format-extra-args] /build/gcc-head/gcc/langhooks.c:462:31: error: unknown conversion type character ‘r’ in format [-Werror=format] /build/gcc-head/gcc/langhooks.c:462:31: error: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘const char*’ [-Werror=format] /build/gcc-head/gcc/langhooks.c:462:31: error: unknown conversion type character ‘R’ in format [-Werror=format] /build/gcc-head/gcc/langhooks.c:462:31: error: too many arguments for format [-Werror=format-extra-args] At global scope: cc1plus: error: unrecognized command line option "-Wno-narrowing" [-Werror] cc1plus: all warnings being treated as errors The output comes from an s390x build but similiar errors can be observed on x86-64: cc1plus: warnings being treated as errors /home/andreas/clean/gcc-head/gcc/attribs.c: In function ‘tree_node* decl_attributes(tree_node**, tree_node*, int)’: /home/andreas/clean/gcc-head/gcc/attribs.c:428: error: unknown conversion type character ‘E’ in format /home/andreas/clean/gcc-head/gcc/attribs.c:428: error: too many arguments for format /home/andreas/clean/gcc-head/gcc/attribs.c:432: error: unknown conversion type character ‘E’ in format /home/andreas/clean/gcc-head/gcc/attribs.c:432: error: unknown conversion type character ‘E’ in format /home/andreas/clean/gcc-head/gcc/attribs.c:432: error: too many arguments for format /home/andreas/clean/gcc-head/gcc/attribs.c:441: error: unknown conversion type character ‘E’ in format /home/andreas/clean/gcc-head/gcc/attribs.c:441: error: too many arguments for format /home/andreas/clean/gcc-head/gcc/attribs.c:473: error: unknown conversion type character ‘E’ in format /home/andreas/clean/gcc-head/gcc/attribs.c:473: error: too many arguments for format /home/andreas/clean/gcc-head/gcc/attribs.c:525: error: unknown conversion type character ‘E’ in format /home/andreas/clean/gcc-head/gcc/attribs.c:525: error: too many arguments for format In file included from /home/andreas/clean/gcc-head/gcc/tree-core.h:27, from /home/andreas/clean/gcc-head/gcc/tree.h:23, from /home/andreas/clean/gcc-head/gcc/attribs.c:24: /home/andreas/clean/gcc-head/gcc/vec.h: In static member function ‘static size_t vec<T, A, vl_embed>::embedded_size(unsigned int) [with T = scoped_attributes, A = va_heap]’: /home/andreas/clean/gcc-head/gcc/vec.h:298: instantiated from ‘static void va_heap::reserve(vec<T, va_heap, vl_embed>*&, unsigned int, bool) [with T = scoped_attributes]’ /home/andreas/clean/gcc-head/gcc/vec.h:1480: instantiated from ‘bool vec<T, A, vl_ptr>::reserve(unsigned int, bool) [with T = scoped_attributes, A = va_heap]’ /home/andreas/clean/gcc-head/gcc/vec.h:1575: instantiated from ‘T* vec<T, A, vl_ptr>::safe_push(const T&) [with T = scoped_attributes, A = va_heap]’ /home/andreas/clean/gcc-head/gcc/attribs.c:143: instantiated from here /home/andreas/clean/gcc-head/gcc/vec.h:1103: error: invalid access to non-static data member ‘vec<scoped_attributes, va_heap, vl_embed>::m_vecdata’ of NULL object /home/andreas/clean/gcc-head/gcc/vec.h:1103: error: (perhaps the ‘offsetof’ macro was used incorrectly) At global scope: cc1plus: error: unrecognized command line option "-Wno-narrowing" make[2]: *** [attribs.o] Error 1 make[2]: Leaving directory `/home/andreas/clean/gcc-head-build/gcc' make[1]: *** [install-gcc] Error 2 make[1]: Leaving directory `/home/andreas/clean/gcc-head-build' make: *** [install] Error 2