From nobody Thu May 18 08:20:42 2023 X-Original-To: dev-commits-ports-all@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 4QMNG24tM4z3bN4W; Thu, 18 May 2023 08:20:42 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QMNG24Jfqz3LJy; Thu, 18 May 2023 08:20:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684398042; 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=bZbbTZCR/1UiS5dPbupvKHTiwB4FlGk3MtkeF6H9FYw=; b=OYPiV8ycUKaAzWNFVxYPhvua0nYirxk3qMprXFWMV5X1vvpdiMcq3Mc5AqKWautfnrcDzU TZKxUOPWA+nTHGESHqQ2Edx2mXdCg5ihhJ0XCUqwJMIfgOAs140U6daR7YmXY/kC9xBLlp c0F4dBK/Zs8GGo/X862Bf+TJ/xfRj0hyya8Ca9ark315MX2fpi42FfcNWZXtgkMG9u/fo5 kmgtBbTN2tzXA9UI2osUgpbPnYhfhoc4aHuzDGDJnTPcNDUL4+WSUMPIMyjzqErsFGn129 fm6IL4zPpsoko9dznc/WFC630UggVhkC0iudtYe/etP/dfOLTdjpTpuL3F2gng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684398042; 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=bZbbTZCR/1UiS5dPbupvKHTiwB4FlGk3MtkeF6H9FYw=; b=WQUkyxSeFUP0b3EpGlZ9k6YKYL0I1DX4ejrRShjcPZ8l7ASH8CxF/xnYwjggsGmb8eOpTk oPniXBYk8TR21/FcU9wV8yDleMDbID/PExTMCmVcareShez7i31/KQfBqilFp2UHkSvm6T zyilWsCLxwKG6I1MWe0u5M2s5oALG65bL4HX5yvC0ncUCXgHnj0dTb6XZ8oMmPyw+bHtig VnVXAgJ1jetB9EybeWwvz8LVwxpHQcpZjrs/K+thfNIEtsv66+iEZatTKjSmL0E0w42h0s 8w4O2aY6sGd1LL8pRkBqwN7MMMDXF8sdwJ/e7QITKfd5m5l3PLk1ZoJr7Z+Rkg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684398042; a=rsa-sha256; cv=none; b=CRbr3bbVWsYyN1HhSudqSJgnWVqGSk6FXYu6egJq67/nmWJlJGhzHqIADXWwZoBfWPN/FG zquscgKtHyVMRl5QVp+ugo38/sy+hBAGvIiHMYm9qCqr7pP/ME3dyjZjDZFW2nhzIhV3tI G0sMW/2BTpJvCZZozPU4L/DXZBtJiaS5HwIRsIEFoSi98pnNiEaWZY8YTr7Ak1jz2PDdU2 SrEOXfHj9KSKNmRRxsB1HTlExlw3YT7hFeZhF6fsXpvXu/f5ceyc+Qifawt5y+uXNvAI5f wFItobZGWqhAEwgqZcHoNXFoRJkiQHTvXvKGTZ0ZLJnPHrafe1KJRJoIjdefBw== 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 4QMNG23BCGzdXS; Thu, 18 May 2023 08:20:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 34I8KgBZ056664; Thu, 18 May 2023 08:20:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34I8KgeC056663; Thu, 18 May 2023 08:20:42 GMT (envelope-from git) Date: Thu, 18 May 2023 08:20:42 GMT Message-Id: <202305180820.34I8KgeC056663@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Robert Clausecker Subject: git: 9fb2d7b2e747 - main - emulators/mame: fix build on armv7 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9fb2d7b2e7473d6bf8bb18d5e457ed4c7ac933df Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=9fb2d7b2e7473d6bf8bb18d5e457ed4c7ac933df commit 9fb2d7b2e7473d6bf8bb18d5e457ed4c7ac933df Author: Robert Clausecker AuthorDate: 2023-05-16 23:36:32 +0000 Commit: Robert Clausecker CommitDate: 2023-05-18 08:19:48 +0000 emulators/mame: fix build on armv7 Mame fails to link on armv7 due to an address space exhaustion in lld. As a bandaid, tell lld to not generate symbols. This frees up enough address space to make mame link. PR: 271374 MFH: 2023Q2 Approved by: agh@riseup.net (maintainer) --- emulators/mame/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/emulators/mame/Makefile b/emulators/mame/Makefile index aebdb69da8a3..d13f1e2cc8dd 100644 --- a/emulators/mame/Makefile +++ b/emulators/mame/Makefile @@ -84,6 +84,9 @@ MAKE_ENV+= DEBUG="1" \ OPTIMIZE="0" \ PROFILER="1" \ SYMBOLS="1" +.else +# avoid address space exhaustion in linker on armv7 +LDFLAGS+= -s .endif .if ${ARCH} == amd64 || ${ARCH:Mpowerpc64*} @@ -160,11 +163,11 @@ post-patch: s| .(ARCH)||g' \ ${WRKSRC}/makefile \ ${GENIE}/build/gmake.bsd/genie.make - @${REINPLACE_CMD} -e 's|gcc|cc|; s|g++|c++|' \ + @${REINPLACE_CMD} -e 's|gcc|${CC}|; s|g++|${CXX}|' \ ${GENIE}/src/tools/gcc.lua \ ${GENIE}/src/tools/snc.lua \ ${GENIE}/tests/test_gmake_cpp.lua - @${REINPLACE_CMD} -e 's|= \"gcc|= \"cc|; s|= \"g++|= \"c++|' \ + @${REINPLACE_CMD} -e 's|= \"gcc|= \"${CC}|; s|= \"g++|= \"${CXX}|' \ -e "s|'CXX =|'#CXX =|; s|'CC =|'#CC =|; s| .(ARCH)| |g" \ ${GENIE}/src/host/scripts.c @${GREP} -rl '"png.h"' ${WRKSRC}/src | \