/gentoo/prefix64/bin/bash ../libtool --tag CXX --tag disable-shared --mode=com pile /gentoo/prefix64/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/./gcc/xg cc -shared-libgcc -B/gentoo/prefix64/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work /build/./gcc -nostdinc++ -L/gentoo/prefix64/var/tmp/portage/sys-devel/gcc-7.3.0- r3/work/build/x86_64-pc-solaris2.11/libstdc++-v3/src -L/gentoo/prefix64/var/tmp/ portage/sys-devel/gcc-7.3.0-r3/work/build/x86_64-pc-solaris2.11/libstdc++-v3/src /.libs -L/gentoo/prefix64/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/x86_ 64-pc-solaris2.11/libstdc++-v3/libsupc++/.libs -B/gentoo/prefix64/usr/x86_64-pc- solaris2.11/bin/ -B/gentoo/prefix64/usr/x86_64-pc-solaris2.11/lib/ -isystem /gen too/prefix64/usr/x86_64-pc-solaris2.11/include -isystem /gentoo/prefix64/usr/x86 _64-pc-solaris2.11/sys-include -I/gentoo/prefix64/var/tmp/portage/sys-devel/g cc-7.3.0-r3/work/gcc-7.3.0/libstdc++-v3/../libgcc -I/gentoo/prefix64/var/tmp/por tage/sys-devel/gcc-7.3.0-r3/work/build/x86_64-pc-solaris2.11/libstdc++-v3/includ e/x86_64-pc-solaris2.11 -I/gentoo/prefix64/var/tmp/portage/sys-devel/gcc-7.3.0-r 3/work/build/x86_64-pc-solaris2.11/libstdc++-v3/include -I/gentoo/prefix64/var/t mp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/libstdc++-v3/libsupc++ -I/gento o/prefix64/usr/include -I/gentoo/prefix64/usr/include -prefer-pic -D_GLIBCXX_SHA RED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi -fd iagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-s eed=new_opvant.lo -g -O2 -pipe -std=gnu++1z -c /gentoo/prefix64/var/tmp/portage /sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/libstdc++-v3/libsupc++/new_opvant.cc /gentoo/prefix64/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/libstdc++ -v3/libsupc++/new_opa.cc: In function ‘void* operator new(std::size_t, std::align_val_t)’: /gentoo/prefix64/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/libstdc++-v3/libsupc++/new_opa.cc:103:33: error: ‘aligned_alloc’ was not declared in this scope while (__builtin_expect ((p = aligned_alloc (align, sz)) == 0, false)) ^~~~~~~~~~~~~ /gentoo/prefix64/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/libstdc++-v3/libsupc++/new_opa.cc:103:33: note: suggested alternative: In file included from /usr/include/stdlib.h:39:0, from /gentoo/prefix64/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/x86_64-pc-solaris2.11/libstdc++-v3/include/cstdlib:75, from /gentoo/prefix64/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/build/x86_64-pc-solaris2.11/libstdc++-v3/include/stdlib.h:36, from /gentoo/prefix64/var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/libstdc++-v3/libsupc++/new_opa.cc:27: /usr/include/iso/stdlib_c11.h:60:14: note: ‘std::aligned_alloc’ extern void *aligned_alloc(size_t, size_t); ^~~~~~~~~~~~~ make[5]: *** [Makefile:936: new_opa.lo] Error 1 make[5]: *** Waiting for unfinished jobs....
possibly related https://patchwork.ozlabs.org/patch/768596/
confusingly enough, I've got gcc-7.3.0-r3 installed on Solaris 10 Sparc (emerge started 2018-06-06, finished 2 days later)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=55b666b7769da3eac953b3da83520a3b4f17c870 commit 55b666b7769da3eac953b3da83520a3b4f17c870 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2018-06-27 07:08:59 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2018-06-27 07:08:59 +0000 sys-devel/gcc: fix compilation on >=Solaris-11, bug #657514 Closes: https://bugs.gentoo.org/657514 Package-Manager: Portage-2.3.40.3-prefix, Repoman-2.3.9 sys-devel/gcc/gcc-7.3.0-r3.ebuild | 5 +++++ 1 file changed, 5 insertions(+)