Opened 11 months ago
Last modified 11 months ago
#68448 assigned defect
freetype @2.13.2: error: use of unknown builtin '__builtin_bswap16'
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | lion | Cc: | |
Port: | freetype |
Description
freetype 2.13.2 fails to build on Lion only:
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_print_freetype/freetype/work/freetype-2.13.2/src/pcf/pcfutil.c:100:12: error: use of unknown builtin '__builtin_bswap16' [-Wimplicit-function-declaration] *b = BSWAP16( *b ); ^ /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_print_freetype/freetype/work/freetype-2.13.2/src/pcf/pcfutil.c:64:23: note: expanded from macro 'BSWAP16' #define BSWAP16( x ) __builtin_bswap16( x ) ^ 1 error generated. make: *** [/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_print_freetype/freetype/work/freetype-2.13.2/objs/pcf.lo] Error 1 make: *** Waiting for unfinished jobs....
Change History (2)
comment:1 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)
Note: See
TracTickets for help on using
tickets.
I filed an upstream bug report:
https://gitlab.freedesktop.org/freetype/freetype/-/issues/1260
There I pointed to a Python bug report about the same thing from a few years ago which shows how they fixed it.
We could try to adapt their fix or just blacklist the old clang versions that don't have
__builtin_bswap16
.