Subject: pkg/23124: pkgsrc/graphics/netpbm exposes "internal compiler error" under NetBSD-current sparc64
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <rquinn@sec.sprint.net>
List: netbsd-bugs
Date: 10/10/2003 15:20:53
>Number:         23124
>Category:       pkg
>Synopsis:       pkgsrc/graphics/netpbm exposes "internal compiler error" under NetBSD-current sparc64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 10 15:21:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Rob Quinn
>Release:        netbsd-current, pkgsrc-current
>Organization:
>Environment:
NetBSD struck.sec.sprint.net 1.6ZC NetBSD 1.6ZC (STRUCK) #26: Fri Oct 10 03:13:05 EDT 2003  root@struck.sec.sprint.net:/usr/obj/STRUCK sparc64

>Description:
Building netpbm fails with an "internal compiler error" on sparc64.  Compiles fine on my
NetBSD/i386 box.


 Is this a gcc bug, a port-sparc bug, or a pkgsrc bug?



cc -c -I/usr/obj/pkg/graphics/netpbm/work/netpbm-10.11.8/converter/other -I. -I/usr/obj/pkg/graphics/
netpbm/work/netpbm-10.11.8/util  -I/usr/obj/pkg/graphics/netpbm/work/.buildlink/include -I/usr/obj/pk
g/graphics/netpbm/work/.buildlink/include -I/usr/obj/pkg/graphics/netpbm/work/.buildlink/include -I/u
sr/obj/pkg/graphics/netpbm/work/.buildlink/include -I/usr/obj/pkg/graphics/netpbm/work/netpbm-10.11.8
/urt \
    -O2 -I/usr/pkg/include  -o exif.o exif.c
exif.c: In function `ProcessExifDir':
exif.c:645: error: insn does not satisfy its constraints:
(insn:HI 1314 1309 2057 112 0x40ab06c0 (set (reg:DI 31 %i7 [32])
        (fix:DI (fix:DF (reg:DF 32 %f0 [507])))) 166 {fix_truncdfdi2} (insn_list 1310 (nil))
    (nil))
exif.c:645: 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://gcc.gnu.org/bugs.html> for instructions.

>How-To-Repeat:
#which cc
/usr/bin/cc
#cc -v
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.1

cd /usr/pkgsrc/graphics/xpm


gmake[2]: Entering directory `/usr/obj/pkg/graphics/netpbm/work/netpbm-10.11.8/converter/other'
cc -c -I/usr/obj/pkg/graphics/netpbm/work/netpbm-10.11.8/converter/other -I. -I/usr/obj/pkg/graphics/
netpbm/work/netpbm-10.11.8/util  -I/usr/obj/pkg/graphics/netpbm/work/.buildlink/include -I/usr/obj/pk
g/graphics/netpbm/work/.buildlink/include -I/usr/obj/pkg/graphics/netpbm/work/.buildlink/include -I/u
sr/obj/pkg/graphics/netpbm/work/.buildlink/include -I/usr/obj/pkg/graphics/netpbm/work/netpbm-10.11.8
/urt \
    -O2 -I/usr/pkg/include  -o exif.o exif.c
exif.c: In function `ProcessExifDir':
exif.c:645: error: insn does not satisfy its constraints:
(insn:HI 1314 1309 2057 112 0x40ab06c0 (set (reg:DI 31 %i7 [32])
        (fix:DI (fix:DF (reg:DF 32 %f0 [507])))) 166 {fix_truncdfdi2} (insn_list 1310 (nil))
    (nil))
exif.c:645: 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://gcc.gnu.org/bugs.html> for instructions.
gmake[2]: *** [exif.o] Error 1
gmake[2]: Leaving directory `/usr/obj/pkg/graphics/netpbm/work/netpbm-10.11.8/converter/other'
gmake[1]: *** [other/all] Error 2
gmake[1]: Leaving directory `/usr/obj/pkg/graphics/netpbm/work/netpbm-10.11.8/converter'
gmake: *** [converter/all] Error 2
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/graphics/netpbm
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/graphics/netpbm
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/graphics/netpbm
*** Error code 1

Stop.

>Fix:
Workaround: Manually compile exif.c with -O0 instead  of -O2.

>Release-Note:
>Audit-Trail:
>Unformatted: