Bug 18574

Summary: gcov is not installed, though the info pages age.
Product: Base System Reporter: dwmalone <dwmalone>
Component: gnuAssignee: David E. O'Brien <obrien>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description dwmalone 2000-05-15 22:50:00 UTC
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.

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
How-To-Repeat: 
Try to run gcov.
Comment 1 dwmalone freebsd_committer freebsd_triage 2000-07-12 21:49:29 UTC
Responsible Changed
From-To: freebsd-bugs->obrien

For someone who knows how the compiler gets built.
Comment 2 David E. O'Brien freebsd_committer freebsd_triage 2000-12-23 19:56:08 UTC
State Changed
From-To: open->closed

added