http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46803
Summary: libstdc++ build errors on unknown attributes Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: j...@openbsd.org With OpenBSD/i386 -current and gcc svn it is possible to bootstrap with --enable-languages=c but trying to enable c++ breaks as shown below due to treating unknown attributes as fatal. System compiler used is GCC 4.2.1 gmake[4]: Entering directory `/home/jsg/src/obj/i386-unknown-openbsd4.8/libstdc++-v3' Making all in include gmake[5]: Entering directory `/home/jsg/src/obj/i386-unknown-openbsd4.8/libstdc++-v3/include' mkdir -p ./i386-unknown-openbsd4.8/bits/stdc++.h.gch /home/jsg/src/obj/./gcc/xgcc -shared-libgcc -B/home/jsg/src/obj/./gcc -nostdinc++ -L/home/jsg/src/obj/i386-unknown-openbsd4.8/libstdc++-v3/src -L/home/jsg/src/obj/i386-unknown-openbsd4.8/libstdc++-v3/src/.libs -B/usr/gcc/i386-unknown-openbsd4.8/bin/ -B/usr/gcc/i386-unknown-openbsd4.8/l ib/ -isystem /usr/gcc/i386-unknown-openbsd4.8/include -isystem /usr/gcc/i386-unknown-openbsd4.8/sys-include -x c++-header -nostdinc++ -g -O2 -I/home/jsg/src/obj/i386-unknown-openbsd4.8/libstdc++-v3/include/i386-unknown-openbsd4.8 -I/home/jsg/src/obj/i386-unknown-openbsd4.8/libstdc++ -v3/include -I/home/jsg/src/gcc/libstdc++-v3/libsupc++ -O2 -g -std=gnu++0x /home/jsg/src/gcc/libstdc++-v3/include/precompiled/stdc++.h \ -o i386-unknown-openbsd4.8/bits/stdc++.h.gch/O2ggnu++0x.gch In file included from /usr/include/sys/time.h:346:0, from /usr/include/sys/siginfo.h:130, from /usr/include/sys/signal.h:105, from /usr/include/signal.h:39, from /home/jsg/src/obj/i386-unknown-openbsd4.8/libstdc++-v3/include/csignal:44, from /home/jsg/src/gcc/libstdc++-v3/include/precompiled/stdc++.h:44: /home/jsg/src/obj/./gcc/include-fixed/time.h:125:31: error: '__string__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/time.h:129:31: error: '__minbytes__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/time.h:131:31: error: '__minbytes__' was not declared in this scope In file included from /home/jsg/src/obj/i386-unknown-openbsd4.8/libstdc++-v3/include/cstdio:44:0, from /home/jsg/src/gcc/libstdc++-v3/include/precompiled/stdc++.h:47: /home/jsg/src/obj/./gcc/include-fixed/stdio.h:238:31: error: '__string__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/stdio.h:244:31: error: '__size__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/stdio.h:253:31: error: '__size__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/stdio.h:287:31: error: '__string__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/stdio.h:297:30: error: '__string__' was not declared in this scope In file included from /home/jsg/src/obj/i386-unknown-openbsd4.8/libstdc++-v3/include/cstdlib:67:0, from /home/jsg/src/gcc/libstdc++-v3/include/precompiled/stdc++.h:48: /home/jsg/src/obj/./gcc/include-fixed/stdlib.h:193:31: error: '__string__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/stdlib.h:290:30: error: '__string__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/stdlib.h:293:30: error: '__string__' was not declared in this scope In file included from /home/jsg/src/obj/i386-unknown-openbsd4.8/libstdc++-v3/include/cstring:44:0, from /home/jsg/src/gcc/libstdc++-v3/include/precompiled/stdc++.h:49: /home/jsg/src/obj/./gcc/include-fixed/string.h:72:31: error: '__buffer__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/string.h:73:31: error: '__buffer__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/string.h:75:31: error: '__buffer__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/string.h:76:31: error: '__buffer__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/string.h:78:31: error: '__buffer__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/string.h:88:31: error: '__string__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/string.h:91:31: error: '__string__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/string.h:99:31: error: '__string__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/string.h:103:31: error: '__buffer__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/string.h:109:31: error: '__buffer__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/string.h:110:31: error: '__buffer__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/string.h:112:31: error: '__buffer__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/string.h:123:34: error: '__string__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/string.h:134:31: error: '__string__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/string.h:136:31: error: '__string__' was not declared in this scope In file included from /home/jsg/src/obj/i386-unknown-openbsd4.8/libstdc++-v3/include/i386-unknown-openbsd4.8/bits/gthr-default.h:42:0, from /home/jsg/src/obj/i386-unknown-openbsd4.8/libstdc++-v3/include/i386-unknown-openbsd4.8/bits/gthr.h:162, from /home/jsg/src/obj/i386-unknown-openbsd4.8/libstdc++-v3/include/ext/atomicity.h:34, from /home/jsg/src/obj/i386-unknown-openbsd4.8/libstdc++-v3/include/bits/ios_base.h:41, from /home/jsg/src/obj/i386-unknown-openbsd4.8/libstdc++-v3/include/ios:43, from /home/jsg/src/obj/i386-unknown-openbsd4.8/libstdc++-v3/include/istream:40, from /home/jsg/src/obj/i386-unknown-openbsd4.8/libstdc++-v3/include/sstream:39, from /home/jsg/src/obj/i386-unknown-openbsd4.8/libstdc++-v3/include/complex:47, from /home/jsg/src/obj/i386-unknown-openbsd4.8/libstdc++-v3/include/ccomplex:42, from /home/jsg/src/gcc/libstdc++-v3/include/precompiled/stdc++.h:53: /home/jsg/src/obj/./gcc/include-fixed/unistd.h:99:30: error: '__string__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/unistd.h:100:30: error: '__minbytes__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/unistd.h:117:30: error: '__buffer__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/unistd.h:128:30: error: '__buffer__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/unistd.h:137:30: error: '__string__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/unistd.h:153:30: error: '__string__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/unistd.h:154:30: error: '__minbytes__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/unistd.h:164:31: error: '__minbytes__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/unistd.h:170:31: error: '__string__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/unistd.h:192:33: error: '__string__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/unistd.h:212:31: error: '__string__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/unistd.h:226:31: error: '__string__' was not declared in this scope /home/jsg/src/obj/./gcc/include-fixed/unistd.h:240:31: error: '__string__' was not declared in this scope gmake[5]: *** [i386-unknown-openbsd4.8/bits/stdc++.h.gch/O2ggnu++0x.gch] Error 1