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

Cannot build C2 compiler in Ubuntu 24.04 docker container #145

Open
rzuckerm opened this issue Jan 11, 2025 · 1 comment
Open

Cannot build C2 compiler in Ubuntu 24.04 docker container #145

rzuckerm opened this issue Jan 11, 2025 · 1 comment

Comments

@rzuckerm
Copy link

I trying the installation procedure for the latest version of the c2compiler in a Ubuntu 24.04 docker image (ubuntu:24.04). I've installed git, gcc, and make into the docker container. When I run make -C bootstrap, I'm seeing this:

~/c2compiler# make -C bootstrap 
make: Entering directory '/root/c2compiler/bootstrap'
---- compiling bootstrap compiler ----
---- running (bootstrapped) c2c ----
building c2c
---- running c2c (no plugins) ----
building c2c
building c2tags
building c2rename
building tester
building c2cat
building c2loc
building deps_generator
building refs_generator
building git_version
building load_file
building unit_test
building shell_cmd
---- running c2c (optimized with plugins) ----
error: cannot find plugin deps_generator
error: cannot find plugin refs_generator
building c2c
error: cannot find plugin git_version
../compiler/main.c2:27:8: error: unknown module: 'git_version'
import git_version; // from plugin
       ^
1 error generated.
building c2tags
building c2rename
building tester
building c2cat
building c2loc
building deps_generator
building refs_generator
building git_version
building load_file
building unit_test
building shell_cmd
make: *** [Makefile:19: ../output/c2c/c2c] Error 255
make: Leaving directory '/root/c2compiler/bootstrap'

I've also tried a Ubuntu 22.04 docker image, and I get the save result.

@chqrlie
Copy link
Contributor

chqrlie commented Jan 11, 2025

The plugins are not installed before the third run running c2c (optimized with plugins). This is a bug in the Makefile I am fixing in an upcoming PR.

Consider running ./install-plugins.sh and make -C boostrap again.

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