Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 May 2000 22:47:37 +0100 (BST)
From:      dwmalone@maths.tcd.ie
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   gnu/18574: gcov not installed.
Message-ID:  <200005152247.aa02372@walton.maths.tcd.ie>

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

>Number:         18574
>Category:       gnu
>Synopsis:       gcov is not installed, though the info pages age.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 15 14:50:00 PDT 2000
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


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




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