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

GHDLInterface can not detect LLVM backend with newer GHDL/LLVM #898

Closed
LukasVik opened this issue Feb 14, 2023 · 2 comments
Closed

GHDLInterface can not detect LLVM backend with newer GHDL/LLVM #898

LukasVik opened this issue Feb 14, 2023 · 2 comments

Comments

@LukasVik
Copy link
Contributor

GHDLInterface.determine_backend fails because ghdl --version reports

...
llvm 14.0.0 code generator
...

Not just llvm code generator as GHDLInterface.determine_backend expects, which I assume is how it used to be. Should probably update that method to check with a regexp.

I am busy the upcoming days, but can make a PR within a week. Unless anyone else wants to fix it before that.

Full output example (from gitter):

me@testVM:~\\testprj$ python run.py \*test
ERROR - Could not detect known LLVM backend by parsing 'ghdl --version' 
Expected to find one of dict\_keys(\['mcode code generator', 'llvm code generator', 'GCC back-end code generator'\])
== Output of 'ghdl --version'============================================================
GHDL 3.0.0-dev (2.0.0.r1367.g803edb716) \[Dunoon edition\]
Compiled with GNAT Version: 10.4.0
llvm 14.0.0 code generator
Written by Tristan Gingold.
Copyright (C) 2003 - 2022 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. 
=========================================================================================
@LarsAsplund
Copy link
Collaborator

@LukasVik Try now.

@LukasVik
Copy link
Contributor Author

Works wonderfully, thanks!

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

No branches or pull requests

3 participants