Hi, Po Lu wrote: > I can't build Emacs with Sun C 5.14, on x86_64-pc-solaris2.11: > > cc -m64 -c -g3 -O -I. -I../src -I. -I./../src -o time_rz.o time_rz.c > "time_rz.c", line 45: non-constant enumerator value > cc: acomp failed for time_rz.c > gmake: *** [Makefile:84: time_rz.o] Error 2
I cannot reproduce it. On Solaris 10: $ PATH=/opt/developerstudio12.5/bin:$PATH $ cc -V cc: Studio 12.5 Sun C 5.14 SunOS_i386 2016/05/31 $ CC=cc CXX=CC ./configure && gmake works fine. On Solaris 11: $ PATH=/opt/developerstudio12.5/bin:$PATH $ cc -V cc: Studio 12.5 Sun C 5.14 SunOS_i386 Patch 152236-01 2017/08/14 $ CC=cc CXX=CC ./configure && gmake works fine. $ CC="cc -g3 -O" CXX=CC ./configure && gmake Likewise. Please examine the 'cc -V' output on your side. It looks like you are using a compiler that has not been updated with the available vendor patches. Generally, we cannot support such unpatched software, because we would then have to handle and work around many more bugs than we already have to handle and work around already. Bruno