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

Fix CXX variables in Makefile #4258

Closed
wants to merge 1 commit into from
Closed

Conversation

RCoeurjoly
Copy link
Contributor

Thanks to the comment by @KrystalDelusion in #4244 (comment), the solution was found.

This PR fixes #4244.

@RCoeurjoly RCoeurjoly marked this pull request as draft March 5, 2024 10:31
@RCoeurjoly
Copy link
Contributor Author

the emcc pipeline fails, it seems to be related to the CXX variable

@KrystalDelusion KrystalDelusion self-assigned this Mar 7, 2024
@KrystalDelusion
Copy link
Member

TIL make automatically provides a default value of CXX = g++, which can be seen as it is g++ returning the error. I suspect make config-clang; make would also run g++ in this case despite the implication of using the clang config; which (in hindsight) is probably why this was setup the way it was. Rather than changing the the CXX assignments, it might make more sense to assign CONFIG=none by default and leave config-gcc/config-clang etc to override as previously intended.

@RCoeurjoly can you check if #4270 also fixes your issue? You'll want to delete Makefile.conf first and then go straight to make (no call to make config-clang)

@RCoeurjoly
Copy link
Contributor Author

TIL make automatically provides a default value of CXX = g++, which can be seen as it is g++ returning the error. I suspect make config-clang; make would also run g++ in this case despite the implication of using the clang config; which (in hindsight) is probably why this was setup the way it was. Rather than changing the the CXX assignments, it might make more sense to assign CONFIG=none by default and leave config-gcc/config-clang etc to override as previously intended.

@RCoeurjoly can you check if #4270 also fixes your issue? You'll want to delete Makefile.conf first and then go straight to make (no call to make config-clang)

I confirm that PR 4270 fixes this issue.

@KrystalDelusion
Copy link
Member

Awesome. I'll close this one in favour of that then.

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.

Cannot build yosys in Ubuntu following instructions in README
2 participants