[Bug 261180] devel/ocaml-opam: does not build on ARM
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 261180] devel/ocaml-opam: does not build on ARM"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 23 Feb 2022 12:37:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261180 --- Comment #12 from Stefan Grundmann <sg2342@googlemail.com> --- after more testing on arm.armv7 and arm64.aarch64 it seems that while the attached patch is not sufficient to fix the build it is a step in the right direction. 1. unmodified devel/ocaml-opam: 1.1 arm64.aarch64 FreeBSD 13 fails: gmake[5]: *** No rule to make target 'aarch64.o', needed by 'libasmrun.a'. 1.2 arm.armv7 FreeBSD 13 fails: gmake[5]: *** No rule to make target 'armv7.o', needed by 'libasmrun.a'. 2. with NOPRECIOUSMAKEVARS=yes in Makefile 2.1 arm64.aarch64 FreeBSD 13 succeeds 2.2 arm.armv7 FreeBSD 13 fails: Makefile:920: *** The native-code compiler is not supported on this platform. 3. with NOPRECIOUSMAKEVARS=yes in Makefile and applied patch 3.1 arm64.aarch64 FreeBSD 13 succeeds 3.2 arm.armv7 FreeBSD 13 fails: ld: error: can't create dynamic relocation R_ARM_ABS32 against symbol: caml_program in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output >>> defined in arm_libasmrunpic.o >>> referenced by arm_libasmrunpic.o:(.text+0x1D0) ld: error: can't create dynamic relocation R_ARM_ABS32 against symbol: Caml_state in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output >>> defined in domain.npic.o >>> referenced by arm_libasmrunpic.o:(.text+0x1D4) ld: error: can't create dynamic relocation R_ARM_ABS32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output >>> defined in arm_libasmrunpic.o >>> referenced by arm_libasmrunpic.o:(.text+0x1D8) ld: error: can't create dynamic relocation R_ARM_ABS32 against symbol: caml_apply2 in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output >>> defined in arm_libasmrunpic.o >>> referenced by arm_libasmrunpic.o:(.text+0x1DC) ld: error: can't create dynamic relocation R_ARM_ABS32 against symbol: caml_apply3 in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output >>> defined in arm_libasmrunpic.o >>> referenced by arm_libasmrunpic.o:(.text+0x1E0) ld: error: can't create dynamic relocation R_ARM_ABS32 against symbol: caml_array_bound_error in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output >>> defined in fail_nat.npic.o >>> referenced by arm_libasmrunpic.o:(.text+0x1E4) cc: error: linker command failed with exit code 1 (use -v to see invocation) gmake[5]: *** [Makefile:311: libasmrun_shared.so] Error 1 -- You are receiving this mail because: You are the assignee for the bug.