Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ghdl Coverage : unknown command option '-fprofile-arcs' #1066

Open
Electronics4ever opened this issue Oct 8, 2024 · 1 comment
Open

ghdl Coverage : unknown command option '-fprofile-arcs' #1066

Electronics4ever opened this issue Oct 8, 2024 · 1 comment

Comments

@Electronics4ever
Copy link

I encountered the following error while running the coverage example:


C:\Users\user101\Downloads\vunit-4.7.0\vunit-4.7.0\examples\vhdl\coverage>run.py
Compiling into lib: tb_coverage.vhd failed
=== Command used: ===
C:\msys64\mingw64\bin\ghdl -a --workdir=C:\Users\user101\Downloads\vunit-4.7.0\vunit-4.7.0\examples\vhdl\coverage\vunit_out\ghdl\libraries\lib --work=lib --std=08 -PC:\Users\user101\Downloads\vunit-4.7.0\vunit-4.7.0\examples\vhdl\coverage\vunit_out\ghdl\libraries\vunit_lib -PC:\Users\user101\Downloads\vunit-4.7.0\vunit-4.7.0\examples\vhdl\coverage\vunit_out\ghdl\libraries\lib -fprofile-arcs -ftest-coverage C:\Users\user101\Downloads\vunit-4.7.0\vunit-4.7.0\examples\vhdl\coverage\tb_coverage.vhd

=== Command output: ===
C:\msys64\mingw64\bin\ghdl.exe:error: unknown command option '-fprofile-arcs'

used ghdl version:
ghdl --version
GHDL 4.1.0 (tarball) [Dunoon edition]
Compiled with GNAT Version: 14.1.0
static elaboration, mcode JIT code generator
Written by Tristan Gingold.

Copyright (C) 2003 - 2024 Tristan Gingold.
GHDL is free software, covered by the GNU General Public License. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@abyszuk
Copy link

abyszuk commented Jan 8, 2025

I think you're using wrong backend.
Code coverage works only with GCC backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants