On Tue, Oct 28, 2014 at 10:35 AM, Jakub Jelinek <ja...@redhat.com> wrote: > On Tue, Oct 28, 2014 at 09:36:45AM +0100, Uros Bizjak wrote: >> > This patch has now been committed. >> >> Also breaks bootstap on x86_64-linux-gnu, CentOS 5.11: > > For -Werror, I'd think that should fix that, WARN_FLAGS should > already contain -Werror during stage2/stage3 unless --disable-werror. > Untested though.
No, it still fails, although with one -Werror less in the compile flags: gmake[4]: Entering directory `/home/uros/gcc-build/libcc1' /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../gcc-svn/trunk/libcc1 -I ../../gcc-svn/trunk/libcc1/../include -I ../../gcc-svn/trunk/libcc1/../libgcc -I .././gcc -I../../gcc-svn/trunk/libcc1/../gcc -I ../../gcc-svn/trunk/libcc1/../gcc/c -I ../../gcc-svn/trunk/libcc1/../gcc/c-family -I ../../gcc-svn/trunk/libcc1/../libcpp/include -W -Wall -Werror -fvisibility=hidden -g -MT plugin.lo -MD -MP -MF .deps/plugin.Tpo -c -o plugin.lo ../../gcc-svn/trunk/libcc1/plugin.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../gcc-svn/trunk/libcc1 -I ../../gcc-svn/trunk/libcc1/../include -I ../../gcc-svn/trunk/libcc1/../libgcc -I .././gcc -I../../gcc-svn/trunk/libcc1/../gcc -I ../../gcc-svn/trunk/libcc1/../gcc/c -I ../../gcc-svn/trunk/libcc1/../gcc/c-family -I ../../gcc-svn/trunk/libcc1/../libcpp/include -W -Wall -Werror -fvisibility=hidden -g -MT plugin.lo -MD -MP -MF .deps/plugin.Tpo -c ../../gcc-svn/trunk/libcc1/plugin.cc -fPIC -DPIC -o .libs/plugin.o cc1plus: warnings being treated as errors ../../gcc-svn/trunk/libcc1/../gcc/hash-table.h: In instantiation of ‘hash_table<pointer_hash<tree_node>, xcallocator, true>’: ../../gcc-svn/trunk/libcc1/plugin.cc:171: instantiated from here ../../gcc-svn/trunk/libcc1/../gcc/hash-table.h:1161: warning: lowering visibility of ‘void gt_ggc_mx(hash_table<T, xcallocator, storage_tester<T,void>::value>*) [with T = T, Descriptor = pointer_hash<tree_node>, Allocator = xcallocator]’ to match its type ../../gcc-svn/trunk/libcc1/../gcc/hash-table.h:1162: warning: lowering visibility of ‘void gt_pch_nx(hash_table<T, xcallocator, storage_tester<T,void>::value>*) [with T = T, Descriptor = pointer_hash<tree_node>, Allocator = xcallocator]’ to match its type ../../gcc-svn/trunk/libcc1/../gcc/hash-table.h:1166: warning: lowering visibility of ‘void gt_pch_nx(hash_map<T, U, V>*, void (*)(void*, void*), void*) [with T = T, U = U, V = V, Descriptor = pointer_hash<tree_node>, Allocator = xcallocator]’ to match its type ../../gcc-svn/trunk/libcc1/../gcc/hash-table.h:1169: warning: lowering visibility of ‘void gt_pch_nx(hash_set<T, U>*, void (*)(void*, void*), void*) [with T = T, U = U, Descriptor = pointer_hash<tree_node>, Allocator = xcallocator]’ to match its type ../../gcc-svn/trunk/libcc1/../gcc/hash-table.h:1171: warning: lowering visibility of ‘void gt_pch_nx(hash_table<T, xcallocator, storage_tester<T,void>::value>*, void (*)(void*, void*), void*) [with T = T, Descriptor = pointer_hash<tree_node>, Allocator = xcallocator]’ to match its type gmake[4]: *** [plugin.lo] Error 1 gmake[4]: Leaving directory `/home/uros/gcc-build/libcc1' gmake[3]: *** [all] Error 2 gmake[3]: Leaving directory `/home/uros/gcc-build/libcc1' gmake[2]: *** [all-stage1-libcc1] Error 2 gmake[2]: Leaving directory `/home/uros/gcc-build' gmake[1]: *** [stage1-bubble] Error 2 gmake[1]: Leaving directory `/home/uros/gcc-build' gmake: *** [all] Error 2 I wonder if at this point just compiled gcc/xg++ and not system compiler should be used? Uros.