[MacPorts] #55385: ocaml: fails to build on 10.6 and lower

MacPorts noreply at macports.org
Mon Apr 25 16:24:41 UTC 2022


#55385: ocaml: fails to build on 10.6 and lower
---------------------+----------------------
  Reporter:  mojca   |      Owner:  pmetzger
      Type:  defect  |     Status:  reopened
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:
      Port:  ocaml   |
---------------------+----------------------

Comment (by barracuda156):

 Replying to [comment:29 kencu]:
 > PPC may not work out. Fails with clang-3.4 (of course), but fails with
 gcc6 as well. Cause of error not obvious to me.

 PPC code was removed in 4.0.3, so I would be surprised if 4.0.5 would
 build without patching out the wrong Power code to replace it with the one
 borrowed from 4.0.2.

 I am getting the same `ld` error now btw:
 {{{
 /opt/local/bin/gcc-mp-11 -arch ppc -shared
 -flat_namespace -undefined suppress -Wl,-no_compact_unwind
 -read_only_relocs suppress                    -L/opt/local/lib
 -Wl,-headerpad_max_install_names -arch ppc -o libasmrun_shared.so
 startup_aux.npic.o startup_nat.npic.o main.npic.o fail_nat.npic.o
 roots_nat.npic.o signals.npic.o signals_nat.npic.o misc.npic.o
 freelist.npic.o major_gc.npic.o minor_gc.npic.o memory.npic.o alloc.npic.o
 compare.npic.o ints.npic.o floats.npic.o str.npic.o array.npic.o io.npic.o
 extern.npic.o intern.npic.o hash.npic.o sys.npic.o parsing.npic.o
 gc_ctrl.npic.o eventlog.npic.o md5.npic.o obj.npic.o lexing.npic.o
 unix.npic.o printexc.npic.o callback.npic.o weak.npic.o compact.npic.o
 finalise.npic.o custom.npic.o globroots.npic.o backtrace_nat.npic.o
 backtrace.npic.o dynlink_nat.npic.o debugger.npic.o meta.npic.o
 dynlink.npic.o clambda_checks.npic.o afl.npic.o bigarray.npic.o
 memprof.npic.o domain.npic.o skiplist.npic.o codefrag.npic.o
 power_libasmrunpic.o -lm
 ld: relocation used in _caml_system__code_begin from power_libasmrunpic.o
 not allowed in slidable image
 collect2: error: ld returned 1 exit status
 make[3]: *** [libasmrun_shared.so] Error 1
 make[3]: Leaving directory
 `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ocaml/ocaml/work/ocaml-4.14.0/runtime'
 make[2]: *** [makeruntimeopt] Error 2
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/55385#comment:48>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list