[tlbuild] PowerPC 64 and 64le with LuaHBJITTeX on Linux?

Dr. Werner Fink werner at suse.de
Thu Apr 30 13:02:58 CEST 2020


On 2020/04/22 12:59:45 +0200, Johannes Hielscher wrote:
> Am Wed, 22 Apr 2020 10:58:58 +0200
> schrieb "Dr. Werner Fink" <werner at suse.de>:
> 
> > Hi,
> > 
> > my builds are breaking on our PowerPC64 hosts due the revision 7314 
> > of luatex ...  what is wrong with LuaHBJITTeX on Linux used on ppc64
> > and/ot ppc64le?
> 
> Upstream luajit is known to be broken on PPC (not only powerpc-darwin,
> but also Linux on newer full-64bit and little-endian IBM machines),
> with existing fixes [1], but the upstream authors are hesitating to
> merge these [2].
> 
> Hence, it is up to distributors to pull these patches for their own
> luajit packages. Some Linux distros have done so [3], but TeXLive has,
> for now, decided [4] against fiddling within the luajit code and
> disables luajit* until upstream might provide a lower-maintenance
> solution: Karl made [5] the build to look for "powerpc*" within the
> target triplet and disables building luajit-dependent binaries then.
> 
> If you are building SuSE binaries (non-native builds in TL speak), it
> depends on the availability of a distro-shipped luajit package to link
> against that, instead of building luajit from the sources provided by
> the TL repo. Although Debian ppc64el provides luajit, I haven't tried
> this yet on my machine, and at least ./Build doesn't provide a
> --with-system-luajit switch (yet) to make this thing trivial.
> 
> Best,
> Johannes
> 
> 
> [1] https://github.com/openresty/luajit2/pull/77
> [2] https://github.com/LuaJIT/LuaJIT/pull/140
> [3] https://sources.debian.org/patches/luajit/2.1.0~beta3+dfsg-5.1/
> [4] https://tug.org/pipermail/tlbuild/2020q1/004622.html & thread
> [5] TeXLive SVN revisions 54256/54307

