Open tcal-x opened 2 years ago
https://github.com/antmicro/surelog-uhdm-ibex-guide gives a good overview what needs to be done.
Essentially, you need Surelog and UHDM present for the module to compile.
GitHubContribute to antmicro/surelog-uhdm-ibex-guide development by creating an account on GitHub.
even though
sudo echo $PATH
contains/usr/local/bin
.
Ah, this is wrong as pointed out in https://unix.stackexchange.com/questions/32764/why-which-tmux-and-sudo-which-tmux-return-2-different-values -- $PATH gets expanded before getting passed into sudo
. If I instead do:
sudo sh -c 'echo $PATH'
... I get:
/usr/sbin:/usr/bin:/sbin:/bin
..which doesn't include /usr/local/bin
.
So, the mechanism for finding yosys-config
doesn't work as implemented when run under sudo
.
I don't see any documentation on how to perform a local install (i.e. under
/usr/local
).If I run
make
, most of the sub-builds succeed generating.so
files, although I get this error (@hzeller ?):When I try
sudo make install
, I getThis seems to be some strange interaction between
sudo
and the calculation ofYOSYS_PATH
inMakefile_plugin.common
. I do have both/usr/local/bin/yosys
and/usr/local/bin/yosys-config
, soYOSYS_PATH
should be/usr/local
. At my command line,sudo which yosys
returns nothing, even thoughsudo echo $PATH
contains/usr/local/bin
.A workaround is to run
sudo make install YOSYS_PATH=/usr/local
, but it seems something is broken.