Bug 263285

Summary: math/mpfr: fails to build on -CURRENT: don't know how to make exceptions.lo
Product: Ports & Packages Reporter: Charlie Li <vishwin>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Some People CC: bas, emaste, phk, rhurlin, shawn.webb, vishwin
Priority: --- Flags: bugzilla: maintainer-feedback? (ale)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Add to Makefile USES=gmake makeinfo none

Description Charlie Li freebsd_committer freebsd_triage 2022-04-14 21:40:21 UTC
Got the following bail-out almost immediately on -CURRENT base 6edfc10ca5f. Compared to 13.0-RELEASE, configure output is identical apart from FreeBSD version numbers.

--- all-recursive ---
Making all in doc
Making all in src
--- get_patches.c ---
../tools/get_patches.sh ../PATCHES > get_patches.c || { rm -f get_patches.c; exit 1; }
--- all ---
/usr/bin/make  all-am
make[3]: make[3]: don't know how to make exceptions.lo. Stop

make[3]: stopped in /wrkdirs/usr/ports/math/mpfr/work/mpfr-4.1.0/src

make[2]: stopped in /wrkdirs/usr/ports/math/mpfr/work/mpfr-4.1.0/src

make[1]: stopped in /wrkdirs/usr/ports/math/mpfr/work/mpfr-4.1.0
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/math/mpfr
Comment 1 Charlie Li freebsd_committer freebsd_triage 2022-04-14 22:04:34 UTC
Probably caused by the bmake update in base 1d3f2ddc32fc37e4835aa5a51eabc8696c1e8114

In any case, considering that GNU_CONFIGURE and USES=libtool are defined, the port should also have USES=gmake. Additionally, it looks like the software itself builds docs unconditionally (couldn't find anything to disable doc/) so USES=makeinfo is also needed.
Comment 2 Shawn Webb 2022-04-16 00:51:30 UTC
HardenedBSD 14-CURRENT is impacted by this, too.
Comment 3 Rainer Hurling freebsd_committer freebsd_triage 2022-04-16 14:54:02 UTC
Created attachment 233250 [details]
Add to Makefile USES=gmake makeinfo

The patch seems to build, install and work for me (14.0-CURRENT amd64) :)
Comment 4 Poul-Henning Kamp freebsd_committer freebsd_triage 2022-04-16 18:55:37 UTC
Can confirm both breakage and that the patch works.
Comment 5 commit-hook freebsd_committer freebsd_triage 2022-04-20 08:05:53 UTC
A commit in branch main references this bug:

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

commit 0a8becf43aba903cb0be45c4a05eefcd39c0080c
Author:     Alex Dupre <ale@FreeBSD.org>
AuthorDate: 2022-04-20 08:04:00 +0000
Commit:     Alex Dupre <ale@FreeBSD.org>
CommitDate: 2022-04-20 08:04:00 +0000

    math/mpfr: fix build on -CURRENT by using gmake

    PR:             263285
    Submitted by:   vishwin

 math/mpfr/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)