Can't Build texlive by gcc 14.0.0

Karl Berry karl at freefriends.org
Sun Jan 21 22:42:14 CET 2024


    "GCC 14 plans to make -Wincompatible-pointer-types an error by
    default for >= C99

Thanks Ken and haoming. I applied the patch below to placate the warning.
(I did not bother doing anything about the -Wvisibility warnings.) r69519.
--karl

P.S. For the record, cairo (and related pixman) have had subsequent
releases (so no point in reporting upstream), but until necessary we are
sticking with this version, since they dropped autotools
support. MetaPost is the only program in TL that uses cairo, and only
for png output. For that purpose, Luigi and I hope/believe this older
version will suffice. Maybe we could get away from cairo altogether,
though no better alternative was immediately apparent.

Index: cairo-image-source.c
===================================================================
--- cairo-image-source.c	(revision 69517)
+++ cairo-image-source.c	(working copy)
@@ -86,7 +86,7 @@
 	if (unlikely (image == NULL))
 	    return NULL;
 
-	if (_cairo_atomic_ptr_cmpxchg (&__pixman_transparent_image,
+	if (_cairo_atomic_ptr_cmpxchg ((void **) &__pixman_transparent_image,
 				       NULL, image))
 	{
 	    pixman_image_ref (image);
@@ -118,7 +118,7 @@
 	if (unlikely (image == NULL))
 	    return NULL;
 
-	if (_cairo_atomic_ptr_cmpxchg (&__pixman_black_image,
+	if (_cairo_atomic_ptr_cmpxchg ((void **) &__pixman_black_image,
 				       NULL, image))
 	{
 	    pixman_image_ref (image);
@@ -150,7 +150,7 @@
 	if (unlikely (image == NULL))
 	    return NULL;
 
-	if (_cairo_atomic_ptr_cmpxchg (&__pixman_white_image,
+	if (_cairo_atomic_ptr_cmpxchg ((void **) &__pixman_white_image,
 				       NULL, image))
 	{
 	    pixman_image_ref (image);


More information about the tex-live mailing list.