Subject: texlive-2014 fails to build on MIPS

From: Mark H Weaver <[email-masked]>
Date: Sat, 12 Jul 2014 11:03:34 -0400

texlive-2014 contains a copy of luajit which fails its test suite on
MIPS, thus causing the entire build to fail on guix.  Here's the tail of
the build log:

--8<---------------cut here---------------start------------->8---
Making check in luajit
make[2]: Entering directory '/tmp/nix-build-texlive-2014.drv-1/build/libs/luajit'
Making check in .
make[3]: Entering directory '/tmp/nix-build-texlive-2014.drv-1/build/libs/luajit'
make  jittest luajittry \
  luajit.test luajiterr.test
make[4]: Entering directory '/tmp/nix-build-texlive-2014.drv-1/build/libs/luajit'
gcc -DHAVE_CONFIG_H -I. -I../../../texlive-20140525-source/libs/luajit  -Iinclude  -Wall -g -O2 -MT jittest-jittest.o -MD -MP -MF .deps/jittest-jittest.Tpo -c -o jittest-jittest.o `test -f 'jittest.c' || echo '../../../texlive-20140525-source/libs/luajit/'`jittest.c
mv -f .deps/jittest-jittest.Tpo .deps/jittest-jittest.Po
gcc -Wall -g -O2   -o jittest jittest-jittest.o libluajit.a -ldl -lm 
gcc -DHAVE_CONFIG_H -I. -I../../../texlive-20140525-source/libs/luajit  -Iinclude  -Wall -g -O2 -MT LuaJIT-2.0.3/src/luajittry-luajit.o -MD -MP -MF LuaJIT-2.0.3/src/.deps/luajittry-luajit.Tpo -c -o LuaJIT-2.0.3/src/luajittry-luajit.o `test -f 'LuaJIT-2.0.3/src/luajit.c' || echo '../../../texlive-20140525-source/libs/luajit/'`LuaJIT-2.0.3/src/luajit.c
mv -f LuaJIT-2.0.3/src/.deps/luajittry-luajit.Tpo LuaJIT-2.0.3/src/.deps/luajittry-luajit.Po
gcc -Wall -g -O2   -o luajittry LuaJIT-2.0.3/src/luajittry-luajit.o libluajit.a -ldl -lm 
make[4]: Nothing to be done for '../../../texlive-20140525-source/libs/luajit/luajit.test'.
make[4]: Nothing to be done for '../../../texlive-20140525-source/libs/luajit/luajiterr.test'.
make[4]: Leaving directory '/tmp/nix-build-texlive-2014.drv-1/build/libs/luajit'
make  check-TESTS
make[4]: Entering directory '/tmp/nix-build-texlive-2014.drv-1/build/libs/luajit'
make[5]: Entering directory '/tmp/nix-build-texlive-2014.drv-1/build/libs/luajit'
PASS: luajit.test
FAIL: luajiterr.test
make[6]: Entering directory '/tmp/nix-build-texlive-2014.drv-1/build/libs/luajit'
make  all-recursive
make[7]: Entering directory '/tmp/nix-build-texlive-2014.drv-1/build/libs/luajit'
Making all in .
make[8]: Entering directory '/tmp/nix-build-texlive-2014.drv-1/build/libs/luajit'
make[8]: Leaving directory '/tmp/nix-build-texlive-2014.drv-1/build/libs/luajit'
Making all in native
make[8]: Entering directory '/tmp/nix-build-texlive-2014.drv-1/build/libs/luajit/native'
make  all-am
make[9]: Entering directory '/tmp/nix-build-texlive-2014.drv-1/build/libs/luajit/native'
make[9]: Leaving directory '/tmp/nix-build-texlive-2014.drv-1/build/libs/luajit/native'
make[8]: Leaving directory '/tmp/nix-build-texlive-2014.drv-1/build/libs/luajit/native'
Making all in include
make[8]: Entering directory '/tmp/nix-build-texlive-2014.drv-1/build/libs/luajit/include'
make[8]: Leaving directory '/tmp/nix-build-texlive-2014.drv-1/build/libs/luajit/include'
make[7]: Leaving directory '/tmp/nix-build-texlive-2014.drv-1/build/libs/luajit'
make[6]: Leaving directory '/tmp/nix-build-texlive-2014.drv-1/build/libs/luajit'
============================================================================
Testsuite summary for luajit for TeX Live 2.0.3
============================================================================
# TOTAL: 2
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
Please report to [email-masked]
============================================================================
Makefile:1166: recipe for target 'test-suite.log' failed
make[5]: *** [test-suite.log] Error 1
make[5]: Leaving directory '/tmp/nix-build-texlive-2014.drv-1/build/libs/luajit'
Makefile:1272: recipe for target 'check-TESTS' failed
make[4]: *** [check-TESTS] Error 2
make[4]: Leaving directory '/tmp/nix-build-texlive-2014.drv-1/build/libs/luajit'
Makefile:1499: recipe for target 'check-am' failed
make[3]: *** [check-am] Error 2
make[3]: Leaving directory '/tmp/nix-build-texlive-2014.drv-1/build/libs/luajit'
Makefile:1052: recipe for target 'check-recursive' failed
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory '/tmp/nix-build-texlive-2014.drv-1/build/libs/luajit'
Makefile:456: recipe for target 'check-recursive' failed
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory '/tmp/nix-build-texlive-2014.drv-1/build/libs'
Makefile:545: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1
phase `check' failed after 35 seconds
--8<---------------cut here---------------end--------------->8---

Here's the contents of luajiterr.log on Loongson 2F:

--8<---------------cut here---------------start------------->8---
../../../texlive-20140525-source/libs/luajit/luajiterr.test: line 6:  9268 Illegal instruction     ./luajittry -e "error('test')" 2> jiterr.tmp
1,4d0
< ./luajittry: (command line):1: test
< stack traceback:
< 	[C]: in function 'error'
< 	(command line):1: in main chunk
--8<---------------cut here---------------end--------------->8---

On Loongson 3A, it's almost the same except that it's "Bus Error"
instead of "Illegal instruction".

I will investigate further and report back.

     Mark