http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46397
Summary: lto-plugin.c does not build on Solaris 10/SPARC Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: gsean...@gmail.com lto-plugin.c does not build after 166233: make[3]: Entering directory `/var/opt/BUILD/gcc-trunk.2010-11-08/lto-plugin' /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I/var/opt/SOURCES/gcc-trunk/lto-plugin -I/var/opt/SOURCES/gcc-trunk/lto-plugin/../include -DHAVE_CONFIG_H -Wall -Werror -g -fkeep-inline-functions -c -o lto-plugin.lo /var/opt/SOURCES/gcc-trunk/lto-plugin/lto-plugin.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/var/opt/SOURCES/gcc-trunk/lto-plugin -I/var/opt/SOURCES/gcc-trunk/lto-plugin/../include -DHAVE_CONFIG_H -Wall -Werror -g -fkeep-inline-functions -c /var/opt/SOURCES/gcc-trunk/lto-plugin/lto-plugin.c -fPIC -DPIC -o .libs/lto-plugin.o In file included from /var/opt/SOURCES/gcc-trunk/lto-plugin/lto-plugin.c:48: /usr/include/stdbool.h:42:2: #error "Use of <stdbool.h> is valid only in a c99 compilation environment." /var/opt/SOURCES/gcc-trunk/lto-plugin/lto-plugin.c:141: error: syntax error before "debug" /var/opt/SOURCES/gcc-trunk/lto-plugin/lto-plugin.c:141: warning: type defaults to `int' in declaration of `debug' /var/opt/SOURCES/gcc-trunk/lto-plugin/lto-plugin.c:141: warning: data definition has no type or storage class /var/opt/SOURCES/gcc-trunk/lto-plugin/lto-plugin.c:142: error: syntax error before "nop" /var/opt/SOURCES/gcc-trunk/lto-plugin/lto-plugin.c:142: warning: type defaults to `int' in declaration of `nop' /var/opt/SOURCES/gcc-trunk/lto-plugin/lto-plugin.c:142: warning: data definition has no type or storage class /var/opt/SOURCES/gcc-trunk/lto-plugin/lto-plugin.c:151: error: syntax error before "gate" /var/opt/SOURCES/gcc-trunk/lto-plugin/lto-plugin.c: In function `check': /var/opt/SOURCES/gcc-trunk/lto-plugin/lto-plugin.c:153: error: `gate' undeclared (first use in this function) /var/opt/SOURCES/gcc-trunk/lto-plugin/lto-plugin.c:153: error: (Each undeclared identifier is reported only once /var/opt/SOURCES/gcc-trunk/lto-plugin/lto-plugin.c:153: error: for each function it appears in.) /var/opt/SOURCES/gcc-trunk/lto-plugin/lto-plugin.c:157: error: `level' undeclared (first use in this function) /var/opt/SOURCES/gcc-trunk/lto-plugin/lto-plugin.c:157: error: `text' undeclared (first use in this function) /var/opt/SOURCES/gcc-trunk/lto-plugin/lto-plugin.c: In function `parse_table_entry': /var/opt/SOURCES/gcc-trunk/lto-plugin/lto-plugin.c:208: error: `false' undeclared (first use in this function) make[3]: *** [lto-plugin.lo] Error 1 make[3]: Leaving directory `/var/opt/BUILD/gcc-trunk.2010-11-08/lto-plugin' make[2]: *** [all-stage1-lto-plugin] Error 2 make[2]: Leaving directory `/var/opt/BUILD/gcc-trunk.2010-11-08' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/var/opt/BUILD/gcc-trunk.2010-11-08' make: *** [bootstrap] Error 2 It appears to require a C99 compiler which /usr/sfw/bin/gcc (3.4.3) bundled with Solaris 10 does not do by default.