gcc11-11.1.0_darwin_21.arm64 won't build

Ryan Schmidt ryandesign at macports.org
Wed Nov 10 19:57:57 UTC 2021

On Nov 10, 2021, at 05:31, Gregory Dodwell wrote:

> M1 Macbook Pro (2020 model); Mac OS 12.0.1; Macports version 2.7.1
> Error message when executing "sudo port upgrade outdated":
> "Error: Failed to build gcc11: command execution failed"
> The build log is huuuuuge, so I won't copy/past it here.
> Here's the last few lines that may help: 
> "...
> info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/gcc11/work/build" && /usr/bin/make -j8 -w bootstrap-lean 
> :info:build Exit code: 2
> :error:build Failed to build gcc11: command execution failed
> :debug:build Error code: CHILDSTATUS 83523 2
> :debug:build Backtrace: command execution failed
> :debug:build     while executing
> :debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
> :debug:build     invoked from within
> :debug:build "command_exec -callback portprogress::target_progress_callback build"
> :debug:build     (procedure "portbuild::build_main" line 8)
> :debug:build     invoked from within
> :debug:build "$procedure $targetname"
> :error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/gcc11/main.log for details.
> ..."
> Any clues? I've cleaned and re cleaned gcc11, to no avail. 

You haven't posted the portion of the log that would allow us to see what went wrong.

Please file a bug report in Trac and attach there the full (compressed) main.log file, provided of course that there is not already a ticket covering this issue. I feel like there have already been tons of bugs filed about gcc issues on Apple Silicon and/or macOS Monterey.

More information about the macports-users mailing list