Hi! while compiling luatex on sparc sun solaris using sun studio 11 compiler, i discovered two more problems, and attached a small patch. it appears that the test for the __sun__ macro only works on sun when using gcc; when using sun studio, one should look for __sun instead (i.e. __sun__ is defined in gcc, and is undefined in sun studio compiler). attached patch fixes compilation problems which arise because of incorrect detection of the platform. please apply to texlive repository too. (another small problem is that libs/luafontforge/fontforge/fontforge/Makefile compiles splinerefigure.o without passing CFLAGS, striving to remove possible optimization settings, but CFLAGS is not only used for passing optimization options, but e.g. to select the target instruction set: e.g. -xarch=v8, and removing CFLAGS compiles to the wrong target instruction set, making the luatex executable which links with this file wrong; i worked around this by setting the XCFLAGS to -xarch=v8, which is used to compile splinerefigure.o). Best, v.
Vladimir Volovich wrote:
Hi!
while compiling luatex on sparc sun solaris using sun studio 11 compiler, i discovered two more problems, and attached a small patch.
it appears that the test for the __sun__ macro only works on sun when using gcc; when using sun studio, one should look for __sun instead (i.e. __sun__ is defined in gcc, and is undefined in sun studio compiler).
attached patch fixes compilation problems which arise because of incorrect detection of the platform.
please apply to texlive repository too.
Done and done, thanks.
(another small problem is that libs/luafontforge/fontforge/fontforge/Makefile compiles splinerefigure.o without passing CFLAGS, striving to remove possible optimization settings, but CFLAGS is not only used for passing optimization options, but e.g. to select the target instruction set: e.g. -xarch=v8, and removing CFLAGS compiles to the wrong target instruction set, making the luatex executable which links with this file wrong; i worked around this by setting the XCFLAGS to -xarch=v8, which is used to compile splinerefigure.o).
I see the problem, but I don't know if it is possible to fix this. I would not trust other optimizers any more that gcc's ... Best wishes, Taco
participants (2)
-
Taco Hoekwater
-
Vladimir Volovich