Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Aug 2021 09:09:18 +0200
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Yuri Victorovich <yuri@FreeBSD.org>
Cc:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   Re: git: 331a7419420d - main - math/py-ducc0: Broken on 11
Message-ID:  <zgtp-lqsh-wny@FreeBSD.org>
In-Reply-To: <202108100701.17A71h16065907__7395.58759830601$1628578915$gmane$org@gitrepo.freebsd.org> (Yuri Victorovich's message of "Tue, 10 Aug 2021 07:01:43 GMT")
References:  <202108100701.17A71h16065907__7395.58759830601$1628578915$gmane$org@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Yuri Victorovich <yuri@FreeBSD.org> writes:

> +BROKEN_FreeBSD_11=	ducc.o: file not recognized: File format not recognized

Can you try the following?

diff --git a/math/py-ducc0/Makefile b/math/py-ducc0/Makefile
index b23c22f8736e..215fbe9d45c5 100644
--- a/math/py-ducc0/Makefile
+++ b/math/py-ducc0/Makefile
@@ -10,8 +10,6 @@ COMMENT=	Distinctly Useful Code Collection (DUCC)
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BROKEN_FreeBSD_11=	ducc.o: file not recognized: File format not recognized
-
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pybind11>0:devel/py-pybind11@${PY_FLAVOR}
 
 USES=		python:3.6+
@@ -20,6 +18,11 @@ USE_PYTHON=	distutils autoplist
 
 MAKE_ENV=	DUCC0_OPTIMIZATION=none
 
+.if exists(/usr/bin/ld.lld) && ${/usr/bin/ld:L:tA} != /usr/bin/ld.lld
+# ducc.o: file not recognized: File format not recognized
+LDFLAGS+=	-fuse-ld=lld
+.endif
+
 .include <bsd.port.options.mk>
 
 .if ${ARCH:Mpowerpc64*}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?zgtp-lqsh-wny>