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

Yosys Build From Source Prerequisites #1

Open
dennowiggle opened this issue Apr 22, 2024 · 3 comments
Open

Yosys Build From Source Prerequisites #1

dennowiggle opened this issue Apr 22, 2024 · 3 comments

Comments

@dennowiggle
Copy link
Contributor

dennowiggle commented Apr 22, 2024

I followed the readme file to build Yosys from source, but I got errors as some source files referenced by C #include code were missing.

I installed additional packages per the installation instruction on Yosys docs and that resolved the issue. I probably didn't need graphwiz and xdot to show schematics..... I didn't know you can show schematics from verilog code? Something else to explore....

sudo apt-get install build-essential clang bison flex \
   libreadline-dev gawk tcl-dev libffi-dev git make \
   graphviz xdot pkg-config python3 libboost-system-dev \
   libboost-python-dev libboost-filesystem-dev zlib1g-dev
@johnwinans
Copy link
Owner

On what OS did you build the source?

I could have installed some things on my 20.04 system due to other packages that I might have installed before I tested my build.

@dennowiggle
Copy link
Contributor Author

I used Debian 12 Bookworm x86_64 running under WSL2. As you suggest, I must have been missing some development packages that included the missing header files/libraries that you had already installed. I didn't keep a note of the exact compilation errors and missing files.

@johnwinans
Copy link
Owner

I didn't either. :-(

I aughtta at least do a clean install on one of my old boxes to verify this on latest version of Ubuntu (which has been my go-to desktop for a while now. The good news is that the versions of the pre-built packages on Ubuntu & the PI are probably good enough.

Or maybe I can scratch my instructions since the ones you point to look decent & likely to be maintained for the foreseeable future. Possibly even more-so now that, as you pointed out, Lattice has changed their license. :-/

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