Subject: port-mac68k/29950: gtk2 fails to compile in pixops.c
To: None <port-mac68k-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <drkilloran@speakeasy.net>
List: netbsd-bugs
Date: 04/11/2005 21:18:00
>Number:         29950
>Category:       port-mac68k
>Synopsis:       gtk2 fails to compile in pixops.c
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    port-mac68k-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 11 21:18:00 +0000 2005
>Originator:     Daniel R Killoran PhD
>Release:        2.0 (GENERICSBC)
>Organization:
>Environment:
NetBSD MacIIvx 2.0 NetBSD 2.0 (GENERICSBC) #0: Wed Dec  1 13:15:31 UTC 2004  builds@build:/big/builds/ab/netbsd-2-0-RELEASE/mac68k/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/mac68k/compile/GENERICSBC mac68k
>Description:
"make" of ethereal:

gmake[3]: Entering directory `/home/pkgsrc/x11/gtk2/work/gtk+-2.6.4/gdk-pixbuf'
Making all in pixops
gmake[4]: Entering directory `/home/pkgsrc/x11/gtk2/work/gtk+-2.6.4/gdk-pixbuf/pixops'
if /bin/sh ../../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -DG_DIS
ABLE_CAST_CHECKS -pthread -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/
pkg/include    -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED  -DPREFIX="\"/usr/pkg\""  -I
/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/X11R6/include  -O2 -pthread -I
/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/X11R6/include -Wall -MT pixops
.lo -MD -MP -MF ".deps/pixops.Tpo" \
  -c -o pixops.lo `test -f 'pixops.c' || echo './'`pixops.c; \
then mv -f ".deps/pixops.Tpo" ".deps/pixops.Plo"; \
else rm -f ".deps/pixops.Tpo"; exit 1; \
fi
mkdir .libs
 cc -DHAVE_CONFIG_H -I. -I../.. -DG_DISABLE_CAST_CHECKS -pthread -I/home/pkgsrc/x11/gtk2/work/.bui
ldlink/include/glib/glib-2.0 -I/home/pkgsrc/x11/gtk2/work/.buildlink/lib/glib-2.0/include -I/home/
pkgsrc/x11/gtk2/work/.buildlink/include -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DP
REFIX=\"/usr/pkg\" -I/home/pkgsrc/x11/gtk2/work/.buildlink/include/freetype2 -I/home/pkgsrc/x11/gt
k2/work/.x11-buildlink/include -O2 -pthread -Wall -MT pixops.lo -MD -MP -MF .deps/pixops.Tpo -c pi
xops.c  -fPIC -DPIC -o .libs/pixops.o
pixops.c: In function `linear_box_half':
pixops.c:1307: error: unrecognizable insn:
(insn 144 125 62 6 0x0 (set (reg:DF 16 %fp0)
        (const_double:DF 0 [0x0] 0.0 [0x0.0p+0])) -1 (nil)
    (nil))
pixops.c:1307: internal compiler error: in extract_insn, at recog.c:2175
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.netbsd.org/Misc/send-pr.html> for instructions.
gmake[4]: *** [pixops.lo] Error 1
gmake[4]: Leaving directory `/home/pkgsrc/x11/gtk2/work/gtk+-2.6.4/gdk-pixbuf/pixops'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/home/pkgsrc/x11/gtk2/work/gtk+-2.6.4/gdk-pixbuf'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/pkgsrc/x11/gtk2/work/gtk+-2.6.4/gdk-pixbuf'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/pkgsrc/x11/gtk2/work/gtk+-2.6.4'
gmake: *** [all] Error 2
*** Error code 2

Stop.
make: stopped in /home/pkgsrc/x11/gtk2
===>
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /home/pkgsrc/x11/gtk2/work/.work.log
===>
*** Error code 1

Stop.
make: stopped in /home/pkgsrc/x11/gtk2
*** Error code 1

Stop.
make: stopped in /home/pkgsrc/x11/gtk2
*** Error code 1

Stop.
make: stopped in /home/pkgsrc/net/ethereal
*** Error code 1

Stop.
make: stopped in /home/pkgsrc/net/ethereal
MacIIvx# Apr 11 16:17:24 MacIIvx ntpd[282]: time reset +869.451982 s
Apr 11 16:17:24 MacIIvx ntpd[282]: frequency error 576769 PPM exceeds tolerance 500 PPM
Apr 11 16:44:14 MacIIvx ntpd[282]: frequency error 500 PPM exceeds tolerance 500 PPM

MacIIvx# pwd
/home/pkgsrc/net/ethereal

>How-To-Repeat:
"make"  ethereal
This is the function:
/* Computes the integral from b0 to b1 of
 *
 * f(x) = x; 0 <= x < 1
 * f(x) = 0; otherwise
 *
 * We combine two of these to compute the convolution of
 * a box filter with a triangular spike.
 */
static double
linear_box_half (double b0, double b1)
{
  double a0, a1;
  double x0, x1;

  a0 = 0.;
  a1 = 1.;

  if (a0 < b0)
    {
      if (a1 > b0)
        {
          x0 = b0;
          x1 = MIN (a1, b1);
        }
      else
        return 0;
    }
  else
    {
      if (b1 > a0)
        {
          x0 = a0;
          x1 = MIN (a1, b1);
        }
      else
        return 0;
    }

  return 0.5 * (x1*x1 - x0*x0);
}

>Fix:
unknown