[This message is posted to both Mandrake Linux mailing list
        and Gimp devel mailing list]
        
        This is happening with gimp 1.1.15 and not with gimp 1.1.14
        when building RPM:

  -O6 -fomit-frame-pointer -fno-exceptions -fno-rtti -pipe -s -mpentiumpro
  -mcpu
  =pentiumpro -march=pentiumpro -ffast-math -fexpensive-optimizations
  -malign-loop
  s=2 -malign-jumps=2 -malign-functions=2  -Wall -c print-ps.c
  gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../..
  -I/usr/X
  11R6/include -I/usr/lib/glib/include
  -I/usr/include -
  DLOCALEDIR=\""/usr/share/locale"\"                                              
    -O6 -fomit-frame-pointer -fno-exceptions -fno-rtti -pipe -s -mpentiumpro
    -mcpu
    =pentiumpro -march=pentiumpro -ffast-math -fexpensive-optimizations
    -malign-loop
    s=2 -malign-jumps=2 -malign-functions=2  -Wall -c print-util.c
    print-util.c: In function `dither_cmyk':
    print-util.c:1046: internal error--insn does not satisfy its constraints:
    (insn:HI 4670 5222 5219 (set (reg:DI 4 %esi)
            (if_then_else:DI (le:DI (reg:DI 0 %eax)
                            (reg:DI 4 %esi))
                        (reg:DI 0 %eax)
                                    (reg:DI 4 %esi))) 405 {movdicc+2}
                                    (insn_list 2317 (insn_list 2324 (n
                                    il)))
                                        (expr_list:REG_DEAD (reg:DI 0 %eax)
                                                (nil)))
    ../../gcc/toplev.c:1438: Internal compiler error in function fatal_insn
    cpp: output pipe has been closed
    make[3]: *** [print-util.o] Error 1
    make[3]: Leaving directory `/usr/src/RPM/BUILD/gimp-1.1.15/plug-ins/print'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/usr/src/RPM/BUILD/gimp-1.1.15/plug-ins'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/usr/src/RPM/BUILD/gimp-1.1.15'
    make: *** [all-recursive-am] Error 2
    Bad exit status from /var/tmp/rpm-tmp.51572 (%build)
    [root@mandrake SPECS]# 


        I have located the error and it's the -march=pentiumpro switch
        in the Mandrake rpmrc. When removed from the rpmrc,, the
        compilation went fine and three RPM files are build (there's
        problem with gpc man page, but it's easy to fix).

        Here's the complete options line from Mandrake's rpmrc:

optflags: i686 -O6      -fomit-frame-pointer \
                        -fno-exceptions \
                        -fno-rtti \
                        -pipe \
                        -s \
                        -mpentiumpro \
                        -mcpu=pentiumpro \
                        -march=pentiumpro \
                        -ffast-math \
                        -fexpensive-optimizations \
                        -malign-loops=2 \
                        -malign-jumps=2 \
                        -malign-functions=2


        My configuration:

[root@mandrake /root]# cat /proc/cpuinfo 
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 7
model name      : Pentium III (Katmai)
stepping        : 3
cpu MHz         : 501.137958
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
sep_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 
mmx osfxsr kni
bogomips        : 499.71

[root@mandrake /root]# 

{mandrake}[~]$ rpm -qa | grep 'kernel\|glib-\|gtk\|glibc\|gcc'
glibc-2.1.1-16mdk
pgcc-1.1.3-3mdk
pgcc-c++-1.1.3-3mdk
colorgcc-1.1.3-3mdk
compat-glibc-5.3-2.0.7.1
glib-devel-1.2.6-1
kernel-headers-2.2.13-7mdk
glibc-devel-2.1.1-16mdk
glibc-profile-2.1.1-16mdk
kernel-2.2.13-7mdk
pgcc-objc-1.1.3-3mdk
kernel-source-2.2.13-7mdk
glib-1.2.6-1
gtk+-1.2.6-1
gtk+-devel-1.2.6-1
{mandrake}[~]$ 

        System is Mandrake 6.1 with no special patches etc.             

        When plug-ins/print is removed from the Makefile, build goes
        well even with the -march=pentiumpro flag.

        Any other informations I should provide in order to catch the
        bug easily?

        
-- 
      v
Davor Cengija
[EMAIL PROTECTED]
===================================
"Please allow 30 days for delivery"

Reply via email to