Skip to content

Makefile: use an explicit path for extraction/extraction.v - #591

Merged
xavierleroy merged 1 commit into
AbsInt:masterfrom
JasonGross:fix-extraction-loadpath
Aug 10, 2026
Merged

Makefile: use an explicit path for extraction/extraction.v#591
xavierleroy merged 1 commit into
AbsInt:masterfrom
JasonGross:fix-extraction-loadpath

Conversation

@JasonGross

Copy link
Copy Markdown
Contributor

make extraction passes extraction/extraction.v to -load-vernac-source. That path is implicit, so Rocq resolves it against the load path instead of treating it as a filename, and any installed package with an extraction subdirectory shadows CompCert's own file. CertiCoq installs user-contrib/CertiRocq/extraction/extraction.v, so when it is present the build fails with Cannot find a physical path bound to logical path Glue.glue. Prefixing ./ makes the path explicit.

An implicit relative path passed to -load-vernac-source is looked up in
the load path, so an installed package with an "extraction" subdirectory
shadows CompCert's own extraction.v.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9BGQT7XUuubV6C619DW4b

@xavierleroy xavierleroy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well spotted, thanks !

@xavierleroy
xavierleroy merged commit 0835de1 into AbsInt:master Aug 10, 2026
7 checks passed
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.

2 participants