texlive-core-2014 introduced a bundled luajit which does not have support for ppc64. The build ends with checking for library containing dlopen... (cached) -ldl checking for _LARGEFILE_SOURCE value needed for large files... (cached) no checking how to run the C preprocessor... (cached) powerpc64-unknown-linux-gnu-gcc -E configure: error: Sorry, can not preprocess <lj_arch.h> === configuring in luajit failed and from /var/tmp/portage/app-text/texlive-core-2014-r4/work/texlive-core-2014_build/libs/luajit/config.log we see that In file included from conftest.c:12:0: /var/tmp/portage/app-text/texlive-core-2014-r4/work/texlive-20140525-source/libs/luajit/LuaJIT-2.0.3/src/lj_arch.h:331:2: error: #error "No support for PowerPC 64 bit mode" #error "No support for PowerPC 64 bit mode" ^ full logs are attached below. Note that <app-text/texlive-core-2014 is not affected. Reproducible: Always
Created attachment 406418 [details] build.log
Created attachment 406420 [details] config log
luajit is also not supported on mips. The easiest way to deal with this is to --disable-luatex during configuration. I'm not sure what the consequences of that would be so I'll defer to the TeX herd.
checking how to run the C preprocessor... (cached) hppa2.0-unknown-linux-gnu-gcc -E configure: error: Sorry, can not preprocess <lj_arch.h>
Is it possible to introduce a USE flag for --disable-luajittex and will texlive then use LuaTeX instead, or would this disable features we actually need?
This is a summary of all `failed' messages: `luajittex -ini -jobname=luajittex -progname=luajittex luatex.ini' failed * ERROR: dev-texlive/texlive-basic-2014::gentoo failed (compile phase): * failed to build format texmf-dist/fmtutil/format.texlive-basic.cnf I guess not. :-\
(In reply to Jeroen Roovers from comment #5) > Is it possible to introduce a USE flag for --disable-luajittex and will > texlive then use LuaTeX instead, or would this disable features we actually > need? there is some discussion about it on bug #542620
(In reply to Alexis Ballier from comment #7) > (In reply to Jeroen Roovers from comment #5) > > Is it possible to introduce a USE flag for --disable-luajittex and will > > texlive then use LuaTeX instead, or would this disable features we actually > > need? > > there is some discussion about it on bug #542620 luajittex is now optional in texlive; feel free to mask it on your profiles however, i've done this only for texlive 2015: I don't feel like introducing such a possibly breaking change to the now stable texlive 2014
(In reply to Alexis Ballier from comment #8) > (In reply to Alexis Ballier from comment #7) > > (In reply to Jeroen Roovers from comment #5) > > > Is it possible to introduce a USE flag for --disable-luajittex and will > > > texlive then use LuaTeX instead, or would this disable features we actually > > > need? > > > > there is some discussion about it on bug #542620 > > luajittex is now optional in texlive; feel free to mask it on your profiles > > however, i've done this only for texlive 2015: I don't feel like introducing > such a possibly breaking change to the now stable texlive 2014 I can live with this on ppc64 and mips. But I thought you were going to just add this to a 2014-r5. Anyhow my original need for 2014 was in amd64 and that's done. We can revisit this for ppc64, mips and any other arches where luajit isn't supported when we go to stabilize 2015. Maybe leave this bug open until then so we don't forget?
--- ChangeLog 2015-05-24 17:52:42.019382998 -0400 +++ ChangeLog.new 2015-08-01 07:52:52.366689756 -0400 @@ -2,6 +2,9 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Header: /var/cvsroot/gentoo-x86/profiles/arch/mips/ChangeLog,v 1.162 2015/05/24 04:32:58 mattst88 Exp $ + 01 Aug 2015; Anthony G. Basile <blueness@gentoo.org> use.mask: + use.mask USE=luajittex. There is no luajit support on mips. Bug #554376. + --- ChangeLog 2015-07-25 12:11:55.454819722 -0400 +++ ChangeLog.new 2015-08-01 07:57:17.034677071 -0400 @@ -2,6 +2,10 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Header: /var/cvsroot/gentoo-x86/profiles/arch/powerpc/ChangeLog,v 1.342 2015/07/25 15:41:19 floppym Exp $ + 01 Aug 2015; Anthony G. Basile <blueness@gentoo.org> ppc64/64ul/use.mask: + use.mask USE=luajittex. There is no luajit support on ppc64/64ul. Bug + #554376. +
(In reply to Anthony Basile from comment #9) > (In reply to Alexis Ballier from comment #8) > > (In reply to Alexis Ballier from comment #7) > > > (In reply to Jeroen Roovers from comment #5) > > > > Is it possible to introduce a USE flag for --disable-luajittex and will > > > > texlive then use LuaTeX instead, or would this disable features we actually > > > > need? > > > > > > there is some discussion about it on bug #542620 > > > > luajittex is now optional in texlive; feel free to mask it on your profiles > > > > however, i've done this only for texlive 2015: I don't feel like introducing > > such a possibly breaking change to the now stable texlive 2014 > > I can live with this on ppc64 and mips. But I thought you were going to > just add this to a 2014-r5. > > Anyhow my original need for 2014 was in amd64 and that's done. We can > revisit this for ppc64, mips and any other arches where luajit isn't > supported when we go to stabilize 2015. > > Maybe leave this bug open until then so we don't forget? yes
Sorry, late to the party, but this also affects alpha. I'll add the USE-mask in a minute. Am I right in assuming that bug 550840 is irrelevant for the non-amd64 archs now?
(In reply to Tobias Klausmann from comment #12) > Sorry, late to the party, but this also affects alpha. I'll add the USE-mask > in a minute. > > Am I right in assuming that bug 550840 is irrelevant for the non-amd64 archs > now? I think we still want these packages stabilized on non-amd64 arches, we just have to mask luajittex on those arches.
(In reply to Tobias Klausmann from comment #12) > Sorry, late to the party, but this also affects alpha. I'll add the USE-mask > in a minute. That doesn't help much as the USE flag was introduced in texlive-core-2015.ebuild.
(In reply to Anthony Basile from comment #13) > (In reply to Tobias Klausmann from comment #12) > > Sorry, late to the party, but this also affects alpha. I'll add the USE-mask > > in a minute. > > > > Am I right in assuming that bug 550840 is irrelevant for the non-amd64 archs > > now? > > I think we still want these packages stabilized on non-amd64 arches, we just > have to mask luajittex on those arches. But the 2014 series doesn't have that USE flag and the other bug indicates that they never will.
Hi, I am working on a ppc64 RAP prefix and I am still suffering from this with texlive-core-2016. `--disable-luajittex` is properly passed to configure but the logic to disable it is subtly broken, probably because there two names `luajit
Hi, I am working on a ppc64 RAP prefix and I am still suffering from this with texlive-core-2016. `--disable-luajittex` is properly passed to configure but the logic to disable it is subtly broken, probably because there two names `luajit` and `luajittex`. In particular there is `need_luajit` frb15@p7login-c /dev/shm/portage/app-text/texlive-core-2016/work/texlive-20160523-source $ grep -r need_luajit * configure: need_luajit=yes configure: need_luajit=yes libs/configure: need_luajit=yes libs/configure: need_luajit=yes libs/configure: test "x$with_system_luajit" != xyes && test "x$need_luajit" = xyes && MAKE_SUBDIRS="luajit $MAKE_SUBDIRS" texk/web2c/configure: need_luajit=yes texk/web2c/configure: need_luajit=yes texk/configure: need_luajit=yes texk/configure: need_luajit=yes utils/configure: need_luajit=yes utils/configure: need_luajit=yes There is no mechanism to flip it to `no`. And in `libs/configure` that variable will put the luajit directory in MAKE_SUBDIRS. The logic ending with `need_luajit=yes` is very hard to decipher.
Found it! In texlive-core-2016 at least it is not enough to pass `--disable-luajittex` to disable luajit. You also need to pass `--disable-mfluajit`. Doing so I was able to merge texlive-core-2016 on ppc64.
commit bddcf1c4a7f3e7ff2a3345c5f8f3a4456d1008a0 Author: Alexis Ballier <aballier@gentoo.org> Date: Thu Feb 2 09:07:28 2017 +0100 app-text/texlive-core: disable mfluajit with luajittex too, bug #554376 by Francois Bissey. thanks
closing since this is fixed in 2015+
sparc is also affected.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc43b7b90cbf5438d19ed8d73edc3b939456b2ea commit fc43b7b90cbf5438d19ed8d73edc3b939456b2ea Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2017-11-19 11:52:19 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2017-11-19 11:53:29 +0000 arch/sparc/use.mask: mask USE=liajit and USE=luajittex, bug #554376 Bug: https://bugs.gentoo.org/554376 Reported-by: Rolf Eike Beer Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> profiles/arch/sparc/use.mask | 5 +++++ 1 file changed, 5 insertions(+)}