Subject: toolchain/24055: pkgsrc/print/ghostscript-6.01nb4 causes ICE on sparc64 -current
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rafal@netbsd.org>
List: netbsd-bugs
Date: 01/11/2004 18:21:52
>Number:         24055
>Category:       toolchain
>Synopsis:       pkgsrc/print/ghostscript-6.01nb4 causes ICE on sparc64 -current
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 11 23:22:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Rafal Boni
>Release:        NetBSD 1.6ZE
>Organization:
none to speak of
>Environment:
System: NetBSD fearless-vampire-killer.waterside.net 1.6ZE NetBSD 1.6ZE (FEARLESS_VAMPIRE_KILLER) #0: Tue Nov 11 23:00:07 EST 2003 rafal@fearless-vampire-killer.waterside.net:/extra/sparc64/obj/sys/arch/sparc64/compile/FEARLESS_VAMPIRE_KILLER sparc64
Architecture: sparc64
Machine: sparc64
>Description:
	gcc ICE's while building pkgsrc/print/ghostscript-6.01nb4.

	Here's the head & tail of the build log:

===> Checking for vulnerabilities in ghostscript-6.01nb4
=> Checksum OK for ghostscript/ghostscript-6.01.tar.bz2.
=> Checksum OK for ghostscript/jpegsrc.v6b.tar.gz.
=> Checksum OK for ghostscript/pdf_sec.ps.
=> Checksum OK for ghostscript/gimp-print-4.2.0.tar.gz.
=> Checksum OK for ghostscript/hpijs-1.0.2.tar.gz.
=> Checksum OK for ghostscript/hpdj-2.6.tar.gz.
=> Checksum OK for ghostscript/dmprt-2.01.tar.gz.
=> Checksum OK for ghostscript/gdev10v.tar.gz.
=> Checksum OK for ghostscript/gdevmjc-0.8.tar.gz.
=> Checksum OK for ghostscript/gdevalps-0.2.tar.gz.
=> Checksum OK for ghostscript/gdevmd2k-0.2a.tar.gz.
=> Checksum OK for ghostscript/gdevlips-2.3.6.tar.gz.
=> Checksum OK for ghostscript/gdevrpdl.tar.gz.
=> Checksum OK for ghostscript/gdevprsc-0.4.tar.gz.
=> Checksum OK for ghostscript/samsung-gdi-driver.tar.gz.
=> Checksum OK for ghostscript/gs6.01-jpdf-exp.patch.gz.
===> Extracting for ghostscript-6.01nb4
===> Required installed package ghostscript-fonts-6.0: ghostscript-fonts-6.0 found
===> Required installed package watanabe-vfont-19930318: watanabe-vfont-19930318 found
===> Required installed package png>=1.2.4: png-1.2.5nb2 found
===> Required installed package ja-vflib-lib>=2.24.2: ja-vflib-lib-2.24.2 found
===> Required installed package freetype-lib>=1.3.1nb1: freetype-lib-1.3.1nb1 found
===> Required installed package x11-links>=0.17: x11-links-0.18 found
===> Required installed package gmake>=3.78: gmake-3.80nb1 found
cd /extra/pkgsrc/print/ghostscript/work/gs6.01/src; /bin/pax -rf /extra/pkgsrc/print/ghostscript/work/hpdj-2.6/hpdj.tar
pax: Trying to read GNU tar archive with extensions off
/bin/mv /extra/pkgsrc/print/ghostscript/work/gs6.01/src/gs-hpdj.1 /extra/pkgsrc/print/ghostscript/work/gs6.01/man
cd /extra/pkgsrc/print/ghostscript/work; /bin/cp gdevdmpr.c gdevdmpr.mak		/extra/pkgsrc/print/ghostscript/work/gs6.01/src
cd /extra/pkgsrc/print/ghostscript/work; /bin/cp dviprlib.*				/extra/pkgsrc/print/ghostscript/work/gs6.01/src
cd /extra/pkgsrc/print/ghostscript/work/gdev10v; /bin/cp gdev10v.c gdev10v.mak	/extra/pkgsrc/print/ghostscript/work/gs6.01/src
cd /extra/pkgsrc/print/ghostscript/work/gdevmjc-0.8; /bin/cp *.[ch] gdevmjc.mak	/extra/pkgsrc/print/ghostscript/work/gs6.01/src
cd /extra/pkgsrc/print/ghostscript/work/gdevlips-2.3.6; /bin/cp *			/extra/pkgsrc/print/ghostscript/work/gs6.01/src
cd /extra/pkgsrc/print/ghostscript/work/gdevrpdl; /bin/cp gdevrpdl.c gdevrpdl.mak	/extra/pkgsrc/print/ghostscript/work/gs6.01/src
cd /extra/pkgsrc/print/ghostscript/work/gdevalps-0.2;  /bin/cp gdevalps.c gdevalps.mak-5.50		/extra/pkgsrc/print/ghostscript/work/gs6.01/src
cd /extra/pkgsrc/print/ghostscript/work/gdevmd2k-0.2a;  /bin/cp gdevmd2k.c gdevmd2k.mak-5.8x		/extra/pkgsrc/print/ghostscript/work/gs6.01/src
cd /extra/pkgsrc/print/ghostscript/work/gdevprsc-0.4;  /bin/cp gdevprsc.c gdevprsc.mak			/extra/pkgsrc/print/ghostscript/work/gs6.01/src
cd /extra/pkgsrc/print/ghostscript/work; /bin/cp gdevgdi.c				/extra/pkgsrc/print/ghostscript/work/gs6.01/src
/bin/rm -f /extra/pkgsrc/print/ghostscript/work/gs6.01/jpeg
/bin/ln -s /extra/pkgsrc/print/ghostscript/work/jpeg-6b /extra/pkgsrc/print/ghostscript/work/gs6.01/jpeg
/bin/rm -f /extra/pkgsrc/print/ghostscript/work/gs6.01/lib/pdf_sec.ps
/bin/ln -s /extra/pkgsrc/distfiles/ghostscript/pdf_sec.ps /extra/pkgsrc/print/ghostscript/work/gs6.01/lib/pdf_sec.ps
===> Patching for ghostscript-6.01nb4
===> Applying distribution patches for ghostscript-6.01nb4
===> Applying pkgsrc patches for ghostscript-6.01nb4
if [ ! -f /extra/pkgsrc/print/ghostscript/work/dmp_site.ps.bak ]; then			 /bin/mv /extra/pkgsrc/print/ghostscript/work/dmp_site.ps /extra/pkgsrc/print/ghostscript/work/dmp_site.ps.bak;	 fi
/usr/bin/sed	-e "s|epsimage\.src|/usr/pkg/share/ghostscript/6.01vflib/lib/escp_24.src|g"	 /extra/pkgsrc/print/ghostscript/work/dmp_site.ps.bak > /extra/pkgsrc/print/ghostscript/work/dmp_site.ps
===> Overriding tools for ghostscript-6.01nb4
===> Buildlinking for ghostscript-6.01nb4
===> Configuring for ghostscript-6.01nb4
cd /extra/pkgsrc/print/ghostscript/work/hpijs-1.0.2 &&						 /usr/bin/env CC="cc" CFLAGS="-O2 -DA4 -DHAVE_MKSTEMP=1 -I/usr/pkg/include -I/usr/X11R6/include" CPPFLAGS="  -I/usr/pkg/include -I/usr/X11R6/include"	 INTLLIBS=" -lintl" gt_cv_func_gnugettext1_libintl="yes" MAKE="/usr/pkg/bin/gmake" LIBS=" -lintl" CONFIG_SHELL=/bin/sh LDFLAGS=" -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib" M4="/usr/bin/m4" YACC="yacc" RPATH_FLAG="-R" PATH=/extra/pkgsrc/print/ghostscript/work/.tools/bin:/extra/pkgsrc/print/ghostscript/work/.buildlink/bin:/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin:/usr/pkg/bin:/usr/X11R6/bin PKG_SYSCONFDIR="/usr/pkg/etc" BUILDLINK_DIR="/extra/pkgsrc/print/ghostscript/work/.buildlink" BUILDLINK_X11_DIR="/extra/pkgsrc/print/ghostscript/work/.buildlink-x11" BUILDLINK_UPDATE_CACHE=no BUILDLINK_CACHE_ALL=yes BUILDLINK_CPPFLAGS="-I/usr/pkg/include -I/usr/X11R6/include" BUILDLINK_LDFLAGS="-L/usr/pkg/lib !
-Wl,-R/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib"  CC="cc" CXX="c++"  LD="ld"   IMAKE="imake"  INSTALL_INFO="/extra/pkgsrc/print/ghostscript/work/.tools/bin/install-info" MAKEINFO="/extra/pkgsrc/print/ghostscript/work/.tools/bin/makeinfo"					 ./configure --with-libintl-prefix=/usr --host=sparc64--netbsd --prefix=/usr/pkg &&		 /bin/cp gdevijs.c gdevijs.h ijs.c ijs.h ijs_client.c ijs_client.h ijs_exec_unix.c unistd_.h /extra/pkgsrc/print/ghostscript/work/gs6.01/src &&				 /usr/bin/head -518 contrib.mak | /usr/bin/tail -20				 >> /extra/pkgsrc/print/ghostscript/work/gs6.01/src/contrib.mak
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether /usr/pkg/bin/gmake sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
[...]
gcc `cat ./object/cc.tr`  -O2 -DA4 -DHAVE_MKSTEMP=1 -I/usr/pkg/include -I/usr/X11R6/include -I./src -I./object  -o ./object/gdevstc1.o -c ./src/gdevstc1.c
gcc `cat ./object/cc.tr`  -O2 -DA4 -DHAVE_MKSTEMP=1 -I/usr/pkg/include -I/usr/X11R6/include -I./src -I./object  -o ./object/gdevstc2.o -c ./src/gdevstc2.c
gcc `cat ./object/cc.tr`  -O2 -DA4 -DHAVE_MKSTEMP=1 -I/usr/pkg/include -I/usr/X11R6/include -I./src -I./object  -o ./object/gdevstc3.o -c ./src/gdevstc3.c
gcc `cat ./object/cc.tr`  -O2 -DA4 -DHAVE_MKSTEMP=1 -I/usr/pkg/include -I/usr/X11R6/include -I./src -I./object  -o ./object/gdevstc4.o -c ./src/gdevstc4.c
./object/echogs -e .dev -w- -l-dev -b -s -l-include -l./object/page -l-obj ./object/stcolor ./object/gdevstc.o ./object/gdevstc1.o ./object/gdevstc2.o
./object/echogs -e .dev -a-  ./object/stcolor -obj ./object/gdevstc3.o ./object/gdevstc4.o
gcc `cat ./object/cc.tr`  -O2 -DA4 -DHAVE_MKSTEMP=1 -I/usr/pkg/include -I/usr/X11R6/include -I./src -I./object  -o ./object/gdevstp.o -c -DDISABLE_NLS ./src/gdevstp.c
gcc `cat ./object/cc.tr`  -O2 -DA4 -DHAVE_MKSTEMP=1 -I/usr/pkg/include -I/usr/X11R6/include -I./src -I./object  -o ./object/gdevstp-dither.o -c -DDISABLE_NLS ./src/gdevstp-dither.c
src/gdevstp-dither.c: In function `stp_init_dither':
src/gdevstp-dither.c:564: warning: cast discards qualifiers from pointer target type
src/gdevstp-dither.c:569: warning: cast discards qualifiers from pointer target type
src/gdevstp-dither.c:571: warning: cast discards qualifiers from pointer target type
src/gdevstp-dither.c:573: warning: cast discards qualifiers from pointer target type
src/gdevstp-dither.c:575: warning: cast discards qualifiers from pointer target type
src/gdevstp-dither.c:581: warning: cast discards qualifiers from pointer target type
src/gdevstp-dither.c:583: warning: cast discards qualifiers from pointer target type
src/gdevstp-dither.c:585: warning: cast discards qualifiers from pointer target type
src/gdevstp-dither.c:587: warning: cast discards qualifiers from pointer target type
gcc `cat ./object/cc.tr`  -O2 -DA4 -DHAVE_MKSTEMP=1 -I/usr/pkg/include -I/usr/X11R6/include -I./src -I./object  -o ./object/gdevstp-dither-matrices.o -c -DDISABLE_NLS ./src/gdevstp-dither-matrices.c
gcc `cat ./object/cc.tr`  -O2 -DA4 -DHAVE_MKSTEMP=1 -I/usr/pkg/include -I/usr/X11R6/include -I./src -I./object  -o ./object/gdevstp-util.o -c -DDISABLE_NLS ./src/gdevstp-util.c
src/gdevstp-util.c: In function `stp_allocate_vars':
src/gdevstp-util.c:229: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_free_vars':
src/gdevstp-util.c:282: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c:283: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c:284: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c:285: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c:286: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c:287: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c:288: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c:289: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c:290: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_set_output_to':
src/gdevstp-util.c:339: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_set_output_to_n':
src/gdevstp-util.c:339: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_set_driver':
src/gdevstp-util.c:340: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_set_driver_n':
src/gdevstp-util.c:340: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_set_ppd_file':
src/gdevstp-util.c:341: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_set_ppd_file_n':
src/gdevstp-util.c:341: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_set_resolution':
src/gdevstp-util.c:342: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_set_resolution_n':
src/gdevstp-util.c:342: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_set_media_size':
src/gdevstp-util.c:343: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_set_media_size_n':
src/gdevstp-util.c:343: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_set_media_type':
src/gdevstp-util.c:344: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_set_media_type_n':
src/gdevstp-util.c:344: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_set_media_source':
src/gdevstp-util.c:345: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_set_media_source_n':
src/gdevstp-util.c:345: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_set_ink_type':
src/gdevstp-util.c:346: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_set_ink_type_n':
src/gdevstp-util.c:346: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_set_dither_algorithm':
src/gdevstp-util.c:347: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_set_dither_algorithm_n':
src/gdevstp-util.c:347: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_get_papersize_by_name':
src/gdevstp-util.c:910: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_get_papersize_by_size':
src/gdevstp-util.c:958: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c:970: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_get_printer_by_index':
src/gdevstp-util.c:1022: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_get_printer_by_long_name':
src/gdevstp-util.c:1033: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_get_printer_by_driver':
src/gdevstp-util.c:1047: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_printer_get_printvars':
src/gdevstp-util.c:1099: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `verify_param':
src/gdevstp-util.c:1266: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c:1267: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_default_settings':
src/gdevstp-util.c:1363: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_maximum_settings':
src/gdevstp-util.c:1369: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: In function `stp_minimum_settings':
src/gdevstp-util.c:1375: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c: At top level:
src/gdevstp-util.c:1381: warning: static declaration for `vasprintf' follows non-static
src/gdevstp-util.c: In function `int_vasprintf':
src/gdevstp-util.c:1407: warning: cast discards qualifiers from pointer target type
src/gdevstp-util.c:1417: warning: cast discards qualifiers from pointer target type
gcc `cat ./object/cc.tr`  -O2 -DA4 -DHAVE_MKSTEMP=1 -I/usr/pkg/include -I/usr/X11R6/include -I./src -I./object  -o ./object/gdevstp-color.o -c -DDISABLE_NLS ./src/gdevstp-color.c
src/gdevstp-color.c: In function `rgb_to_rgb':
src/gdevstp-color.c:1059: error: insn does not satisfy its constraints:
(insn:HI 35 33 3244 0 0x40d28300 (set (reg:DI 31 %i7 [32])
        (fix:DI (fix:SF (reg:SF 32 %f0 [124])))) 165 {fix_truncsfdi2} (insn_list 33 (nil))
    (nil))
src/gdevstp-color.c:1059: internal compiler error: in reload_cse_simplify_operands, at reload1.c:8345
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.netbsd.org/Misc/send-pr.html> for instructions.
gmake: *** [object/gdevstp-color.o] Error 1
*** Error code 2

Stop.
make: stopped in /extra/pkgsrc/print/ghostscript
*** Error code 1

Stop.
make: stopped in /extra/pkgsrc/print/ghostscript

>How-To-Repeat:
	Build ghostscript-6.01nb4 on a sparc64 machine.  Wait (a long time
	if it's a U5 :-), watch it break..

>Fix:
	No fix, though building that file with -O0 did make it compile.
>Release-Note:
>Audit-Trail:
>Unformatted:
     gcc version:
 	Using built-in specs.
 	Configured with: /usr/src/tools/gcc/../../gnu/dist/gcc/configure --enable-long-long --disable-multilib --enable-threads --build=i386-unknown-netbsdelf --host=sparc64--netbsd --target=sparc64--netbsd
 	Thread model: posix
 	gcc version 3.3.2 (NetBSD nb1 20031026)