Created attachment 238443 [details] games/libretro-beetle_psx: fix build on armv7 The functions __addsf3 and __adddf3 are part of libgcc which is not provided when compiling with clang. Fiddle with some #if directives to provide shims if we compile with clang. Tested with Poudriere on armv7 arm64 FreeBSD 13.1. Please MFH if possible.
Please do not commit the patch yet, I found a problem that needs further work.
Created attachment 238452 [details] games/libretro-beetle_psx: fix build on armv7 Updated patch compiling with gcc on arm. See also bug #268079.
(In reply to Robert Clausecker from comment #2) > Updated patch compiling with gcc on arm. See also bug #268079. Is this patch ok to be committed?
(In reply to Nuno Teixeira from comment #3) I believe so. Please commit.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=4b93307b9d1762c72e68c229301795c8ebdc79fc commit 4b93307b9d1762c72e68c229301795c8ebdc79fc Author: Robert Clausecker <fuz@fuz.su> AuthorDate: 2022-12-01 21:12:04 +0000 Commit: Nuno Teixeira <eduardo@FreeBSD.org> CommitDate: 2022-12-01 21:17:05 +0000 games/libretro-beetle_psx: Fix build on armv7 The functions __addsf3 and __adddf3 are part of libgcc which is not provided when compiling with clang. Fiddle with some #if directives to provide shims if we compile with clang. PR: 268077 MFH: 2022Q4 (build fix) games/libretro-beetle_psx/Makefile | 10 ++++++++-- .../patch-deps_lightning_lib_jit__arm-swf.c (new) | 20 ++++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-)
A commit in branch 2022Q4 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=0ad5602a2ac93edff0568c23240e77b6ccf20e17 commit 0ad5602a2ac93edff0568c23240e77b6ccf20e17 Author: Robert Clausecker <fuz@fuz.su> AuthorDate: 2022-12-01 21:12:04 +0000 Commit: Nuno Teixeira <eduardo@FreeBSD.org> CommitDate: 2022-12-01 21:18:29 +0000 games/libretro-beetle_psx: Fix build on armv7 The functions __addsf3 and __adddf3 are part of libgcc which is not provided when compiling with clang. Fiddle with some #if directives to provide shims if we compile with clang. PR: 268077 MFH: 2022Q4 (build fix) (cherry picked from commit 4b93307b9d1762c72e68c229301795c8ebdc79fc) games/libretro-beetle_psx/Makefile | 10 ++++++++-- .../patch-deps_lightning_lib_jit__arm-swf.c (new) | 20 ++++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-)
Committed, thanks!