[MacPorts] #65424: Failed to build libgcc10: command execution failed on M1 Mac Monterey 12.4

MacPorts noreply at macports.org
Sat Jul 2 15:13:06 UTC 2022


#65424: Failed to build libgcc10: command execution failed on M1 Mac Monterey 12.4
-----------------------+---------------------------------------------
  Reporter:  nasim147  |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:  build libgcc gcc6 Monterey 12.4
      Port:            |
-----------------------+---------------------------------------------
Description changed by nasim147:

Old description:

> Hello, I need to install gcc6 on my Mac and the system tries to install
> its dependencies as well:
>
> {{{
>
> sudo port install gcc6
> --->  Computing dependencies for gcc6
> The following dependencies will be installed:
>  libgcc10
>  libgcc6
>  libgcc7
>  libgcc8
>  libgcc9
> Continue? [Y/n]: Y
> --->  Fetching archive for libgcc10
> --->  Attempting to fetch libgcc10-10.2.0_5.darwin_21.arm64.tbz2 from
> https://packages.macports.org/libgcc10
> --->  Attempting to fetch libgcc10-10.2.0_5.darwin_21.arm64.tbz2 from
> https://ywg.ca.packages.macports.org/mirror/macports/packages/libgcc10
> --->  Attempting to fetch libgcc10-10.2.0_5.darwin_21.arm64.tbz2 from
> https://mse.uk.packages.macports.org/libgcc10
> --->  Building libgcc10
> Error: Failed to build libgcc10: command execution failed
> Error: See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc10/libgcc10/main.log
> for details.
> Error: Follow https://guide.macports.org/#project.tickets if you believe
> there is a bug.
> Error: Processing of port gcc6 failed
> }}}
>
> I also linked the Homebrew gcc to the system's gcc:
> ln -s gcc-11 gcc
>
> {{{
> gcc --version
> gcc (Homebrew GCC 11.3.0_2) 11.3.0
> Copyright (C) 2021 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is
> NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
> }}}
>
> and:
>
> {{{
> sudo port -n upgrade --force libxml2
> }}}
>

>
> but still I get
>
> {{{
> Error: Failed to build libgcc10: command execution failed
> }}}
>
> after trying to install gcc6 that is needed for the software I am
> planning to install.
>
> I heard gcc6 is not going to work on M1 Mac but I think the software
> needs to work with that. Is there any solution to this problem?
>
> Thanks

New description:

 Hello, I need to install gcc6 on my Mac and the system tries to install
 its dependencies as well:

 {{{

 sudo port install gcc6
 --->  Computing dependencies for gcc6
 The following dependencies will be installed:
  libgcc10
  libgcc6
  libgcc7
  libgcc8
  libgcc9
 Continue? [Y/n]: Y
 --->  Fetching archive for libgcc10
 --->  Attempting to fetch libgcc10-10.2.0_5.darwin_21.arm64.tbz2 from
 https://packages.macports.org/libgcc10
 --->  Attempting to fetch libgcc10-10.2.0_5.darwin_21.arm64.tbz2 from
 https://ywg.ca.packages.macports.org/mirror/macports/packages/libgcc10
 --->  Attempting to fetch libgcc10-10.2.0_5.darwin_21.arm64.tbz2 from
 https://mse.uk.packages.macports.org/libgcc10
 --->  Building libgcc10
 Error: Failed to build libgcc10: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc10/libgcc10/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there is a bug.
 Error: Processing of port gcc6 failed
 }}}

 I also linked the Homebrew gcc to the system's gcc:
 ln -s gcc-11 gcc

 {{{
 gcc --version
 gcc (Homebrew GCC 11.3.0_2) 11.3.0
 Copyright (C) 2021 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
 PURPOSE.
 }}}

 and:

 {{{
 sudo port -n upgrade --force libxml2
 }}}



 but still I get

 {{{
 Error: Failed to build libgcc10: command execution failed
 }}}

 after trying to install gcc6 that is needed for the software I am planning
 to install.

 I heard gcc6 is not going to work on M1 Mac but I think the software needs
 to work with that since I get this ERROR when trying to install it:

 {{{
 gcc-mp-6: command not found

 }}}

 Is there any solution to this problem?

 Thanks

--

-- 
Ticket URL: <https://trac.macports.org/ticket/65424#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list