FS#76815 - [libmpc] 1.3.0 breaks compilation of gcc

Attached to Project: Arch Linux
Opened by Peter Jung (ptr1337) - Tuesday, 13 December 2022, 12:59 GMT
Last edited by Antonio Rojas (arojas) - Tuesday, 13 December 2022, 17:57 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Antonio Rojas (arojas)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
On 2022-12-09 libmpc got upgraded 1.2.1 to 1.3.0
Since libmpc 1.3.0 the compilation of gcc fails at the configure step. Downgrading to 1.2.1 fixes the issue
This is also happening when trying to build gcc-git

Additional info:
libmpc 1.3.0
Log:
```
checking for the correct version of mpc.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations. Source code for these libraries can be found at
their respective hosting sites as well as at
https://gcc.gnu.org/pub/gcc/infrastructure/. See also
http://gcc.gnu.org/install/prerequisites.html for additional info. If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files. They may be located in separate packages.
```

Steps to reproduce:
asp export gcc
cd gcc
makepkg -si
This task depends upon

Closed by  Antonio Rojas (arojas)
Tuesday, 13 December 2022, 17:57 GMT
Reason for closing:  Fixed
Additional comments about closing:  libmpc 1.3.0-2
Comment by loqs (loqs) - Tuesday, 13 December 2022, 13:43 GMT
I was able to fix the issue by adding the six commits for libmpc in the range e944aa454e60cbff8ab4e8c70dd974083398378f to 8fe31f02431b3680f09bf1346787276ddb2274a2 inclusive as listed in https://gitlab.inria.fr/mpc/mpc/-/compare/1d9035fe...8fe31f02

Loading...