[tlbuild] Gregorio test failures

Élie Roux elie.roux at telecom-bretagne.eu
Fri Jan 22 15:33:44 CET 2016


Dear Mojca,

(CCing Henry and Jakub, two other gregorio developer)

> It might be prematurely to report build failures, but as I was testing
> the solaris build anyway, I can just as well report the first problem
> now.

For us the sooner the better!

> At the end the build reports
> ./Build:      400 executables in /path/to/texlive/Build/source/inst/bin.
> 
> however it fails when running the tests for gregorio:
> 
> Making check in gregorio
> gmake[3]: Entering directory '/path/to/texlive/Build/source/Work/texk/gregorio'
> gmake  check-TESTS
> gmake[4]: Entering directory '/path/to/texlive/Build/source/Work/texk/gregorio'
> gmake[5]: Entering directory '/path/to/texlive/Build/source/Work/texk/gregorio'
> FAIL: gregorio.test
> ============================================================================
> Testsuite summary for ChkTeX (TeX Live) 4.0.1
> ============================================================================
> # TOTAL: 1
> # PASS:  0
> # SKIP:  0
> # XFAIL: 0
> # FAIL:  1
> # XPASS: 0
> # ERROR: 0
> ============================================================================
> See ./test-suite.log
> Please report to tex-k at tug.org
> ============================================================================
> Makefile:936: recipe for target 'test-suite.log' failed
> gmake[5]: *** [test-suite.log] Error 1
> gmake[5]: Leaving directory '/path/to/texlive/Build/source/Work/texk/gregorio'
> Makefile:1042: recipe for target 'check-TESTS' failed
> gmake[4]: *** [check-TESTS] Error 2
> gmake[4]: Leaving directory '/path/to/texlive/Build/source/Work/texk/gregorio'
> Makefile:1244: recipe for target 'check-am' failed
> gmake[3]: *** [check-am] Error 2
> gmake[3]: Leaving directory '/path/to/texlive/Build/source/Work/texk/gregorio'
> Makefile:479: recipe for target 'check-recursive' failed
> gmake[2]: *** [check-recursive] Error 1
> gmake[2]: Leaving directory '/path/to/texlive/Build/source/Work/texk'
> Makefile:567: recipe for target 'check-recursive' failed
> gmake[1]: *** [check-recursive] Error 1
> gmake[1]: Leaving directory '/path/to/texlive/Build/source/Work'
> Makefile:1023: recipe for target 'world' failed
> gmake: *** [world] Error 2
> + echo 2
> 
> ---------
> 
> Here's the contents from test-suite.log:
> 
> ...
> gregorio-help tests OK
> 
> *** gregorio -o factus.gtex factus.gabc
> the directory ../../../texk/gregorio/gregorio-src/doc for factus.gabc
> does not exist
> *** gregorio -o veni.gtex veni.gabc
> the directory ../../../texk/gregorio/gregorio-src/doc for veni.gabc
> does not exist
> 
> failed tests: gregorio-factus gregorio-veni
> 
> 
> However
>      ../../../texk/gregorio/gregorio-src/doc
> does exist.
> 
> But if I try
> 
> ./gregorio -o factus.gtex
> /path/to/texlive/Build/source/texk/gregorio/gregorio-src/doc/factus.gabc
> 
> it also reports
>     the directory
> /path/to/texlive/Build/source/texk/gregorio/gregorio-src/doc for
> factus.gabc does not exist even if the directory is there.
> 
> I wonder if this is perhaps some kind of "permission problem" (limited
> by kpathsea or some other settings that would prevent the program from
> reading files outside of current directory or something like that).
> (Or if it is only a problem on Solaris? But that would be strange.)

The error message comes from around here:

https://github.com/gregorio-project/gregorio/blob/master/src/gregorio-utils.c#L92

after calling realpath, it might be because Solaris doesn't like the
second argument to be NULL... Gnulibs has an implementations:

http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/canonicalize-lgpl.c;h=1d0bf6553a75740064addb1f760b2363941c765c;hb=HEAD

http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/canonicalize.c;h=900f1a3fc9bc6e4810715d989513dde47c5342c3;hb=HEAD

Maybe we should just install it? Or call with a non-NULL second argument?

> Also, if I try to go a few folders up and then run gregorio, it crashes:
> 
>> ./source/Work/texk/gregorio/gregorio -o factus.gtex /path/to/texlive/Build/source/texk/gregorio/gregorio-src/doc/factus.gabc
> lstat(./gregorio) failed ...
> ./gregorio: No such file or directory
> Assertion failed: ret, file ../../../texk/kpathsea/progname.c, line
> 316, function remove_dots
> Abort (core dumped)

Well, there I have no idea...

Thank you,
-- 
Elie


More information about the tlbuild mailing list