From dwmalone@maths.tcd.ie  Mon May 15 14:47:43 2000
Return-Path: <dwmalone@maths.tcd.ie>
Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11])
	by hub.freebsd.org (Postfix) with SMTP id 092CA37B8A3
	for <freebsd-gnats-submit@freebsd.org>; Mon, 15 May 2000 14:47:41 -0700 (PDT)
	(envelope-from dwmalone@maths.tcd.ie)
Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP
          id <aa11377@salmon>; 15 May 2000 22:47:37 +0100 (BST)
Message-Id: <200005152247.aa02372@walton.maths.tcd.ie>
Date: Mon, 15 May 2000 22:47:37 +0100 (BST)
From: dwmalone@maths.tcd.ie
Sender: dwmalone@maths.tcd.ie
Reply-To: dwmalone@maths.tcd.ie
To: FreeBSD-gnats-submit@freebsd.org
Subject: gcov not installed.
X-Send-Pr-Version: 3.2

>Number:         18574
>Category:       gnu
>Synopsis:       gcov is not installed, though the info pages age.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    obrien
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 15 14:50:00 PDT 2000
>Closed-Date:    Sat Dec 23 11:56:08 PST 2000
>Last-Modified:  Sat Dec 23 11:56:16 PST 2000
>Originator:     David Malone
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
School of Mathematics, Trinity College, Dublin, Ireland.
>Environment:

4.0-STABLE or 5.0-CURRENT

>Description:

The gcov program is not compiled or installed. It's a coverage tester
which has been part of gcc for some time now. The info pages for gcov
are installed as part of the gcc docs.

>How-To-Repeat:

Try to run gcov.

>Fix:

The following seems to work, but the building of gcc is quite
complicated so I can't tell if it is correct. I tested it with
a "make obj ; make depend ; make ; make install" in /usr/src/gnu/usr.bin/cc.
I'll test it with a make world too, but as I'm not fully clear
on the build process it would be better to have someone who
understands look at it.

% mkdir /usr/src/gnu/usr.bin/cc/gcov
% cd /usr/src/gnu/usr.bin/cc/gcov
% cat > Makefile
# $FreeBSD: $

.include "../Makefile.inc"

.PATH: ${GCCDIR}

PROG=   gcov
SRCS=   gcov.c
NOMAN=  1

CFLAGS+= -DDEFAULT_TARGET_VERSION=\"$(version)\"
CFLAGS+= -DDEFAULT_TARGET_MACHINE=\"$(target)\"

DPADD+= ${LIBCC_INT} ${LIBCC_FBSD}
LDADD+= ${LIBCC_INT} ${LIBCC_FBSD}

.include <bsd.prog.mk>
% cd ..
% patch
Index: Makefile
===================================================================
RCS file: /cvs/FreeBSD-CVS/src/gnu/usr.bin/cc/Makefile,v
retrieving revision 1.22
diff -u -r1.22 Makefile
--- Makefile    2000/03/19 23:47:50     1.22
+++ Makefile    2000/05/15 21:25:49
@@ -3,7 +3,7 @@
 # The order of some of these are rather important.  Some depend on previous
 # subdirs.
 
-SUBDIR= cc_fbsd cc_tools cc_int cccp cc1 cc
+SUBDIR= cc_fbsd cc_tools cc_int cccp cc1 cc gcov
 
 .if !defined(NO_CPP)
 SUBDIR+= cpp


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->obrien 
Responsible-Changed-By: dwmalone 
Responsible-Changed-When: Wed Jul 12 13:49:29 PDT 2000 
Responsible-Changed-Why:  
For someone who knows how the compiler gets built. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=18574 
State-Changed-From-To: open->closed 
State-Changed-By: obrien 
State-Changed-When: Sat Dec 23 11:56:08 PST 2000 
State-Changed-Why:  
added 

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