Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Aug 1999 07:46:35 -0700 (PDT)
From:      imura@cs.titech.ac.jp
To:        freebsd-gnats-submit@freebsd.org
Subject:   ports/13224: bug of gcc-2.95? (-D__FreeBSD__=3=4)
Message-ID:  <19990818144635.10C5314D9B@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         13224
>Category:       ports
>Synopsis:       bug of gcc-2.95? (-D__FreeBSD__=3=4)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 18 07:50:03 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Ryuichiro Imura
>Release:        FreeBSD 3.2-RELEASE i386
>Organization:
>Environment:
FreeBSD 3.2-RELEASE #16: Fri Jul 30 06:39:30 JST 1999
    root@snowwhite.rychi.com:/usr/src/sys/compile/KP6BS
>Description:
If a code have "__FreeBSD__" compile fails, because
$(LOCALBASE)/lib/gcc-lib/i386-portbld-freebsd3.2/2.95/specs says
"-D__FreeBSD__=3=4" which comes from $(WRKSRC)/gcc/specs, I'm not sure.
This may be $(WRKSRC)/gcc/stage1/specs or $(WRKSRC)/gcc/stage2/specs.
>How-To-Repeat:
Compile a code which have "__FreeBSD__".
>Fix:
Following patches may solve the problem.

--- gcc/specs.orig      Wed Aug 18 23:33:34 1999
+++ gcc/specs   Wed Aug 18 23:34:22 1999
@@ -35,7 +35,7 @@
 %{funsigned-char:-D__CHAR_UNSIGNED__}
 
 *predefines:
--Di386 -Acpu(i386) -Amachine(i386) -Dunix -D__FreeBSD__=3=4 -Asystem(unix) -Asystem(FreeB
SD) 
+-Di386 -Acpu(i386) -Amachine(i386) -Dunix -D__FreeBSD__=3 -Asystem(unix) -Asystem(FreeBSD
) 
 
 *cross_compile:
 0
--- gcc/stage1/specs.orig       Wed Aug 18 23:33:43 1999
+++ gcc/stage1/specs    Wed Aug 18 23:34:12 1999
@@ -35,7 +35,7 @@
 %{funsigned-char:-D__CHAR_UNSIGNED__}
 
 *predefines:
--Di386 -Acpu(i386) -Amachine(i386) -Dunix -D__FreeBSD__=3=4 -Asystem(unix) -Asystem(FreeB
SD) 
+-Di386 -Acpu(i386) -Amachine(i386) -Dunix -D__FreeBSD__=3 -Asystem(unix) -Asystem(FreeBSD
) 
 
 *cross_compile:
 0
--- gcc/stage2/specs.orig       Wed Aug 18 23:33:49 1999
+++ gcc/stage2/specs    Wed Aug 18 23:33:58 1999
@@ -35,7 +35,7 @@
 %{funsigned-char:-D__CHAR_UNSIGNED__}
 
 *predefines:
--Di386 -Acpu(i386) -Amachine(i386) -Dunix -D__FreeBSD__=3=4 -Asystem(unix) -Asystem(FreeB
SD) 
+-Di386 -Acpu(i386) -Amachine(i386) -Dunix -D__FreeBSD__=3 -Asystem(unix) -Asystem(FreeBSD
) 
 
 *cross_compile:
 0


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


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990818144635.10C5314D9B>