From nobody Sun Aug 04 12:01:31 2024 X-Original-To: dev-commits-ports-main@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 4WcJ7v4Bpvz5SCZ9; Sun, 04 Aug 2024 12:01:31 +0000 (UTC) (envelope-from git@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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WcJ7v2bQYz4QYM; Sun, 4 Aug 2024 12:01:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722772891; 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; bh=I8cMevjQJZgC0bDM70gOBGMkSwV416GaBsCLDUE9TyE=; b=qc4cD8JAl6igv9rIM/aZnAX1COD3UlXqApqar01w0c0W9v0H+FDHFd9A6y9ihfkXi+3wzC kEAt/F2EBfMARHzbB/MgSeE159hJaJUtkzDOLFmo30GGg/OK55E7ulwl/1Ri6ux/bC84Ow wrcM94LZIpmSuO9JcaOI7I94r3yPScadGNk4ctcghmdmpKoqZveRQ32QL+W/RE+9N6wqbc gzNVivGeG0WnrKHakovh3MBhwmNJnnzlGAyhiunTD7Un+VkzstMiQuCtYjRfvPJMR49WNx qfAmjaiMrmV7o5vTXQ5BO6jMm7UxZuqOisx01SqUj5bGrllsieY/+bplfqGwOw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722772891; a=rsa-sha256; cv=none; b=UlzzFqTSvCCrn8ZQb+hcviQlZa31ebZTCgUqwnko78abC6KpivHExt4GTSKAihOieNd0VQ ICE54cw9cENxHQ6ngcKbcLQq/AORYmjaVrWXBFNAye+ZIMKc3wjXu+4sPxxLNuSrnPdQ2+ mw4q28VEVGZscQA7BeXdt6IMSIVnVOfPuVjNDm5FeSX64rVlN5Y/gDMhz3u8EGJrv1s5oY fOKF9y9gvNwtAV0upO6HgeRxeBDB7y/bI5K+46Kv3y2BVa5v1BTTw7aH+O/6MXS6wfLXsb ry84kAO6oHmWrhV2AZBkVQbGv3Fs5xTZc5DaZ2Mmhw2wf80S7OR3haXngoxcLg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722772891; 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; bh=I8cMevjQJZgC0bDM70gOBGMkSwV416GaBsCLDUE9TyE=; b=ai9GHztMcy90FWUr5z520MhZoaQ6Pc7twVm5ynlYBXKRe56uX9xixFlncwP8vVEzntnqWW 80M0qp457Dh+PBrtJkjEns6+fPjzWrghP7w0lUr1WkbAmrIdLxbxUDbR6GRyRMdKqOXaf8 zgVS4ALCcet1FIjgPXatxVx5BYLFPZ1r8gGvNyMWhK8vXK+IDL7VCctTCP0crultQ0su5l hBErKFxoUjIEprOpkRJtLTIYDKFrLVdv/ed9dVeCNOBFOWF82HbYFo1AhrpNKJJxQhflu8 LfgPeUHxfs+l3XIC244DasuDLE1XT5y/oRmVP5D/l6GGrpBFDUdcextORq537w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4WcJ7v24GGztkB; Sun, 4 Aug 2024 12:01:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 474C1VPW013381; Sun, 4 Aug 2024 12:01:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 474C1VWV013378; Sun, 4 Aug 2024 12:01:31 GMT (envelope-from git) Date: Sun, 4 Aug 2024 12:01:31 GMT Message-Id: <202408041201.474C1VWV013378@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: 56ab61c888d5 - main - lang/ocaml: fix build on powerpc List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 56ab61c888d5b384746e7ad639d5ae42ec9a6af9 Auto-Submitted: auto-generated The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=56ab61c888d5b384746e7ad639d5ae42ec9a6af9 commit 56ab61c888d5b384746e7ad639d5ae42ec9a6af9 Author: Piotr Kubaj AuthorDate: 2024-08-02 10:17:33 +0000 Commit: Piotr Kubaj CommitDate: 2024-08-04 12:00:52 +0000 lang/ocaml: fix build on powerpc ld: error: relocation R_PPC_ADDR16_HA cannot be used against symbol 'caml_program'; recompile with -fPIC >>> defined in power_libasmrunpic.o >>> referenced by power_libasmrunpic.o:(caml_start_program) ld: error: relocation R_PPC_ADDR16_LO cannot be used against symbol 'caml_program'; recompile with -fPIC >>> defined in power_libasmrunpic.o >>> referenced by power_libasmrunpic.o:(caml_start_program) ld: error: relocation R_PPC_ADDR16_HA cannot be used against symbol 'caml_apply2'; recompile with -fPIC >>> defined in power_libasmrunpic.o >>> referenced by power_libasmrunpic.o:(caml_callback2_asm) ld: error: relocation R_PPC_ADDR16_LO cannot be used against symbol 'caml_apply2'; recompile with -fPIC >>> defined in power_libasmrunpic.o >>> referenced by power_libasmrunpic.o:(caml_callback2_asm) ld: error: relocation R_PPC_ADDR16_HA cannot be used against symbol 'caml_apply3'; recompile with -fPIC >>> defined in power_libasmrunpic.o >>> referenced by power_libasmrunpic.o:(caml_callback3_asm) ld: error: relocation R_PPC_ADDR16_LO cannot be used against symbol 'caml_apply3'; recompile with -fPIC >>> defined in power_libasmrunpic.o >>> referenced by power_libasmrunpic.o:(caml_callback3_asm) cc: error: linker command failed with exit code 1 (use -v to see invocation) --- lang/ocaml/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lang/ocaml/Makefile b/lang/ocaml/Makefile index 8a00f54773f9..ccfcb3346fe5 100644 --- a/lang/ocaml/Makefile +++ b/lang/ocaml/Makefile @@ -55,6 +55,12 @@ DOCS_DISTFILES= ${DISTNAME:R}-refman-html.tar.gz:docs \ ${DISTNAME:R}-refman.pdf:docs THREADS_CONFIGURE_ENABLE= systhreads +.include + +.if ${ARCH} == powerpc +LLD_UNSAFE= yes +.endif + post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKDIR} && ${COPYTREE_SHARE} htmlman ${STAGEDIR}${DOCSDIR})