libcody
libcody copied to clipboard
Build problem on Solaris 11.3
I encountered this issue when building GCC on Solaris.
For some reason, several of the string related functions like to_string and strtoull require that _GLIBCXX_USE_C99 be defined (at least going by the headers :
/usr/gcc/4.8/include/c++/4.8.2/bits/basic_string.h:#if ((__cplusplus >= 201103L) && defined(_GLIBCXX_USE_C99) \
)
Well, that's annoying. Rainer Orth has reported success bootstrapping gcc on 11.3 (but with a patch he's working on). He didn't report this problem, so I wonder what is different.
I never bought a support package from Oracle. I'm using the "default" GCC, 4.8. More recent GCCs (and clang and the Oracle compiler) are also available (from the pkg install).
This is not a big issue, I don't use Solaris for anything serious these days - just some testing of Valgrind recently.
Hmm. The pkg system shows GCC 7.3 and clang 6.0 as being available, but it won't actually install them.
https://community.oracle.com/tech/apps-infra/discussion/4189748/installing-gcc-7-on-solaris-11-3
And I don't particularly want to buy another island for Larry.