Created attachment 550286 [details] build.log powerpc64-unknown-linux-gnu-gcc -O2 -mcpu=powerpc64 -maltivec -mabi=altivec -pipe -Wall -Wdeclaration-after-statement -ffunction-sections -fdata-sections -fpic -Iinclude -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Ithirdparty/lcms2/include -DSHARE_JPEG -DFZ_ENABLE_JS=0 -I/usr/include/openjpeg-2.3 -o build/debug/lcms2/cmsplugin.o -c thirdparty/lcms2/src/cmsplugin.c -Ithirdparty/lcms2/include thirdparty/lcms2/src/cmsmd5.c: In function ‘byteReverse’: thirdparty/lcms2/src/cmsmd5.c:36:51: error: ‘ContextID’ undeclared (first use in this function) cmsUInt32Number t = _cmsAdjustEndianess32(ContextID, *(cmsUInt32Number *) buf); ^~~~~~~~~ thirdparty/lcms2/src/cmsmd5.c:36:51: note: each undeclared identifier is reported only once for each function it appears in make: *** [Makethird:570: build/debug/lcms2/cmsmd5.o] Error 1 make: *** Waiting for unfinished jobs.... thirdparty/lcms2/src/cmsplugin.c: In function ‘_cmsReadFloat32Number’: thirdparty/lcms2/src/cmsplugin.c:183:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *n = *(cmsFloat32Number*)(void*)&tmp; ^ thirdparty/lcms2/src/cmsplugin.c: In function ‘_cmsWriteFloat32Number’: thirdparty/lcms2/src/cmsplugin.c:312:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] tmp = *(cmsUInt32Number*) (void*) &n; ^~~ * ERROR: app-text/mupdf-1.13.0::gentoo failed (compile phase): * emake failed
Created attachment 550288 [details] emerge --info
Created attachment 550574 [details] build.log (1.14.0) No change with mupdf-1.14.0.
If you disable "lcms" in 0.13 (the USE flag has been removed in 0.14), does the build still fail?
(In reply to Virgil Dupras from comment #3) > If you disable "lcms" in 0.13 (the USE flag has been removed in 0.14), does > the build still fail? You are correct, 1.13.0 succeeds building without "lcms". But 1.14.0 fails to build anyhow. See already attatched build.log. ;) USE="lcms" is masked on ppc64, but nethertheless tries to build: [...] thirdparty/lcms2/src/cmsmd5.c: In function ‘byteReverse’: thirdparty/lcms2/src/cmsmd5.c:36:51: error: ‘ContextID’ undeclared (first use in this function) cmsUInt32Number t = _cmsAdjustEndianess32(ContextID, *(cmsUInt32Number *) buf); ^~~~~~~~~ thirdparty/lcms2/src/cmsmd5.c:36:51: note: each undeclared identifier is reported only once for each function it appears in
Would you care to open a bug upstream? With 0.14, it becomes impossible to build without lcms, so if lcms doesn't build on ppc64, it looks like we'll have to unkeyword it.
Upstream bugreport: https://bugs.ghostscript.com/show_bug.cgi?id=699960 Tried building from git-master, but with the same result.
Upstream is pretty quick. The problem has been identified and will be fixed sometime next week.
Upstream fixed the bug with commit: http://git.ghostscript.com/?p=ghostpdl.git;h=90b8faa80a4746f7f1e0966d6c56a687d2f8d333