Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 814917

Summary: Cannot emerge app-text/ghostscript-gpl-9.54.0-r1 due to compilation error
Product: Gentoo Linux Reporter: jamiegetty1
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: jamiegetty1, sam
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Contains the emerge info and the build log.

Description jamiegetty1 2021-09-26 03:22:52 UTC
I tried updating my @world recently, but I get errors when emerging ghostscript-gpl. I've attached my build output, and here's some of what was printed.

x86_64-pc-linux-gnu-gcc  -DHAVE_MKSTEMP -DHAVE_FILE64 -DHAVE_FSEEKO -DHAVE_MKSTEMP64 -DHAVE_FONTCONFIG -DHAVE_LIBIDN -DHAVE_SETLOCALE -DHAVE_SSE2  -DHAVE_BSWAP32 -DHAVE_BYTESWAP_H -DHAVE_STRERROR -DHAVE_ISNAN -DHAVE_ISINF  -DHAVE_PREAD_PWRITE=1 -DGS_RECURSIVE_MUTEXATTR=PTHREAD_MUTEX_RECURSIVE -fPIC   -O2 -DNDEBUG -fPIC  \
         -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -fno-strict-aliasing -Werror=declaration-after-statement -fno-builtin -fno-common -Werror=return-type -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  -march=native -O2 -pipe -DHAVE_RESTRICT=1  -DUSE_LIBPAPER  -fno-strict-aliasing -DHAVE_POPEN_PROTO=1 -DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"/usr/lib64/ghostscript/9.54.0\"  -I./soobj -I./base -I./devices  -DWHICH_CMS="lcms2" -o ./soobj/gconfig.o -c ./soobj/gconfig.c
./soobj/gconfig.c:211:1: warning: no previous prototype for ‘gs_lib_register_device’ [-Wmissing-prototypes]
  211 | gs_lib_register_device(const gx_device *dev)
      | ^~~~~~~~~~~~~~~~~~~~~~
./soobj/aux/echogs -w ./soobj/ldt.tr -n - x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed   -shared -Wl,-soname=libgs.so.9 -o ./sobin/libgs.so.9.54
./soobj/aux/echogs -a ./soobj/ldt.tr -n -s ./soobj/gsromfs0.o  -s
cat ./soobj/gsld.tr >> ./soobj/ldt.tr
./soobj/aux/echogs -a ./soobj/ldt.tr -s -  -lm -ldl  -lidn  -lpaper -ltiff  -rdynamic -lfontconfig -lfreetype  -lfreetype  -lopenjp2   -lpthread -lm -lstdc++
if [ x != x ]; then LD_RUN_PATH=; export LD_RUN_PATH; fi; \
XCFLAGS= XINCLUDE= XLDFLAGS= XLIBDIRS= XLIBS= \
PSI_FEATURE_DEVS= FEATURE_DEVS= DEVICE_DEVS= DEVICE_DEVS1= DEVICE_DEVS2= DEVICE_DEVS3= \
DEVICE_DEVS4= DEVICE_DEVS5= DEVICE_DEVS6= DEVICE_DEVS7= DEVICE_DEVS8= \
DEVICE_DEVS9= DEVICE_DEVS10= DEVICE_DEVS11= DEVICE_DEVS12= \
DEVICE_DEVS13= DEVICE_DEVS14= DEVICE_DEVS15= DEVICE_DEVS16= \
DEVICE_DEVS17= DEVICE_DEVS18= DEVICE_DEVS19= DEVICE_DEVS20= \
DEVICE_DEVS_EXTRA= \
/bin/sh <./soobj/ldt.tr
make[2]: Leaving directory '/var/tmp/portage/app-text/ghostscript-gpl-9.54.0-r1/work/ghostscript-9.54.0'
make -f Makefile DISPLAY_DEV=./soobj/display.dev BUILDDIRPREFIX=so GENOPT='' LDFLAGS='-Wl,-O1 -Wl,--as-needed  '\
 CFLAGS='-fPIC   -O2 -DNDEBUG -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -fno-strict-aliasing -Werror=declaration-after-statement -fno-builtin -fno-common -Werror=return-type -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  -march=native -O2 -pipe -DHAVE_RESTRICT=1  -DUSE_LIBPAPER  -fno-strict-aliasing -DHAVE_POPEN_PROTO=1 -DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"/usr/lib64/ghostscript/9.54.0\" ' prefix=/usr\
 ./sobin/gsc  -so-loader -so-loader -so-loader
make[2]: Entering directory '/var/tmp/portage/app-text/ghostscript-gpl-9.54.0-r1/work/ghostscript-9.54.0'
make[2]: Leaving directory '/var/tmp/portage/app-text/ghostscript-gpl-9.54.0-r1/work/ghostscript-9.54.0'
make[1]: Leaving directory '/var/tmp/portage/app-text/ghostscript-gpl-9.54.0-r1/work/ghostscript-9.54.0'
 * ERROR: app-text/ghostscript-gpl-9.54.0-r1::gentoo failed (compile phase):
 *   emake failed
Comment 1 jamiegetty1 2021-09-26 03:25:14 UTC
Created attachment 741321 [details]
Contains the emerge info and the build log.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-26 03:38:51 UTC
The real error you're hitting (from the attached log, thanks for including all of the info -- it doesn't always happen and it saves us some cycles) is:

>Assembler messages:
>Fatal error: can't create obj/extract_astring.o: No such file or directory
>make: *** [devices/extract.mak:8: obj/extract_astring.o] Error 2
>make: *** Waiting for unfinished jobs....

This is a duplicate of bug 800125. I added a workaround for this (-j1) last night which doesn't seem to be in effect in your case:

>>>> Compiling source in /var/tmp/portage/app-text/ghostscript-gpl-9.54.0-r1/work/ghostscript-9.54.0 ...
>make -j4 -l3.6 so all 

Your emerge --info has:
>Timestamp of repository gentoo: Sun, 19 Sep 2021 09:30:01 +0000
>Head commit of repository gentoo: cdbca201efc00b18ee8ecc50154aefdc0d472777
>Timestamp of repository guru: Fri, 17 Sep 2021 09:36:22 +0000
>Head commit of repository guru: a1d0fe359bfeff6a06038af72cce1f66edcd9857

So you need to emerge --sync then try again. Thanks!

*** This bug has been marked as a duplicate of bug 800125 ***