[MacPorts] #66457: libgcc12 build fails during configure test for MPC dep.

MacPorts noreply at macports.org
Mon Dec 12 21:43:40 UTC 2022


#66457: libgcc12 build fails during configure test for MPC dep.
------------------------------------------+----------------------
 Reporter:  ragnese                       |      Owner:  (none)
     Type:  defect                        |     Status:  new
 Priority:  Normal                        |  Milestone:
Component:  ports                         |    Version:
 Keywords:  libgcc12, mpc, gcc12, libgcc  |       Port:  libgcc12
------------------------------------------+----------------------
 I've attached my config.log, but the relevant part is likely this:


 {{{
 configure:8226: /usr/bin/clang -arch x86_64 -c -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk
 -I/opt/local/include -I/opt/local/include -I/opt/local/include
 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk conftest.c
 >&5
 In file included from conftest.c:10:
 /opt/local/include/mpc.h:287:35: error: unknown type name 'FILE'
 __MPC_DECLSPEC void mpcr_out_str (FILE *f, mpcr_srcptr r);
                                   ^
 1 error generated.
 configure:8226: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME ""
 | #define PACKAGE_TARNAME ""
 | #define PACKAGE_VERSION ""
 | #define PACKAGE_STRING ""
 | #define PACKAGE_BUGREPORT ""
 | #define PACKAGE_URL ""
 | #define LT_OBJDIR ".libs/"
 | /* end confdefs.h.  */
 | #include <mpc.h>
 | int
 | main ()
 | {
 |
 |     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
 |     choke me
 |     #endif
 |
 |   ;
 |   return 0;
 | }
 configure:8251: result: no
 configure:8309: 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.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/66457>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list