Created attachment 882581 [details] build.log (10.02.1, ppc) Getting this on ppc with GCC 14: [...] powerpc-unknown-linux-gnu-gcc -DHAVE_MKSTEMP -DHAVE_FILE64 -DHAVE_FSEEKO -DHAVE_MKSTEMP64 -DHAVE_FONTCONFIG -DHAVE_LIBIDN -DHAVE_SETLOCALE -DHAVE_BSWAP32 -DHAVE_BYTESWAP_H -DHAVE_STRERROR -DHAVE_ISNAN -DHAVE_ISINF -DHAVE_PREAD_PWRITE=1 -DGS_RECURSIVE_MUTEXATTR=PTHREAD_MUTEX_RECURSIVE -O2 -DNDEBUG -fPIC -fvisibility=hidden -DGSDLLEXPORT="__attribute__((visibility(\"default\")))" -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -fno-strict-aliasing -Werror=declaration-after-statement -fno-builtin -fno-common -Werror=return-type -Wno-unused-local-typedefs -DHAVE_STDINT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIBDL=1 -DGX_COLOR_INDEX_TYPE="unsigned long long" -D__USE_UNIX98=1 -DBUILD_PDF=1 -I./pdf -O2 -mcpu=7450 -mtune=7450 -pipe -DHAVE_RESTRICT=1 -DUSE_LIBPAPER -fno-strict-aliasing -DHAVE_POPEN_PROTO=1 -fPIC -fvisibility=hidden -DGSDLLEXPORT="__attribute__((visibility(\"default\")))" -I./soobj -I./base -I./devices -DWHICH_CMS="lcms2" -o ./soobj/gdevxini.o -c ./devices/gdevxini.c ./devices/gdevxini.c: In function 'x_set_buffer': ./devices/gdevxini.c:626:69: error: passing argument 4 of 'gdev_mem_data_size' from incompatible pointer type [-Wincompatible-pointer-types] 626 | if (gdev_mem_data_size(mdev, xdev->width, xdev->height, &space) < 0 || | ^~~~~~ | | | ulong * {aka long unsigned int *} In file included from ./devices/gdevxini.c:23: ./base/gxdevmem.h:192:46: note: expected 'size_t *' {aka 'unsigned int *'} but argument is of type 'ulong *' {aka 'long unsigned int *'} 192 | int height, size_t *size); | ~~~~~~~~^~~~ make[2]: *** [devices/devs.mak:338: soobj/gdevxini.o] Error 1 make[2]: Leaving directory '/var/tmp/portage/app-text/ghostscript-gpl-10.02.1/work/ghostscript-10.02.1' make[1]: *** [base/unix-dll.mak:321: so-only-subtarget] Error 2 make[1]: Leaving directory '/var/tmp/portage/app-text/ghostscript-gpl-10.02.1/work/ghostscript-10.02.1' make: *** [base/unix-dll.mak:281: so] Error 2 * ERROR: app-text/ghostscript-gpl-10.02.1::gentoo failed (compile phase): * emake failed
Created attachment 882582 [details] emerge --info
Thanks! Reported upstream at https://bugs.ghostscript.com/show_bug.cgi?id=707502.
Please try https://git.ghostscript.com/?p=ghostpdl.git;a=patch;h=8f5c77af6c0b84bdea719010cf4f67877e857b2b;hp=74bd45a92ae04da09a696a07ef20e18d0a967e3b.
Thanks Sam! I can confirm the patch you linked applies and fixes the build issue.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f63293f0b9f2a9d167ad811188daab93f9295c48 commit f63293f0b9f2a9d167ad811188daab93f9295c48 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-01-19 10:46:40 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-01-19 10:46:40 +0000 app-text/ghostscript-gpl: another modern C fix Closes: https://bugs.gentoo.org/922448 Signed-off-by: Sam James <sam@gentoo.org> .../files/ghostscript-gpl-10.02.1-c99-2.patch | 53 ++++++ .../ghostscript-gpl-10.02.1-r1.ebuild | 199 +++++++++++++++++++++ 2 files changed, 252 insertions(+)
(In reply to ernsteiswuerfel from comment #4) > Thanks Sam! I can confirm the patch you linked applies and fixes the build > issue. Thanks! Please keep an eye out for these *especially* on ppc32 as I expect us to see a bunch of 32-bit specific stuff.