The patch for ppc64 of [3] does apply but with this I see see errors

 [  163s] libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../libs/luajit -I../../../libs/luajit/LuaJIT-src/src -DLUAJIT_ENABLE_LUA52COMPAT -DLUAI_HASHLIMIT=6 -DMAP_32BIT=0x40 -U_FORTIFY_SOURCE -fomit-frame-pointer -fno-stack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -D_GNU_SOURCE -std=gnu99 -fno-strict-aliasing -fPIC -Wno-write-strings -Wno-char-subscripts -Wno-unused -Wno-uninitialized -Wno-return-type -Wno-parentheses -Wno-sign-compare -Wno-unprototyped-calls -pipe -MT lj_vm_asm.lo -MD -MP -MF .deps/lj_vm_asm.Tpo -c lj_vm_asm.S  -fPIC -DPIC -o .libs/lj_vm_asm.o                               
 [  163s] buildvm_ppc.dasc: Assembler messages:
 [  163s] buildvm_ppc.dasc:389: Error: syntax error; found `@', expected `,'
 [  163s] buildvm_ppc.dasc:389: Error: junk at end of line: `@plt'
 [  163s] buildvm_ppc.dasc:537: Error: syntax error; found `@', expected `,'
 [  163s] buildvm_ppc.dasc:537: Error: junk at end of line: `@plt'
 [  163s] buildvm_ppc.dasc:2017: Error: syntax error; found `@', expected `,'
 [  163s] buildvm_ppc.dasc:2017: Error: junk at end of line: `@plt'
 [  163s] buildvm_ppc.dasc:2037: Error: syntax error; found `@', expected `,'
 [  163s] buildvm_ppc.dasc:2037: Error: junk at end of line: `@plt'
 [  163s] buildvm_ppc.dasc:2055: Error: syntax error; found `@', expected `,'
 [  163s] buildvm_ppc.dasc:2055: Error: junk at end of line: `@plt'
 [  163s] buildvm_ppc.dasc:2065: Error: syntax error; found `@', expected `,'
 [  163s] buildvm_ppc.dasc:2065: Error: junk at end of line: `@plt'
 [  163s] buildvm_ppc.dasc:2075: Error: syntax error; found `@', expected `,'
 [  163s] buildvm_ppc.dasc:2075: Error: junk at end of line: `@plt'
 [  163s] buildvm_ppc.dasc:2085: Error: syntax error; found `@', expected `,'
 [  163s] buildvm_ppc.dasc:2085: Error: junk at end of line: `@plt'
 [  163s] buildvm_ppc.dasc:2095: Error: syntax error; found `@', expected `,'
 [  163s] buildvm_ppc.dasc:2095: Error: junk at end of line: `@plt'
 [  163s] buildvm_ppc.dasc:2105: Error: syntax error; found `@', expected `,'
 [  163s] buildvm_ppc.dasc:2105: Error: junk at end of line: `@plt'
 [  163s] buildvm_ppc.dasc:2115: Error: syntax error; found `@', expected `,'
 [  163s] buildvm_ppc.dasc:2115: Error: junk at end of line: `@plt'
 [  163s] buildvm_ppc.dasc:2125: Error: syntax error; found `@', expected `,'
 [  163s] buildvm_ppc.dasc:2125: Error: junk at end of line: `@plt'
 [  163s] buildvm_ppc.dasc:2135: Error: syntax error; found `@', expected `,'
 [  163s] buildvm_ppc.dasc:2135: Error: junk at end of line: `@plt'
 [  163s] buildvm_ppc.dasc:2145: Error: syntax error; found `@', expected `,'
 [  163s] buildvm_ppc.dasc:2145: Error: junk at end of line: `@plt'
 [  163s] buildvm_ppc.dasc:2155: Error: syntax error; found `@', expected `,'
 [  163s] buildvm_ppc.dasc:2155: Error: junk at end of line: `@plt'
 [  163s] buildvm_ppc.dasc:2165: Error: syntax error; found `@', expected `,'
 [  163s] buildvm_ppc.dasc:2165: Error: junk at end of line: `@plt'
 [  163s] buildvm_ppc.dasc:2176: Error: syntax error; found `@', expected `,'
 [  163s] buildvm_ppc.dasc:2176: Error: junk at end of line: `@plt'
 [  163s] buildvm_ppc.dasc:2187: Error: syntax error; found `@', expected `,'
 [  163s] buildvm_ppc.dasc:2187: Error: junk at end of line: `@plt'
 [  163s] buildvm_ppc.dasc:2198: Error: syntax error; found `@', expected `,'
 [  163s] buildvm_ppc.dasc:2198: Error: junk at end of line: `@plt'
 [  163s] buildvm_ppc.dasc:2209: Error: syntax error; found `@', expected `,'
 [  163s] buildvm_ppc.dasc:2209: Error: junk at end of line: `@plt'
 [  163s] buildvm_ppc.dasc:2219: Error: syntax error; found `@', expected `,'
 [  163s] buildvm_ppc.dasc:2219: Error: junk at end of line: `@plt'
 [  163s] buildvm_ppc.dasc:2230: Error: syntax error; found `@', expected `,'
 [  163s] buildvm_ppc.dasc:2230: Error: junk at end of line: `@plt'
 [  163s] make[5]: *** [Makefile:1160: lj_vm_asm.lo] Error 1         

It seems that something woes here.

Werner

-- 
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lj_vm_asm.S
Type: text/x-asm
Size: 91205 bytes
Desc: not available
URL: <https://tug.org/pipermail/tlbuild/attachments/20200430/9e59bcf6/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 894 bytes
Desc: not available
URL: <https://tug.org/pipermail/tlbuild/attachments/20200430/9e59bcf6/attachment-0001.sig>


More information about the tlbuild mailing list.