Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Sep 2023 23:29:02 GMT
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: ad1d79583b28 - main - games/punchy: unbreak build on i386
Message-ID:  <202309022329.382NT2V1004999@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ad1d79583b285d7a320f7a8b844bc568142670e0

commit ad1d79583b285d7a320f7a8b844bc568142670e0
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-07-11 05:18:21 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-09-02 23:27:46 +0000

    games/punchy: unbreak build on i386
    
    fatal runtime error: Rust cannot catch foreign exceptions
    thread '<unnamed>' panicked at '/wrkdirs/usr/ports/lang/rust/work/rustc-1.70.0-src/compiler/rustc_codegen_ssa/src/back/write.rs:1535:21: worker thread panicked', compiler/rustc_middle/src/util/bug.rs:36:26
    
    (signal: 6, SIGABRT: process abort signal)
    
    Reported by:    pkg-fallout
---
 games/punchy/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/games/punchy/Makefile b/games/punchy/Makefile
index 6dbb69a40957..bdce929c35f4 100644
--- a/games/punchy/Makefile
+++ b/games/punchy/Makefile
@@ -29,6 +29,12 @@ BINARY_ALIAS+=	python=${PYTHON_CMD}
 CARGO_ENV+=	V8_FROM_SOURCE=1 CLANG_BASE_PATH="/usr" GN_ARGS='${GN_ARGS}'
 GN_ARGS+=	use_custom_libcxx=false
 
+.if ${MACHINE_ARCH} == i386
+# https://github.com/rust-lang/rust/issues/85598
+LTO_UNSAFE=	yes
+CARGO_ENV+=	CARGO_PROFILE_RELEASE_LTO=false
+.endif
+
 post-patch:
 # Search assets under PREFIX instead of current directory
 	@${REINPLACE_CMD} 's,assets",../${DATADIR_REL}/&,' \



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