devel/compat/gcc: pass gmp/mpfr/mpc/isl paths to configure - #321
Open
mahaase wants to merge 1 commit into
Open
Conversation
mahaase
marked this pull request as draft
September 4, 2026 07:15
Building devel::compat::gcc-cross-bare for aarch64 targets failed with
In file included from gcc/config/aarch64/aarch64-speculation.cc:22:
gcc/system.h:687:10: fatal error: gmp.h: No such file or directory
The rules in gcc/config/aarch64/t-aarch64 reference $(ALL_SPPFLAGS)
instead of $(ALL_CPPFLAGS). The undefined variable expands to nothing so
the include paths that were passed via CPPFLAGS are dropped for these
objects. The typo is still present in current GCC master.
Those rules do keep $(INCLUDES), which contains $(GMPINC) and $(ISLINC).
Therefore locate the libraries the same way as the regular gcc recipe
does, that is by telling configure explicitly where the headers and
libraries are. This also removes a needless deviation between the two
recipes.
Fixes BobBuildTool#320
mahaase
force-pushed
the
bugfix/320-compat-gcc-aarch64
branch
from
September 4, 2026 07:20
159e5c3 to
095cb39
Compare
mahaase
marked this pull request as ready for review
September 4, 2026 07:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Building
devel::compat::gcc-cross-barefor aarch64 targets failed with:The rules in
gcc/config/aarch64/t-aarch64reference$(ALL_SPPFLAGS)instead of$(ALL_CPPFLAGS). The undefined variable expands to nothing so the include paths that were passed viaCPPFLAGSare dropped for these objects. The typo is still present in current GCC master.Those rules do keep
$(INCLUDES), which contains$(GMPINC)and$(ISLINC). Therefore locate the libraries the same way as the regulargccrecipe does, that is by telling configure explicitly where the headers and libraries are. This also removes a needless deviation between the two recipes.Fixes #320