Skip to content

devel/compat/gcc: pass gmp/mpfr/mpc/isl paths to configure - #321

Open
mahaase wants to merge 1 commit into
BobBuildTool:masterfrom
mahaase:bugfix/320-compat-gcc-aarch64
Open

devel/compat/gcc: pass gmp/mpfr/mpc/isl paths to configure#321
mahaase wants to merge 1 commit into
BobBuildTool:masterfrom
mahaase:bugfix/320-compat-gcc-aarch64

Conversation

@mahaase

@mahaase mahaase commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

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 #320

@mahaase
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
mahaase force-pushed the bugfix/320-compat-gcc-aarch64 branch from 159e5c3 to 095cb39 Compare September 4, 2026 07:20
@mahaase
mahaase marked this pull request as ready for review September 4, 2026 07:20
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.

devel::host-compat-toolchain fails for aarch64 targets

1 participant