From fjoe@iclub.nsu.ru  Thu Jan 20 07:52:34 2000
Return-Path: <fjoe@iclub.nsu.ru>
Received: from iclub.nsu.ru (iclub.nsu.ru [193.124.222.66])
	by hub.freebsd.org (Postfix) with ESMTP id 05C2514E4F
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 20 Jan 2000 07:52:24 -0800 (PST)
	(envelope-from fjoe@iclub.nsu.ru)
Received: (from fjoe@localhost)
	by iclub.nsu.ru (8.9.3/8.9.3) id VAA71719;
	Thu, 20 Jan 2000 21:51:47 +0600 (NS)
	(envelope-from fjoe)
Message-Id: <200001201551.VAA71719@iclub.nsu.ru>
Date: Thu, 20 Jan 2000 21:51:47 +0600 (NS)
From: Max Khon <fjoe@iclub.nsu.ru>
Reply-To: fjoe@iclub.nsu.ru
To: FreeBSD-gnats-submit@freebsd.org
Subject: -frepo is broken in gcc-devel and egcs ports
X-Send-Pr-Version: 3.2

>Number:         16220
>Category:       ports
>Synopsis:       -frepo is broken in gcc-devel and egcs ports
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    fjoe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 20 08:00:01 PST 2000
>Closed-Date:    Mon Oct 28 16:19:12 PST 2002
>Last-Modified:  Mon Oct 28 16:19:12 PST 2002
>Originator:     Max Khon
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
WebSci Technologies Inc.
>Environment:

lark:~/workshop$uname -a
FreeBSD lark.websci.ru 4.0-CURRENT FreeBSD 4.0-CURRENT #5: Wed Jan 19 14:48:14 NOVT 2000     fjoe@lark.websci.ru:/usr/src/sys/compile/lark  i386
lark:~/workshop$g++ -v
Using builtin specs.
gcc version 2.95.2 19991024 (release)
lark:~/workshop$

>Description:

-frepo is broken in gcc-devel and egcs ports.
ld is built with cplus-dem.c which differs from that one in
gcc-2.9x.xx distros.

>How-To-Repeat:

install egcs or gcc-devel ports and try to build the following program:

--- cut here (Makefile) ---
CXX=g++295 -frepo
LD=g++295

foo: foo.o
	$(LD) -o $* $>

clean:
	rm -f foo.o foo foo.rpo
--- cut here ---

--- cut here (foo.cc) ---
#include <string>
#include <vector>

main(void)
{
	std::vector<std::string> v;
	std::string s = "foo";
	v.push_back(s);
	return 0;
}
--- cut here ---

>Fix:
	
gcc-devel or egcs ports (at least collect2) should be built with correct
cplus-dem.c (with which ld is linked)

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->obrien  
Responsible-Changed-By: cpiazza 
Responsible-Changed-When: Fri Jan 21 19:24:20 PST 2000 
Responsible-Changed-Why:  
OVer to maintainer 
Responsible-Changed-From-To: obrien->fjoe 
Responsible-Changed-By: obrien 
Responsible-Changed-When: Sat Oct 19 20:42:46 PDT 2002 
Responsible-Changed-Why:  
Max is now a committer, and can deside if he still wants something done 
about this.  I am glad to review changes to RELENG_4 binutils. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=16220 
State-Changed-From-To: open->closed 
State-Changed-By: fjoe 
State-Changed-When: Mon Oct 28 16:15:01 PST 2002 
State-Changed-Why:  
Currently there are no problems with -frepo in 
ports/lang/gcc30 (gcc-3.0.4) 
ports/lang/gcc31 (gcc-3.1.1_20020909) 
ports/lang/gcc32 (gcc-3.2_20020902) 
ports/lang/gcc33 (gcc-3.3_20021014) 
and 
GNU ld version 2.12.1 [FreeBSD] 2002-07-20 (stock binutils from 
RELENG_4) 

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