Re: build of libharfbuzz0-shlibs-2.6.8-2 failed

Derek Homeier <[email protected]> Tue, 8 Oct 2024 22:17:52 +0200
Newsgroups gmane.os.apple.fink.general
Message-ID <[email protected]>
On 8 Oct 2024, at 2:01 AM, [email protected] wrote:
> 
> I'm unable to test this on any of my systems (none are new enough to recognize the -Wcast-function-type-strict flag). However, upstream has some changes around that section of their code that might fix something, but it's hard to tell.
> 
> Also, is that the extent of the error messages for hb-ft.cc ? Please also include the full compiler command in the future.
> 
Changing the `unlikely` macro does not fix it; the other two assignments to FT_Generic_Finalizer
throwing an error are unrelated to that anyway.

Below is the full command and output (14.0, Xcode.app: 16.0, command-line tools: 16.0.0.0.1.1724870825)

					Derek


/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -pthread -I/opt/sw3/include/glib-2.0 ->
Password:
libtool: compile:  g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -pthread -I/opt/sw3/include/glib-2.0 -I/opt/sw3/lib/glib-2.0/include -I/opt/sw3/include/freetype2 -I/opt/sw3/include -I/opt/sw3/include -fno-rtti -g -O2 -fno-exceptions -fno-threadsafe-statics -fvisibility-inlines-hidden -MT libharfbuzz_la-hb-ft.lo -MD -MP -MF .deps/libharfbuzz_la-hb-ft.Tpo -c hb-ft.cc  -fno-common -DPIC -o .libs/libharfbuzz_la-hb-ft.o
hb-ft.cc:758:73: error: cast from 'void (*)(FT_Face)' (aka 'void (*)(FT_FaceRec_ *)') to 'FT_Generic_Finalizer' (aka 'void (*)(void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  758 |   if (unlikely (!ft_face->generic.data || ft_face->generic.finalizer != (FT_Generic_Finalizer) hb_ft_face_finalize))
      |                                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./hb.hh:225:47: note: expanded from macro 'unlikely'
  225 | #define unlikely(expr) __builtin_expect (bool(expr), 0)
      |                                               ^~~~
hb-ft.cc:764:34: error: cast from 'void (*)(FT_Face)' (aka 'void (*)(FT_FaceRec_ *)') to 'FT_Generic_Finalizer' (aka 'void (*)(void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  764 |     ft_face->generic.finalizer = (FT_Generic_Finalizer) hb_ft_face_finalize;
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hb-ft.cc:1033:32: error: cast from 'void (*)(FT_Face)' (aka 'void (*)(FT_FaceRec_ *)') to 'FT_Generic_Finalizer' (aka 'void (*)(void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
 1033 |   ft_face->generic.finalizer = (FT_Generic_Finalizer) _release_blob;
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.

_______________________________________________
Fink-users mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users