All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] LTP fails to build for Application Code Coverage
@ 2009-10-30 13:24 Subrata Modak
  2009-10-30 14:25 ` Peter Oberparleiter
  0 siblings, 1 reply; 3+ messages in thread
From: Subrata Modak @ 2009-10-30 13:24 UTC (permalink / raw)
  To: Peter Oberparleiter; +Cc: ltp-list, ltp-coverage

Hi Peter,

I was just trying to build LTP for finding itś own code coverage, but
with the GCC options mentioned in lcov/INSTALL, i get the following
build failure. Is there something i am missing:

# ./configure
# make CFLAGS=\ -fprofile-arcs\ -ftest-coverage\ -Wall
gcc -fprofile-arcs -ftest-coverage -Wall   -c -o ltp-pan.o ltp-pan.c
ltp-pan.c: In function ‘main’:
ltp-pan.c:484: warning: call to function ‘wait_handler’ without a real
prototype
zoolib.h:52: note: ‘wait_handler’ was declared here
ltp-pan.c:550: warning: call to function ‘wait_handler’ without a real
prototype
zoolib.h:52: note: ‘wait_handler’ was declared here
ltp-pan.c:559: warning: call to function ‘wait_handler’ without a real
prototype
zoolib.h:52: note: ‘wait_handler’ was declared here
ltp-pan.c:574: warning: call to function ‘wait_handler’ without a real
prototype
zoolib.h:52: note: ‘wait_handler’ was declared here
gcc -fprofile-arcs -ftest-coverage -Wall   -c -o zoolib.o zoolib.c
gcc -fprofile-arcs -ftest-coverage -Wall   -c -o splitstr.o splitstr.c
gcc   ltp-pan.o zoolib.o splitstr.o -lm  -o ltp-pan
ltp-pan.o: In function `run_child':
ltp-pan.c:(.text+0x6d54): undefined reference to `__gcov_fork'
ltp-pan.c:(.text+0x7bda): undefined reference to `__gcov_execlp'
ltp-pan.c:(.text+0x7e15): undefined reference to `__gcov_execvp'
ltp-pan.o: In function `global constructors keyed to 65535_0_Debug':
ltp-pan.c:(.text+0xaf79): undefined reference to `__gcov_init'
ltp-pan.o:(.data+0x44): undefined reference to `__gcov_merge_add'
zoolib.o: In function `global constructors keyed to
65535_0_zoo_getname':
zoolib.c:(.text+0x29ab): undefined reference to `__gcov_init'
zoolib.o:(.data+0x24): undefined reference to `__gcov_merge_add'
splitstr.o: In function `global constructors keyed to 65535_0_splitstr':
splitstr.c:(.text+0x565): undefined reference to `__gcov_init'
splitstr.o:(.data+0x24): undefined reference to `__gcov_merge_add'
collect2: ld returned 1 exit status
make[1]: *** [ltp-pan] Error 1
make[1]: Leaving directory `/root/subrata/ltp/ltp-full-20090930/pan'
make: *** [all] Error 2

And this is running on a gcov enabled kernel.
# gcc --version
gcc (SUSE Linux) 4.3.2 [gcc-4_3-branch revision 141291]
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

# rpm -qa | grep -i gcc
gcc43-info-4.3.3_20081022-11.18
gcc43-c++-4.3.3_20081022-11.18
gcc43-debuginfo-4.3.3_20081022-11.18
libgcc43-4.3.3_20081022-11.18
gcc-info-4.3-62.198
gcc43-locale-4.3.3_20081022-11.18
gcc-c++-4.3-62.198
gcc33-debuginfo-3.3.3-11.9
gcc-locale-4.3-62.198
gcc43-4.3.3_20081022-11.18
gcc-4.3-62.198

Regards--
Subrata



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-10-30 19:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-30 13:24 [LTP] LTP fails to build for Application Code Coverage Subrata Modak
2009-10-30 14:25 ` Peter Oberparleiter
2009-10-30 19:01   ` Garrett Cooper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.