/usr/pkgsrc/lang/gcc7/work/build/./gcc/xgcc -B/usr/pkgsrc/lang/gcc7/work/build/./gcc/ -B/usr/pkg/gcc7/sparc64-sun-solaris2.10/bin/ -B/usr/pkg/gcc7/sparc64-sun-solaris2.10/lib/ -isystem /usr/pkg/gcc7/sparc64-sun-solaris2.10/include -isystem /usr/pkg/gcc7/sparc64-sun-solaris2.10/sys-include -g -std=c99 -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -m32 -O2 -g -std=c99 -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../.././gcc -I../../../../gcc-7.1.0/libgcc -I../../../../gcc-7.1.0/libgcc/. -I../../../../gcc-7.1.0/libgcc/../gcc -I../../../../gcc-7.1.0/libgcc/../include -g0 -finhibit-size-directive -fno-inline -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize -fbuilding-libgcc -fno-stack-protector -I. -I. -I../../.././gcc -I../../../../gcc-7.1.0/libgcc -I../../../../gcc-7.1.0/libgcc/. -I../../../../gcc-7.1.0/libgcc/../gcc -I../../../../gcc-7.1.0/libgcc/../include -o gmon.o -MT gmon.o -MD -MP -MF gmon.dep -fPIC -fPIC -c ../../../../gcc-7.1.0/libgcc/config/sol2/gmon.c
../../../../gcc-7.1.0/libgcc/config/sol2/gmon.c:299:5: error: expected declaration specifiers or '...' before string constant
asm(".global _mcount\n"
^~~~~~~~~~~~~~~~~~~~
gmake[5]: *** [gmon.o] Error 1
gmake[5]: Leaving directory `/usr/pkgsrc/lang/gcc7/work/build/sparc64-sun-solaris2.10/sparcv8plus/libgcc'
gmake[4]: *** [multi-do] Error 1
gmake[4]: Leaving directory `/usr/pkgsrc/lang/gcc7/work/build/sparc64-sun-solaris2.10/libgcc'
gmake[3]: *** [all-multi] Error 2
gmake[3]: Leaving directory `/usr/pkgsrc/lang/gcc7/work/build/sparc64-sun-solaris2.10/libgcc'
gmake[2]: *** [all-stage1-target-libgcc] Error 2
gmake[2]: Leaving directory `/usr/pkgsrc/lang/gcc7/work/build'
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory `/usr/pkgsrc/lang/gcc7/work/build'
gmake: *** [all] Error 2
*** Error code 2
Stop.
bmake[1]: stopped in /usr/pkgsrc/lang/gcc7
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/lang/gcc7