Menu

#83 Solaris build failure with gcc-4.3.2

open
Build (12)
5
2010-05-10
2010-05-10
No

Came across this build failure with gcc-4.3.2 toolchain on OpenSolaris. It's not much a problem since gcc-3.4.3 seems to work fine. Reporting it here in case of it's of any interest:

$ uname -a
SunOS eos 5.11 snv_111b i86pc i386 i86pc

$ gcc-4.3.2 -v
Using built-in specs.
Target: i386-pc-solaris2.11
Configured with: ../gcc-4.3.2/configure --prefix=/usr --program-suffix=-4.3.2 --infodir=/usr/share/info --mandir=/usr/share/man --libexecdir=/usr/lib --enable-shared --disable-static --disable-libtool-lock --target= --enable-objc-gc --enable-concept-checks --disable-libada --enable-libssp --enable-languages=c,c++,objc,fortran --enable-threads=posix --enable-tls=yes --with-system-zlib --without-gnu-ld --with-ld=/usr/ccs/bin/ld --with-gnu-as --with-as=/usr/sfw/bin/gas --with-gmp-include=/usr/include/gmp --with-gmp-lib=/usr/lib --with-mpfr-include=/usr/include/mpfr --with-mpfr-lib=/usr/lib --enable-c99 --enable-nls --enable-wchar_t --enable-libstdcxx-allocator=mt --with-pic
Thread model: posix
gcc version 4.3.2 (GCC)

$ gcc-4.3.2 --version
gcc-4.3.2 (GCC) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ p4 diff makefile
...
81,82c81,82
< CC = gcc
< CPPC = g++
---
> CC = gcc-4.3.2
> CPPC = g++-4.3.2
84c84
< LD = g++
---
> LD = g++-4.3.2

$ gmake
g++-4.3.2 -c -Wall -pedantic -Wno-long-long -Wno-unused-value -Wno-non-virtual-dtor -Werror -D_REENTRANT -D_DEBUG -UNDEBUG -Dunix -DFASTFORMAT_NO_IMPLICIT_LINK -I../../include -I/export/home/nstewart/dev/nstewart-eos/sw/pvt/nstewart/FastFormat/stlsoft-1.9.97/include -o core.api.mt.debug.o ../../src/api.cpp
g++-4.3.2 -c -Wall -pedantic -Wno-long-long -Wno-unused-value -Wno-non-virtual-dtor -Werror -D_REENTRANT -D_DEBUG -UNDEBUG -Dunix -DFASTFORMAT_NO_IMPLICIT_LINK -I../../include -I/export/home/nstewart/dev/nstewart-eos/sw/pvt/nstewart/FastFormat/stlsoft-1.9.97/include -o core.fmt_spec_defect_handlers.mt.debug.o ../../src/fmt_spec_defect_handlers.cpp
g++-4.3.2 -c -Wall -pedantic -Wno-long-long -Wno-unused-value -Wno-non-virtual-dtor -Werror -D_REENTRANT -D_DEBUG -UNDEBUG -Dunix -DFASTFORMAT_NO_IMPLICIT_LINK -I../../include -I/export/usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h: In member function ‘void __gnu_cxx::_SameTypeConcept<_Tp1, _Tp2>::__constraints() [with _Tp1 = std::pair<const stlsoft::basic_string_view<char, stlsoft::char_traits<char>, std::allocator<char> >, stlsoft::shared_ptr<fastformat::<unnamed>::pattern_record_t> >, _Tp2 = stlsoft::basic_string_view<char, stlsoft::char_traits<char>, std::allocator<char> >]’:
/usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/stl_map.h:106: instantiated from ‘std::map<stlsoft::basic_string_view<char, stlsoft::char_traits<char>, std::allocator<char> >, stlsoft::shared_ptr<fastformat::<unnamed>::pattern_record_t>, std::less<stlsoft::basic_string_view<char, stlsoft::char_traits<char>, std::allocator<char> > >, std::allocator<stlsoft::basic_string_view<char, stlsoft::char_traits<char>, std::allocator<char> > > >’
../../src/fmt_cache.cpp:291: instantiated from here
/usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h:116: error: no type named ‘_Type’ in ‘struct __gnu_cxx::_Aux_require_same<std::pair<const stlsoft::basic_string_view<char, stlsoft::char_traits<char>, std::allocator<char> >, stlsoft::shared_ptr<fastformat::<unnamed>::pattern_record_t> >, stlsoft::basic_string_view<char, stlsoft::char_traits<char>, std::allocator<char> > >’
gmake: *** [core.fmt_cache.mt.debug.o] Error 1

Discussion