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

Dr. Werner Fink werner at suse.de
Thu Apr 30 17:50:30 CEST 2020


On 2020/04/30 14:20:35 +0200, Dr. Werner Fink wrote:
> On 2020/04/30 13:02:58 +0200, Dr. Werner Fink wrote:
> >  [  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.
> 
> It sems that a ``-D ELFV2i`` in world/libs/luajit/dynasm_flags is missed,
> that is the libs/luajit/m4/lj-system.m4 has to be extended for PPC64
> to set this

The attached patch seems to help

Werner

-- 
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr
-------------- next part --------------
---
 libs/luajit/configure       |    9 +++++++++
 libs/luajit/m4/lj-system.m4 |    8 +++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

--- libs/luajit/configure
+++ libs/luajit/configure	2020-04-30 15:42:15.998038368 +0000
@@ -14300,6 +14300,15 @@ fi
 fi
                 if test "x$LJHOST" = xPS3; then :
   echo '-D PPE -D TOC' >>dynasm_flags
+fi
+                if grep 'LJ_ARCH_PPC_OPD 1' conftest.i >/dev/null 2>&1; then :
+  echo '-D OPD' >>dynasm_flags
+fi
+                if grep 'LJ_ARCH_PPC_OPDENV 1' conftest.i >/dev/null 2>&1; then :
+  echo '-D OPDENV' >>dynasm_flags
+fi
+                if grep 'LJ_ARCH_PPC_ELFV2 1' conftest.i >/dev/null 2>&1; then :
+  echo '-D ELFV2' >>dynasm_flags
 fi ;; #(
   *) :
      ;;
--- libs/luajit/m4/lj-system.m4
+++ libs/luajit/m4/lj-system.m4	2020-04-30 15:42:03.782274022 +0000
@@ -87,7 +87,13 @@ AS_CASE([$LJARCH],
                 AS_IF([grep 'LJ_ARCH_PPC64 ' conftest.i >/dev/null 2>&1],
                       [DASM_ARCH=ppc64])
                 AS_IF([test "x$LJHOST" = xPS3],
-                      [echo '-D PPE -D TOC' >>dynasm_flags])])
+                      [echo '-D PPE -D TOC' >>dynasm_flags])
+                AS_IF([grep 'LJ_ARCH_PPC_OPD 1' conftest.i >/dev/null 2>&1],
+                      [echo '-D OPD' >>dynasm_flags])
+                AS_IF([grep 'LJ_ARCH_PPC_OPDENV 1' conftest.i >/dev/null 2>&1],
+                      [echo '-D OPDENV' >>dynasm_flags])
+                AS_IF([grep 'LJ_ARCH_PPC_ELFV2 1' conftest.i >/dev/null 2>&1],
+                      [echo '-D ELFV2' >>dynasm_flags])])
 
 AS_IF([test "x$build" != "x$host"],
  [AS_CASE([$LJHOST],
-------------- 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/6ee97ceb/attachment.sig>


More information about the tlbuild mailing list.