NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

toolchain/37892: GCOV_VERSION doesn't exist



>Number:         37892
>Category:       toolchain
>Synopsis:       GCOV_VERSION doesn't exist
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 28 22:15:00 +0000 2008
>Originator:     Jorge Niedbalski Ramirez
>Release:        3.0
>Organization:
critix 
>Environment:
NetBSD  3.0 NetBSD 3.0 (XEN0) #0: Mon Dec 19 01:27:58 UTC 2005  
builds%works.netbsd.org@localhost:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/XEN0
 i386

>Description:
For some reason, the Makefile doesn't create the gcov-iov.h file with the 
version hex code to compile gcc4 , the GCOV_VERSION variable doesn't appear to 
be defined.

# make
all ===> host-libiberty
all ===> libiberty
all ===> backend
#   compile  backend/final.o
/usr/src/tooldir.NetBSD-3.0-i386/bin/i386--netbsdelf-gcc -O2  -Werror   
-Wno-stack-protector  -I. -I/usr/src/gnu/usr.bin/gcc4/backend/../arch/i386 
-DIN_GCC -DHAVE_CONFIG_H -I/usr/src/gnu/dist/gcc4/gcc 
-I/usr/src/gnu/dist/gcc4/gcc/. -I/usr/src/gnu/dist/gcc4/gcc/../include 
-I/usr/src/gnu/dist/gcc4/gcc/../libcpp/include  
-DTARGET_NAME=\"i386--netbsdelf\" -DLOCALEDIR=\"/usr/share/locale\" 
-DNETBSD_NATIVE -DENABLE_SHARED_LIBGCC   -nostdinc -isystem /usr/include -c    
/usr/src/gnu/dist/gcc4/gcc/final.c -o final.o.tmp
In file included from /usr/src/gnu/dist/gcc4/gcc/coverage.h:25,
                 from /usr/src/gnu/dist/gcc4/gcc/final.c:78:
/usr/src/gnu/dist/gcc4/gcc/gcov-io.h:284:22: error: gcov-iov.h: No such file or 
directory
*** Error code 1

Stop.
make: stopped in /usr/src/gnu/usr.bin/gcc4/backend
*** Error code 1

Stop.
make: stopped in /usr/src/gnu/usr.bin/gcc4


>How-To-Repeat:
# cd /usr/src/gnu/usr.bin/gcc4
# make


>Fix:
Compile the gcov-iov.c and generate manually the version file.

# cd /usr/src/gnu/dist/gcc4/gcc/   
# gcc gcov-iov.c -o gcov-iov.o
# ./gcov-iov.o `cat BASE-VER` `cat DEV-PHASE` > gcov-iov.h

/* Generated automatically by the program `./gcov-iov.o'
   from `4.1.3 (4 1) and prerelease (p)'.  */

#define GCOV_VERSION ((gcov_unsigned_t)0x34303170)  /* 401p */











Home | Main Index | Thread Index | Old Index