From richard@lenin.adaxas.net  Sat Oct 22 13:58:39 2005
Return-Path: <richard@lenin.adaxas.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0CD2F16A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 22 Oct 2005 13:58:39 +0000 (GMT)
	(envelope-from richard@lenin.adaxas.net)
Received: from lenin.adaxas.net (83-64-231-2.klausgasse.xdsl-line.inode.at [83.64.231.2])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D501F43D46
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 22 Oct 2005 13:58:37 +0000 (GMT)
	(envelope-from richard@lenin.adaxas.net)
Received: from lenin.adaxas.net (localhost [127.0.0.1])
	by lenin.adaxas.net (8.13.1/8.13.1) with ESMTP id j9MDwZ6T073513
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Sat, 22 Oct 2005 15:58:35 +0200 (CEST)
	(envelope-from richard@lenin.adaxas.net)
Received: (from richard@localhost)
	by lenin.adaxas.net (8.13.1/8.13.1/Submit) id j9MDwYug073508;
	Sat, 22 Oct 2005 15:58:34 +0200 (CEST)
	(envelope-from richard)
Message-Id: <200510221358.j9MDwYug073508@lenin.adaxas.net>
Date: Sat, 22 Oct 2005 15:58:34 +0200 (CEST)
From: Richard Hirner <richard@hirner.at>
Reply-To: Richard Hirner <richard@hirner.at>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Richard Hirner <richard@hirner.at>, <devvv@devvv.de>
Subject: FreeBSD specific gcc compiler error
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         87843
>Category:       bin
>Synopsis:       FreeBSD specific gcc compiler error
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 22 14:00:28 GMT 2005
>Closed-Date:    Wed May 30 14:43:09 GMT 2007
>Last-Modified:  Wed May 30 14:43:09 GMT 2007
>Originator:     Richard Hirner
>Release:        FreeBSD 5.3-RELEASE-p18 i386
>Organization:
>Environment:
System: FreeBSD lenin.adaxas.net 5.3-RELEASE-p18 FreeBSD 5.3-RELEASE-p18 #7: Mon Jul 11 15:26:16 CEST 2005 toor@lenin.adaxas.net:/usr/obj/usr/src/sys/DEVVV01 i386


	
>Description:
Please note that I have reported this issue to gcc Bugzilla and they
said it has to be a FreeBSD specific problem. See
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24484

PROBLEM:
Tried to compile libapreq2-2.06 from the FreeBSD ports collection. Failed with
this message:
---------------------------
cc -DHAVE_CONFIG_H -I. -I. -I../include
-I/usr/local/include/apache2/modules/perl -I/usr/local/include/apache2
-I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -O -pipe -march=athlon -c
util.c -MT util.lo -MD -MP -MF .deps/util.TPlo  -fPIC -DPIC -o .libs/util.o
util.c: In function `apreq_atoi64f':
util.c:52: error: unrecognizable insn:
(insn 66 172 67 8 util.c:44 (set (reg/f:SI 75)
        (match_insn 677090144 ("C"))) -1 (nil)
    (nil))
util.c:52: internal compiler error: in extract_insn, at recog.c:2083
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
---------------------------

SYSTEM:
FreeBSD 5.3-RELEASE-p18 (Mon Jul 11 15:26:16 CEST 2005)
/usr/obj/usr/src/sys/DEVVV01 i386

GCC VERSION:
#gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.4.2 [FreeBSD] 20040728

COMMAND LINE:
cc -DHAVE_CONFIG_H -I. -I. -I../include
-I/usr/local/include/apache2/modules/perl -I/usr/local/include/apache2
-I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -O -pipe -march=athlon -c
util.c -MT util.lo -MD -MP -MF .deps/util.TPlo  -fPIC -DPIC -o .libs/util.o
Bug appears without -march and -O, too
	
>How-To-Repeat:
portinstall libapreq2-2.06 on systems with my configuration (see above)
	
>Fix:
?
	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: rodrigc 
State-Changed-When: Sat Oct 22 15:18:17 GMT 2005 
State-Changed-Why:  
I cannot repeat the problem on FreeBSD 6.0-RC1 with: 
gcc version 3.4.4 [FreeBSD] 20050518 

You might want to try removing "-march=athlon" from your compile 
flags by commenting out the appropriate setting in /etc/make.conf 

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

From: Richard Hirner <richard@hirner.at>
To: bug-followup@FreeBSD.org, richard@hirner.at
Cc:  
Subject: Re: bin/87843: FreeBSD specific gcc compiler error
Date: Sat, 22 Oct 2005 18:53:58 +0200

 As I wrote in the gcc bug report, the compilation failed even
 if I removed -march=athlon and -O when calling cc (i.e. the optimisation
 flags were set in make.conf, then it failed, then i called the command
 line which failed without -march -O and it failed again). Interestingly,
 I have now removed CPUTYPE=athlon and CFLAGS=-O -pipe from make.conf
 and I don't get the error. How can that be? I thought it would be enough
 if I removed the optimisation flags from the one cc call that failed.
 
 However, thank you for the hint, it works now.

From: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
To: bug-followup@FreeBSD.org, richard@hirner.at
Cc:  
Subject: Re: bin/87843: FreeBSD specific gcc compiler error
Date: Wed, 30 May 2007 15:25:17 +0100

 Submitter reports that this was a local CFLAGS problem and can now be
 closed.
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Wed May 30 14:42:54 UTC 2007 
State-Changed-Why:  
Submitter notes that this was a local problem. 

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