Bug 277209 - games/NBlood: build failure for r13984, r13991 and r14007
Summary: games/NBlood: build failure for r13984, r13991 and r14007
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Piotr Kubaj
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-21 07:16 UTC by Ale
Modified: 2024-04-17 04:49 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (pkubaj)


Attachments
disable mimalloc usage (524 bytes, patch)
2024-04-06 11:15 UTC, Ale
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ale 2024-02-21 07:16:36 UTC
Trying to build the port I'm receiving the following error (on amd64 - 13.3-STABLE):
===>  Building for NBlood-r13984
gmake[1]: Entering directory '/usr/ports/games/NBlood/work/NBlood-r13984'
clang++: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
In file included from source/blood/src/blood.cpp:23:
In file included from source/build/include/build.h:22:
In file included from source/build/include/collections.h:7:
In file included from source/build/include/compat.h:481:
In file included from /usr/include/c++/v1/functional:526:
In file included from /usr/include/c++/v1/__functional/boyer_moore_searcher.h:27:
In file included from /usr/include/c++/v1/vector:321:
In file included from /usr/include/c++/v1/__format/formatter_bool.h:20:
In file included from /usr/include/c++/v1/__format/formatter_integral.h:32:
/usr/include/c++/v1/locale:2822:22: error: no member named 'mi_realloc' in namespace 'std'; did you mean simply 'mi_realloc'?
 2822 |     _Tp* __t = (_Tp*)std::realloc(__owns ? __b.get() : 0, __new_cap);
      |                      ^~~~~
source/mimalloc/include/mimalloc.h:111:40: note: 'mi_realloc' declared here
  111 | mi_decl_nodiscard mi_decl_export void* mi_realloc(void* p, size_t newsize)      mi_attr_noexcept mi_attr_alloc_size(2);
      |                                        ^
1 error generated.
Failed building obj/blood/blood.o from source/blood/src/blood.cpp!
gmake[1]: *** [GNUmakefile:1452: obj/blood/blood.o] Error 1
gmake[1]: Leaving directory '/usr/ports/games/NBlood/work/NBlood-r13984'
*** Error code 1

Stop.
make: stopped in /usr/ports/games/NBlood
Comment 1 Ale 2024-02-29 06:25:54 UTC
Same error with r13991.
Comment 3 Ale 2024-03-21 15:40:30 UTC
The problem still exists on r14007.
Comment 4 Ale 2024-04-03 18:19:16 UTC
I applied to this port Makefile the same changes in the patch from Felix Palmen for games/eduke32 on bug #277869, comment #1 and that fixes the build also for games/NBlood.
Comment 5 Ale 2024-04-06 11:15:30 UTC
Created attachment 249756 [details]
disable mimalloc usage

Apply to games/NBlood the same changes applied to games/eduke32 to resolve bug #277869.
Comment 6 commit-hook freebsd_committer freebsd_triage 2024-04-16 21:49:03 UTC
A commit in branch main references this bug:

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

commit f4e08fe18b968e6628cf788429f7f628d2f9e55f
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-04-16 13:33:17 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-04-16 21:48:16 +0000

    games/NBlood: update to r14013 and fix build on with LLVM 17

    PR:     277209
    Submitted by:   discipline@tiscali.it

 games/NBlood/Makefile | 4 ++--
 games/NBlood/distinfo | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)
Comment 7 Piotr Kubaj freebsd_committer freebsd_triage 2024-04-17 04:49:53 UTC
Commited, thanks!