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

Dockerfile restructure + Lakeroad Yosys plugin #408

Merged
merged 38 commits into from
Dec 19, 2023

Conversation

gussmith23
Copy link
Owner

@gussmith23 gussmith23 commented Dec 16, 2023

This PR does two things that are only slightly related (sorry about that):

  • Introduces Lakeroad Yosys plugin, plus tests and documentation
  • Restructures/simplifies/solidifies the Dockerfile

The Lakeroad Yosys plugin is a plugin for the Yosys synthesis tool which calls Lakeroad to compile Verilog modules. During the process of adding the plugin into CI, I realized we needed to build Yosys from source, which led me to restructuring the Dockerfile.

The restructure of the Dockerfile does a few things:

  • Moves dependencies into an explicit file (rather than adhoc or git submodules)
  • Pulls specific binaries out of oss-cad-suite and deletes the unneeded ones

@gussmith23 gussmith23 marked this pull request as draft December 16, 2023 00:04
@gussmith23
Copy link
Owner Author

Just to log: there's a weird libc++ issue happening on the GitHub Actions runners that I can't reproduce locally. When I try to load the lakeroad.so for the plugin, it's complaining that it can't find an updated libcxx 3.4.29. I tried building w/o boost, but it doesn't seem to be coming from boost. I wonder if it's a Yosys thing?

@gussmith23
Copy link
Owner Author

Okay, so it seems like the issue is coming from the prebuilt Yosys.

Here's the actual error:

ERROR: Can't load module `/root/lakeroad/yosys-plugin/lakeroad.so': /root/oss-cad-suite/lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /root/lakeroad/yosys-plugin/lakeroad.so)

When I build yosys from source, I no longer get the error.

@gussmith23
Copy link
Owner Author

See YosysHQ/oss-cad-suite-build#91.

@gussmith23 gussmith23 changed the title Lakeroad Yosys plugin Dockerfile restructure + Lakeroad Yosys plugin Dec 18, 2023
@gussmith23 gussmith23 marked this pull request as ready for review December 18, 2023 21:50
@gussmith23 gussmith23 merged commit 3c79e7a into main Dec 19, 2023
4 checks passed
@gussmith23 gussmith23 deleted the gussmith23/2023-12-15-yosys-plugin branch December 19, 2023 19:07
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

Successfully merging this pull request may close these issues.

1 participant