From nobody@FreeBSD.org  Tue Aug 13 14:05:43 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 97A3037B400
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 13 Aug 2002 14:05:43 -0700 (PDT)
Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C07D643E77
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 13 Aug 2002 14:05:42 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g7DL5fOT074870
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 13 Aug 2002 14:05:41 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.4/8.12.4/Submit) id g7DL5ffs074869;
	Tue, 13 Aug 2002 14:05:41 -0700 (PDT)
Message-Id: <200208132105.g7DL5ffs074869@www.freebsd.org>
Date: Tue, 13 Aug 2002 14:05:41 -0700 (PDT)
From: mkd <mkd@mnm.uib.es>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Libraries Qt3 (3.0.5_1) doesn't compile
X-Send-Pr-Version: www-1.0

>Number:         41639
>Category:       ports
>Synopsis:       Libraries Qt3 (3.0.5_1) doesn't compile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kde
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 13 14:10:01 PDT 2002
>Closed-Date:    Mon Aug 26 11:07:22 PDT 2002
>Last-Modified:  Mon Aug 26 11:07:22 PDT 2002
>Originator:     mkd
>Release:        4.6
>Organization:
>Environment:
FreeBSD mkd.antitodo.sytes.net 4.6-STABLE FreeBSD 4.6-STABLE #5: Tue Aug 13 22:15:04 CEST 2002     r
oot@mkd.antitodo.sytes.net:/usr/src/sys/compile/MYKERNEL  i386
>Description:
      The c++ tells that the file /usr/ports/x11-toolkits/qt30/work/qt-x11-free-3.0.5/src/.obj/release-shared-mt/qsvgdevice.o got an Error 2 [sub-src], 'cause qsgdevice.ccp:273 --> Unable to generate reloads for:
(insn 838 836 840 (parallel[
            (set (reg:SI 6 %ebp)
                (fix:SI (fix:DF (reg/v:DF 190))))
            (clobber (mem:HI (plus:SI (reg:SI 6 %ebp)
                        (const_int -38 [0xffffffda])) 0))
            (clobber (mem:HI (plus:SI (reg:SI 6 %ebp)
                        (const_int -40 [0xffffffd8])) 0))
            (clobber (mem:SI (plus:SI (reg:SI 6 %ebp)
                        (const_int -44 [0xffffffd4])) 0))
            (clobber (scratch:HI))
        ] ) 149 {fix_truncdfsi2+1} (insn_list 812 (nil))
    (expr_list:REG_UNUSED (scratch:HI)
        (nil)))
>How-To-Repeat:
      cd /usr/ports/x11-toolkits/qt30/ && make install
>Fix:
      
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->kde 
Responsible-Changed-By: okazaki 
Responsible-Changed-When: Sat Aug 24 02:04:43 PDT 2002 
Responsible-Changed-Why:  
over to the maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41639 

From: ports@geeksrus.net
To: freebsd-gnats-submit@FreeBSD.org, mkd@mnm.uib.es
Cc:  
Subject: Re: ports/41639: Libraries Qt3 (3.0.5_1) doe
Date: Sat, 24 Aug 2002 05:45:21 -0400 (EDT)

 Do you have any strange compile options (or any at all) in /etc/make.conf
 (that is, are you setting CFLAGS to a default value there)?
 
 This is a gcc bug, clearly. 
 
 I last compiled qt 3.0.5_2 (no code changes there, IIRC) on 2002/08/18,
 on a  20020816 snapshot system. So I would have been using the same or
 newer version of gcc that you were (assuming you were not trying to use
 a version of gcc 3.x, which is not supported on -STABLE).
 
 
 
 
 
 
 Please try to compile with system gcc again. I have no other ideas now.
 

From: Johni el kolgao <mkd@mnm.uib.es>
To: ports@geeksrus.net
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/41639: Libraries Qt3 (3.0.5_1) doe
Date: Sat, 24 Aug 2002 15:58:06 +0200 (CEST)

 On Sat, 24 Aug 2002 ports@geeksrus.net wrote:
 
 > Do you have any strange compile options (or any at all) in /etc/make.conf
 > (that is, are you setting CFLAGS to a default value there)?
 
 	CFLAGS = -O2 -pipe -march=k6 -mcpu=k6 -fomit-frame-pointer
 	CXXFLAGS += -O3
 
 > This is a gcc bug, clearly.
 
 	How can I use gcc to build this ?? By default, when I type: make
 	install, it uses cc and c++ :-?
 
 > I last compiled qt 3.0.5_2 (no code changes there, IIRC) on 2002/08/18,
 > on a  20020816 snapshot system. So I would have been using the same or
 > newer version of gcc that you were (assuming you were not trying to use
 > a version of gcc 3.x, which is not supported on -STABLE).
 
 	gcc version for me is 2.95.x
 
 > Please try to compile with system gcc again. I have no other ideas now.
 
 	I don't know how to use GCC instead of cc (c++)
 
 							/*** mkd ***/
 
 ----------------------
 http://mnm.uib.es/~mkd
 ----------------------
 

From: Alan E <alane@geeksrus.net>
To: Johni el kolgao <mkd@mnm.uib.es>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/41639: Libraries Qt3 (3.0.5_1) doe
Date: Sat, 24 Aug 2002 11:26:45 -0400

 On Sat, Aug 24, 2002 at 03:58:06PM +0200, Johni el kolgao wrote:
 >On Sat, 24 Aug 2002 ports@geeksrus.net wrote:
 >
 >> Do you have any strange compile options (or any at all) in /etc/make.conf
 >> (that is, are you setting CFLAGS to a default value there)?
 >
 >	CFLAGS = -O2 -pipe -march=k6 -mcpu=k6 -fomit-frame-pointer
 >	CXXFLAGS += -O3
 
 Get rid of the "CXXFLAGS += -O3". If that still fails, change the -O2
 to -O.
 
 -- 
 AlanE
 KDE-FreeBSD Team (http://freebsd.kde.org/)

From: Johni el kolgao <mkd@mnm.uib.es>
To: Alan E <alane@geeksrus.net>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/41639: Libraries Qt3 (3.0.5_1) doe
Date: Sat, 24 Aug 2002 21:53:49 +0200 (CEST)

 On Sat, 24 Aug 2002, Alan E wrote:
 
 > Get rid of the "CXXFLAGS += -O3". If that still fails, change the -O2
 > to -O.
 
 	Thanks, it built :-)
 
 							/*** mkd ***/
 
 ----------------------
 http://mnm.uib.es/~mkd
 ----------------------
 
State-Changed-From-To: open->closed 
State-Changed-By: alane 
State-Changed-When: Mon Aug 26 11:05:43 PDT 2002 
State-Changed-Why:  
User had CXXFLAGS setting in /etc/make.conf with -O3, which apparently 
tripped a bug that blew the mind of gcc's register allocator. Removing 
this setting allowed compilation. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41639 
>Unformatted:
