Skip to content
This repository has been archived by the owner on Nov 4, 2021. It is now read-only.

Mac/Linux GHDL binary references paths from build environment #76

Closed
controversial opened this issue Mar 8, 2021 · 2 comments
Closed

Comments

@controversial
Copy link

On the latest nightly build, ghdl-yosys-plugin references paths that only exist in the build environment:

$ ./bin/yosys -p ghdl

-- Running command `ghdl' --

1. Executing GHDL.
warning: ieee library directory '/Users/runner/work/1/s/_packages/build_darwin/fpga-toolchain/lib/ghdl/ieee/v93/' not found
error: cannot find "std" library

raised OPTIONS.OPTION_ERROR : ghdlcomp.adb:315

Ideally, the binary would be built to be portable and run in different environments

@edbordin
Copy link
Collaborator

edbordin commented Mar 8, 2021

This is also the case with the Linux build, see the README for how to work around this with the GHDL_PREFIX environment variable.

There was some discussion here on ways we could change the absolute prefix or make the plugin search relative to the install location as it does on windows. (cc: @tgingold @umarcor )

@edbordin edbordin changed the title Mac GHDL binary references paths from build environment Mac/Linux GHDL binary references paths from build environment Mar 8, 2021
@controversial
Copy link
Author

Thanks, setting GHDL_PREFIX fixes it; I hadn't seen that. Feel free to close this or to leave it open as an issue to track the more robust solution you described

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

No branches or pull requests

2 participants