Bug 16220

Summary: -frepo is broken in gcc-devel and egcs ports
Product: Ports & Packages Reporter: fjoe <fjoe>
Component: Individual Port(s)Assignee: Max Khon <fjoe>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description fjoe 2000-01-20 16:00:01 UTC
-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.

Fix: 

gcc-devel or egcs ports (at least collect2) should be built with correct
cplus-dem.c (with which ld is linked)
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 ---
Comment 1 cpiazza freebsd_committer freebsd_triage 2000-01-22 03:24:20 UTC
Responsible Changed
From-To: freebsd-ports->obrien

OVer to maintainer 
Comment 2 David E. O'Brien freebsd_committer freebsd_triage 2002-10-20 04:42:46 UTC
Responsible Changed
From-To: obrien->fjoe

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.
Comment 3 Max Khon freebsd_committer freebsd_triage 2002-10-29 00:15:01 UTC
State Changed
From-To: open->closed

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)