Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 554376 - =app-text/texlive-core-2014-r4 - .../work/texlive-20140525-source/libs/luajit/: configure: error: Sorry, can not preprocess <lj_arch.h>
Summary: =app-text/texlive-core-2014-r4 - .../work/texlive-20140525-source/libs/luajit...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-09 16:46 UTC by Anthony Basile
Modified: 2017-11-19 11:53 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,100.65 KB, text/plain)
2015-07-09 16:50 UTC, Anthony Basile
Details
config log (config.log,23.33 KB, text/plain)
2015-07-09 16:50 UTC, Anthony Basile
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Basile gentoo-dev 2015-07-09 16:46:42 UTC
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
Comment 1 Anthony Basile gentoo-dev 2015-07-09 16:50:06 UTC
Created attachment 406418 [details]
build.log
Comment 2 Anthony Basile gentoo-dev 2015-07-09 16:50:34 UTC
Created attachment 406420 [details]
config log
Comment 3 Anthony Basile gentoo-dev 2015-07-22 20:00:18 UTC
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.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2015-07-24 06:36:56 UTC
checking how to run the C preprocessor... (cached) hppa2.0-unknown-linux-gnu-gcc -E
configure: error: Sorry, can not preprocess <lj_arch.h>
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2015-07-25 05:05:48 UTC
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?
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2015-07-25 06:26:20 UTC
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. :-\
Comment 7 Alexis Ballier gentoo-dev 2015-07-25 10:44:07 UTC
(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
Comment 8 Alexis Ballier gentoo-dev 2015-07-30 15:55:20 UTC
(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
Comment 9 Anthony Basile gentoo-dev 2015-08-01 11:46:32 UTC
(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?
Comment 10 Anthony Basile gentoo-dev 2015-08-01 11:55:38 UTC
--- 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.
+
Comment 11 Alexis Ballier gentoo-dev 2015-08-01 12:14:04 UTC
(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
Comment 12 Tobias Klausmann (RETIRED) gentoo-dev 2016-05-23 13:23:26 UTC
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?
Comment 13 Anthony Basile gentoo-dev 2016-05-23 15:59:35 UTC
(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.
Comment 14 Jeroen Roovers (RETIRED) gentoo-dev 2016-05-24 13:30:15 UTC
(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.
Comment 15 Tobias Klausmann (RETIRED) gentoo-dev 2016-06-01 15:21:17 UTC
(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.
Comment 16 François Bissey 2017-02-01 20:34:15 UTC
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
Comment 17 François Bissey 2017-02-01 21:02:49 UTC
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.
Comment 18 François Bissey 2017-02-01 22:25:13 UTC
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.
Comment 19 Alexis Ballier gentoo-dev 2017-02-02 08:08:07 UTC
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
Comment 20 Alexis Ballier gentoo-dev 2017-02-02 08:08:33 UTC
closing since this is fixed in 2015+
Comment 21 Rolf Eike Beer archtester 2017-11-19 11:25:30 UTC
sparc is also affected.
Comment 22 Larry the Git Cow gentoo-dev 2017-11-19 11:53:38 UTC
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(+)}