This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
-fno-rtti in configure.ac breaks building go? (older g++, -disable-bootstrap)
- From: Jay K <jay dot krell at cornell dot edu>
- To: gcc <gcc at gcc dot gnu dot org>
- Date: Sat, 19 May 2012 03:53:45 +0000
- Subject: -fno-rtti in configure.ac breaks building go? (older g++, -disable-bootstrap)
/src/gcc-4.7.0/configure -disable-bootstrap -enable-languages=go
book2:gccgo-4.7 jay$ g++ -v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5493~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5493)
a lot of:
/usr/include/c++/4.0.0/tr1/functional_iterate.h:912: error: cannot use typeid with -fno-rtti
/src/gcc-4.7.0/gcc/go/gofrontend/string-dump.h: At global scope:
gcc/configure.ac:
# Disable exceptions and RTTI if building with g++
ACX_PROG_CC_WARNING_OPTS(
?? ?m4_quote(m4_do([-fno-exceptions -fno-rtti])), [noexception_flags])
Maybe best to just leave the default flags? Maybe just remove this snippet?
Or maybe this is
?- meant for otherwise C code? Slightly optimize it??
?- meant to reduce memory/disk use and let things work that otherwise fail?
? i.e. on older hosts and/or with older g++?
?
?
Yeah yeah, I'll try without -disable-bootstrap.
If that fails though, I'll try removing those lines from configure/configure.ac.
Thank you,
? - Jay