https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122027
Bug ID: 122027
Summary: Building the latest libmpc with gcc
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: mark.dunn.and.sharon.king at gmail dot com
Target Milestone: ---
Using the latest libmpc code from:
Gitlab at Inria
Has the include file mpc.h.in instead of the expected mpc.h
When building this code in the source tree, gcc tests for mpc in ./configure.ac
it adds the include path on line 1693:
gmpinc='-I$$s/mpc/src '"$gmpinc"
NOTE: both mpfr and gmp add the source and add the host subdirectory:
line 1732:
gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
line 1767:
gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
Later, after building the math libraries, the we check for the mpc library
using 'mpc.h' in only the source and conclude that the mpc does not exist.
Modifying line 1693 to bring it in line with the other maths libraries fixes
the problem because now the mpc.h in the host subdir has been built from
mpc.h.in from the source:
- gmpinc='-I$$s/mpc/src '"$gmpinc"
+ gmpinc='-I$$r/$(HOST_SUBDIR)/mpc/src -I$$s/mpc/src '"$gmpinc"