[Bug 237215] games/diaspora: fix build with GCC-based architectures

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Apr 12 18:05:18 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237215

--- Comment #2 from Piotr Kubaj <pkubaj at anongoth.pl> ---
(In reply to lightside from comment #1)
When using GCC8, I get:
bmpman/bmpman.cpp: In function 'int bm_make_render_target(int, int, int)':
bmpman/bmpman.cpp:2817:71: error: cast from 'void*' to 'ptr_u' {aka 'unsigned
int'} loses precision [-fpermissive]
   bm_bitmaps[n].bm.data = (ptr_u) bm_malloc(n, bm_bitmaps[n].mem_taken);


That's how I found that -fpermissive fixes that and it turns out it works with
base GCC.

You could add:
.if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} < 43
if this is the approach you want to use. However, you can drop the check for
CHOSEN_COMPILER_TYPE, there's no Clang version lower than 4.3 in currently
supported FreeBSD versions.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list