[tlbuild] dvisvgm

Mojca Miklavec mojca.miklavec.lists at gmail.com
Fri Feb 10 09:13:12 CET 2017


On 4 February 2017 at 21:03, Richard M. Koch wrote:
>
> This morning I sent your patches to Karl, and he added them to TeX Live so I could
> test without worrying about autoreconf.
>
> The binaries now compile without error

I tried to compile revision 43176 on i386 solaris with gcc 5.2 without success.

In file included from
../../../../../../texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/fontforge.h:36:0,
                 from
../../../../../../texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/fontforgevw.h:30,
                 from
../../../../../../texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/asmfpst.c:27:
/opt/csw/include/libintl.h:152:14: error: expected identifier or '('
before 'const'
 extern char *dgettext (const char *__domainname, const char *__msgid)
              ^
In file included from /usr/include/locale.h:50:0,
                 from
../../../../../../texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/splinefont.h:41,
                 from
../../../../../../texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/fontforge.h:37,
                 from
../../../../../../texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/fontforgevw.h:30,
                 from
../../../../../../texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/asmfpst.c:27:
/opt/csw/include/libintl.h:262:8: error: expected identifier or '('
before '__asm__'
        _INTL_ASM (libintl_textdomain);
        ^
/opt/csw/include/libintl.h:280:8: error: expected identifier or '('
before '__asm__'
        _INTL_ASM (libintl_bindtextdomain);
        ^
/opt/csw/include/libintl.h:299:8: error: expected identifier or '('
before '__asm__'
        _INTL_ASM (libintl_bind_textdomain_codeset);
        ^
In file included from
../../../../../../texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/fontforge.h:37:0,
                 from
../../../../../../texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/fontforgevw.h:30,
                 from
../../../../../../texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/asmfpst.c:27:
../../../../../../texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/splinefont.h:2569:39:
error: unknown type name 'locale_t'
 static inline void switch_to_c_locale(locale_t * tmplocale_p,
locale_t * oldlocale_p) {
                                       ^
../../../../../../texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/splinefont.h:2569:63:
error: unknown type name 'locale_t'
 static inline void switch_to_c_locale(locale_t * tmplocale_p,
locale_t * oldlocale_p) {
                                                               ^
../../../../../../texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/splinefont.h:2584:41:
error: unknown type name 'locale_t'
 static inline void switch_to_old_locale(locale_t * tmplocale_p,
locale_t * oldlocale_p) {
                                         ^
../../../../../../texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/splinefont.h:2584:65:
error: unknown type name 'locale_t'
 static inline void switch_to_old_locale(locale_t * tmplocale_p,
locale_t * oldlocale_p) {
                                                                 ^
gmake[7]: *** [Makefile:649: fontforge/asmfpst.o] Error 1


> and pass all tests. I get 406 executables.

Just curious: are the tests the same as "tests" in TeX Live?
That is: those in source/texk/dvisvgm/dvisvgm-src/tests?

I guess not, but I ask just in case.

I strongly suspect that I'm dealing with some compiler bugs on OS X because:
- the tests included in dvisvgm all pass when using gcc6
- I get 7 test failures when setting CXXFLAGS to "-Os" and only three
when using "-g" (unless Martin changed something very recently, I
didn't do the cross-check yet as compiling takes too long)
- I looked at the code that fails and it's some pretty basic code; in
the test the code was unable to read from streams (without actually
doing anything with the data)
- I was testing on an older box, but there was another tested with a
newer macOS and different tests failed for him that for me.

I was testing with clang 3.9 and gcc 6.3.

Mojca


More information about the tlbuild mailing list