On 03/07/16 15:46, Walter F.J. Mueller wrote:
Hi,
I wanted multiple versions of ghdl on my system (e.g. 0.33 and 0.34dev).
So I installed them into different paths and added a softlink switch like
ln -s ..../ghdl/ghdl-0.33-llvm/bin/ghdl ghdl-0.33-llvm
ln -s ..../ghdl/ghdl-0.33-gcc/bin/ghdl ghdl-0.33-gcc
ln -s ..../ghdl/ghdl-0.34dev-gcc/bin/ghdl ghdl-0.34dev-gcc
ln -s ghdl-0.34dev-gcc ghdl
In effect ghdl is reached after following two soft links.
Works fine for normal ghdl compile and run activities.
But this fails in a strange way when coverage is enabled.
When I compile with coverage, thus with
ghdl -m -Wc,-ftest-coverage -Wc,-fprofile-arcs -Wl,-lgcov
I get all *.gcno files.
But when I run the test no *.gcda files are created !!
When I add the desired ghdl directly in my PATH like
export PATH=..../ghdl/ghdl-0.34dev-gcc/bin/ghdl:$PATH
also coverage analysis works, I get *.gcda files when I
run the simulation.
Therefore the questions:
1. any idea why this coverage support fails (and all else works) ?
2. what is the recommended way to have multiple ghdl versions ?
I am not sure the non-working coverage is due to multiple versions.
I suppose this is due to the fact that the -lgcov comes from the system
gcc, which is not 4.9.x. Can you confirm or infirm this hypothesis ?
Tristan.
_______________________________________________
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss