Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Feb 2022 12:37:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 261180] devel/ocaml-opam: does not build on ARM
Message-ID:  <bug-261180-7788-uN4KdT12kR@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-261180-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-261180-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261180

--- 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=3Dyes 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 platfor=
m.


3. with NOPRECIOUSMAKEVARS=3Dyes 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 -fP=
IC
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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261180-7788-uN4KdT12kR>