pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Can't build gcc7 on Solaris 10



On Wed, Nov 29, 2017 at 10:49:39PM -0500, Julien Savard wrote:
> I also tried with gcc4.9 and gcc5.2 provided by OpenCSW. This time it fails
> with this error :
> 
> /usr/pkgsrc/lang/gcc7/work/build/./gcc/xgcc
[..]
> /usr/pkg/gcc7/sparc64-sun-solaris2.10/sys-include    -g -std=c99 -O2

That -std=c99 should probably be -std=gnu99

> 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"
>      ^~~~~~~~~~~~~~~~~~~

or that asm should be __asm__ instead.

Martin


Home | Main Index | Thread Index | Old Index