From nobody Wed Feb 23 12:37:48 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7B2C519C87C2 for ; Wed, 23 Feb 2022 12:37:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K3bCx2MpNz3NkR for ; Wed, 23 Feb 2022 12:37:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 315E51843A for ; Wed, 23 Feb 2022 12:37:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 21NCbnBg029619 for ; Wed, 23 Feb 2022 12:37:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 21NCbnSB029618 for ports-bugs@FreeBSD.org; Wed, 23 Feb 2022 12:37:49 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 261180] devel/ocaml-opam: does not build on ARM Date: Wed, 23 Feb 2022 12:37:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: sg2342@googlemail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645619869; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Vvz7uCjn701XeKd0GU0HfyTrI9z3SAQfezgT270MoB8=; b=Q1rVqRdJGj3Hh3p17ae0rC7N45yzpMKZlJjtBNhG+7F/zL3zfuUwwcDneda1mD9dLkwvyL /YiF4lA0nQf4dXt2Ba15W7nJrfH9CGQLNDdwtqwhaOFudH3SQlmObkCMQu9v4YHJv41PCj Vj+WQQjLPsFVYmB8MXzqkdMjx1K34vTbYZCqoUsuxtbzrNNaIvUcRY9nG9wi1y8W58EkKa NHEsKPK2pxCd+n2ObQ4lYvc/AlRTpehtueE7DTQe8yST6794Gh8RfjZbAm+Dy5aj6RAOaw WV8CkO2bs4xnEpEsBnvRj6WrthNB6qWQoRWuiwxqissrFkUqVa/yId3YtX56NA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645619869; a=rsa-sha256; cv=none; b=cdHxDv3K00OEcbcvHmikDZUEwtuGPRmsoYXTmIi6njb7uicrgamQg5TPllwdK/jIMLF6Ra SuIBD8i803H0SQbx9R98frufFVIJATq7MJHJIZPLkQKeQ5c9Rfby1XSIlAfnYsMZJoNU6A bjlEQhOm84WE+bvSyD+BmZjus0NNK/5CsbDiYbjxmfimO1+8L87SJiLNM0bScSXiapFLmT k8xZVs7EFcRd8Dc/Dwz2R0nc6fioDRuHxOyzCQyRX0+ZiuVnWZNs+zjOkufNBy1EEmUzn6 Xvbnl42wyBiDPXQkVTTg4fQNgIehV46wanxXiHdtNaUpQllCpNr/2JhAOH4MnA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261180 --- Comment #12 from Stefan Grundmann --- 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.=