Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
trying to compile php with gcov
vagrant@php7dev:~/php-src$ ./configure --enable-gcov --prefix=/usr/local/php70-gcov

gives, eventually:

configure: error: To enable code coverage reporting you must have LTP installed

apt-get install ltp doesn't work. So then

vagrant@php7dev:~$ mkdir ~/ltp
vagrant@php7dev:~$ cd ~/ltp
vagrant@php7dev:~/ltp$ wget https://github.com/linux-test-project/ltp/archive/20150119.tar.gz
vagrant@php7dev:~/ltp$ tar -zxvf ./20150119.tar.gz 
vagrant@php7dev:~/ltp$ cd ltp-20150119/
vagrant@php7dev:~/ltp/ltp-20150119$ ./configure
vagrant@php7dev:~/ltp/ltp-20150119$ make all
vagrant@php7dev:~/ltp/ltp-20150119$ make install

Now that appears to do something (there's lots in /opt/ltp) but ./configure --enable-gcov --prefix=/usr/local/php70-gcov still says 'you must have LTP installed'.

?

@mattparker

This comment has been minimized.

Copy link
Owner Author

mattparker commented Mar 3, 2015

Updated from config.log:

configure:21554: checking whether to include gcov symbols
configure:21568: result: yes
configure:21594: checking for lcov
configure:21624: result: no
configure:21631: checking for genhtml
configure:21661: result: no
configure:21702: error: To enable code coverage reporting you must have LTP installed

and then

LTP=''
LTP_GENHTML=''

in the list of variable.

@mattparker

This comment has been minimized.

Copy link
Owner Author

mattparker commented Mar 3, 2015

notes to self now

apt-get install lcov

works, and satisfies the php-src$ ./configure --enable-gcov --prefix=/usr/local/php70-gcov command.

Now trying

php-src$ make all && make install

let's see what happens...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.