[MacPorts] #72189: i686-w64-mingw32-gcc-bootstrap failure for building x86_64 on Silicon M3
MacPorts
noreply at macports.org
Thu Mar 13 12:24:55 UTC 2025
#72189: i686-w64-mingw32-gcc-bootstrap failure for building x86_64 on Silicon M3
---------------------------------------------+--------------------
Reporter: lpgaff | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Resolution: | Keywords:
Port: i686-w64-mingw32-gcc-bootstrap |
---------------------------------------------+--------------------
Description changed by lpgaff:
Old description:
> I am trying to build x86_64 ports in a standalone macports installation,
> using the instructions here
> (https://guide.macports.org/chunked/installing.macports.html#installing.macports.source.multiple).
>
> I have set the build_arch to x86_64 in /opt/macports-
> test/etc/macports/macports.conf and trying to build the cross-compilers
> for a wine installation. This is a fresh install and the PATH variable is
> set as per the instructions.
>
> The i686-w64-mingw32-gcc-bootstrap port fails to configure because it is
> missing the GMP, MPFR and MPC libraries. However, these have been
> installed already by the dependencies and the libraries do exist in the
> correct location.
>
> {{{
> lpgaff at Liams-MacBook-Pro-2 ~ % ls /opt/macports-test/lib/libmp*
> /opt/macports-test/lib/libmpc.3.dylib /opt/macports-
> test/lib/libmpc.dylib /opt/macports-test/lib/libmpfr.a
> /opt/macports-test/lib/libmpc.a /opt/macports-
> test/lib/libmpfr.6.dylib /opt/macports-test/lib/libmpfr.dylib
> lpgaff at Liams-MacBook-Pro-2 ~ % ls /opt/macports-test/lib/libgmp*
> /opt/macports-test/lib/libgmp.10.dylib /opt/macports-
> test/lib/libgmp.dylib /opt/macports-test/lib/libgmpxx.a
> /opt/macports-test/lib/libgmp.a /opt/macports-
> test/lib/libgmpxx.4.dylib /opt/macports-test/lib/libgmpxx.dylib
> }}}
>
> Relevant log file output...
>
> {{{
> :info:configure checking for the correct version of gmp.h... yes
> :info:configure checking for the correct version of mpfr.h... yes
> :info:configure checking for the correct version of mpc.h... yes
> :info:configure checking for the correct version of the gmp/mpfr
> libraries... no
> :info:configure configure: error: Building GCC requires GMP 4.2+, MPFR
> 3.1.0+ and MPC 0.8.0+.
> :info:configure Try the --with-gmp, --with-mpfr and/or --with-mpc options
> to specify
> :info:configure their locations. Source code for these libraries can be
> found at
> :info:configure their respective hosting sites as well as at
> :info:configure https://gcc.gnu.org/pub/gcc/infrastructure/. See also
> :info:configure http://gcc.gnu.org/install/prerequisites.html for
> additional info. If
> :info:configure you obtained GMP, MPFR and/or MPC from a vendor
> distribution package,
> :info:configure make sure that you have installed both the libraries and
> the header
> :info:configure files. They may be located in separate packages.
> :info:configure Command failed: cd "/opt/macports-
> test/var/macports/build/_opt_macports-
> test_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
> -gcc-bootstrap/work/build" && /opt/macports-test/var/macports/build
> /_opt_macports-
> test_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
> -gcc-bootstrap/work/gcc-14.2.0/configure --prefix=/opt/macports-test
> --target=i686-w64-mingw32 --infodir=/opt/macports-test/share/info
> --mandir=/opt/macports-test/share/man --datarootdir=/opt/macports-
> test/share/i686-w64-mingw32-gcc --with-system-zlib --with-gmp=/opt
> /macports-test --with-mpfr=/opt/macports-test --with-mpc=/opt/macports-
> test --enable-stage1-checking --disable-multilib --disable-libcc1
> --enable-shared --with-dwarf --enable-fully-dynamic-string --enable-
> libssp --enable-lto --enable-languages="c c++ fortran objc obj-c++"
> :info:configure Exit code: 1
> :error:configure Failed to configure i686-w64-mingw32-gcc-bootstrap:
> consult /opt/macports-test/var/macports/build/_opt_macports-
> test_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
> -gcc-bootstrap/work/build/config.log
> :error:configure Failed to configure i686-w64-mingw32-gcc-bootstrap:
> configure failure: command execution failed
> :debug:configure Error code: NONE
> }}}
New description:
I am trying to build x86_64 ports in a standalone macports installation,
using the instructions here
(https://guide.macports.org/chunked/installing.macports.html#installing.macports.source.multiple).
I have set the build_arch to x86_64 in /opt/macports-
test/etc/macports/macports.conf and trying to build the cross-compilers
for a wine installation. This is a fresh install and the PATH variable is
set as per the instructions.
The i686-w64-mingw32-gcc-bootstrap port fails to configure because it is
missing the GMP, MPFR and MPC libraries. However, these have been
installed already by the dependencies and the libraries do exist in the
correct location.
{{{
lpgaff at Liams-MacBook-Pro-2 ~ % ls /opt/macports-test/lib/libmp*
/opt/macports-test/lib/libmpc.3.dylib /opt/macports-
test/lib/libmpc.dylib /opt/macports-test/lib/libmpfr.a
/opt/macports-test/lib/libmpc.a /opt/macports-
test/lib/libmpfr.6.dylib /opt/macports-test/lib/libmpfr.dylib
lpgaff at Liams-MacBook-Pro-2 ~ % ls /opt/macports-test/lib/libgmp*
/opt/macports-test/lib/libgmp.10.dylib /opt/macports-
test/lib/libgmp.dylib /opt/macports-test/lib/libgmpxx.a
/opt/macports-test/lib/libgmp.a /opt/macports-
test/lib/libgmpxx.4.dylib /opt/macports-test/lib/libgmpxx.dylib
}}}
Relevant config log file output...
{{{
configure:8375: /usr/bin/clang -o conftest -pipe -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -I/opt
/macports-test/include -I/opt/macports-test/include -I/opt/macports-
test/include -I/opt/macports-test/include
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -L/opt
/macports-test/lib -Wl,-headerpad_max_install_names
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk
conftest.c -L/opt/macports-test/lib -L/opt/macports-test/lib -L/opt
/macports-test/lib -lmpc -lmpfr -lgmp >&5
ld: warning: ignoring file '/opt/macports-test/lib/libmpfr.6.dylib': found
architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/opt/macports-test/lib/libmpc.3.dylib': found
architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/opt/macports-test/lib/libgmp.10.dylib': found
architecture 'x86_64', required architecture 'arm64'
Undefined symbols for architecture arm64:
"_mpfr_atan2", referenced from:
_main in conftest-4887e2.o
"_mpfr_clear", referenced from:
_main in conftest-4887e2.o
_main in conftest-4887e2.o
"_mpfr_erfc", referenced from:
_main in conftest-4887e2.o
"_mpfr_init", referenced from:
_main in conftest-4887e2.o
_main in conftest-4887e2.o
"_mpfr_subnormalize", referenced from:
_main in conftest-4887e2.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
}}}
Relevant main log file output...
{{{
:info:configure checking for the correct version of gmp.h... yes
:info:configure checking for the correct version of mpfr.h... yes
:info:configure checking for the correct version of mpc.h... yes
:info:configure checking for the correct version of the gmp/mpfr
libraries... no
:info:configure configure: error: Building GCC requires GMP 4.2+, MPFR
3.1.0+ and MPC 0.8.0+.
:info:configure Try the --with-gmp, --with-mpfr and/or --with-mpc options
to specify
:info:configure their locations. Source code for these libraries can be
found at
:info:configure their respective hosting sites as well as at
:info:configure https://gcc.gnu.org/pub/gcc/infrastructure/. See also
:info:configure http://gcc.gnu.org/install/prerequisites.html for
additional info. If
:info:configure you obtained GMP, MPFR and/or MPC from a vendor
distribution package,
:info:configure make sure that you have installed both the libraries and
the header
:info:configure files. They may be located in separate packages.
:info:configure Command failed: cd "/opt/macports-test/var/macports/build
/_opt_macports-
test_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-bootstrap/work/build" && /opt/macports-test/var/macports/build
/_opt_macports-
test_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-bootstrap/work/gcc-14.2.0/configure --prefix=/opt/macports-test
--target=i686-w64-mingw32 --infodir=/opt/macports-test/share/info
--mandir=/opt/macports-test/share/man --datarootdir=/opt/macports-
test/share/i686-w64-mingw32-gcc --with-system-zlib --with-gmp=/opt
/macports-test --with-mpfr=/opt/macports-test --with-mpc=/opt/macports-
test --enable-stage1-checking --disable-multilib --disable-libcc1
--enable-shared --with-dwarf --enable-fully-dynamic-string --enable-libssp
--enable-lto --enable-languages="c c++ fortran objc obj-c++"
:info:configure Exit code: 1
:error:configure Failed to configure i686-w64-mingw32-gcc-bootstrap:
consult /opt/macports-test/var/macports/build/_opt_macports-
test_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32
-gcc-bootstrap/work/build/config.log
:error:configure Failed to configure i686-w64-mingw32-gcc-bootstrap:
configure failure: command execution failed
:debug:configure Error code: NONE
}}}
--
--
Ticket URL: <https://trac.macports.org/ticket/72189#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list