Opened 2 months ago

Last modified 7 weeks ago

#67179 new defect

libgcc11 does not build on Ventura 13.3 + Apple Silicon Macs

Reported by: moyang (Moyang Wang) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: ventura Cc:
Port: libgcc11

Description (last modified by ryandesign (Ryan Schmidt))

--->  Attempting to fetch libgcc11-11.3.0_5+stdlib_flag.darwin_22.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/libgcc11
--->  Fetching distfiles for libgcc11
--->  Verifying checksums for libgcc11
--->  Extracting libgcc11
--->  Applying patches to libgcc11
--->  Configuring libgcc11
--->  Building libgcc11
Error: Failed to build libgcc11: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

Logs are attached.

Attachments (2)

main.log.zip (1.9 MB) - added by moyang (Moyang Wang) 2 months ago.
main.log.tar.gz (1.9 MB) - added by moyang (Moyang Wang) 7 weeks ago.

Change History (5)

Changed 2 months ago by moyang (Moyang Wang)

Attachment: main.log.zip added

comment:1 Changed 8 weeks ago by ryandesign (Ryan Schmidt)

Description: modified (diff)
Keywords: ventura added; Ventura arm64 m1 libgcc11 libgcc removed

The log says:

xgcc: warning: could not understand version '13.0'
checking for arm64-apple-darwin22-gcc... /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/work/build/./gcc/xgcc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/work/build/./gcc/ -B/opt/local/arm64-apple-darwin22/bin/ -B/opt/local/arm64-apple-darwin22/lib/ -isystem /opt/local/arm64-apple-darwin22/include -isystem /opt/local/arm64-apple-darwin22/sys-include   -fno-checking
checking whether the C compiler works... no

This version of gcc is too old to understand how to build for macOS 13. Please use a newer gcc port, such as gcc12 or gcc-devel.

comment:2 Changed 7 weeks ago by moyang (Moyang Wang)

I use gcc12 from MacPort. Still the same results.

❯ sudo port select --set gcc mp-gcc12
Selecting 'mp-gcc12' for 'gcc' succeeded. 'mp-gcc12' is now active.
❯ gcc --version
gcc (MacPorts gcc12 12.2.0_2+stdlib_flag) 12.2.0
Copyright (C) 2022 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.

❯ sudo port upgrade outdated
--->  Computing dependencies for libgcc11
--->  Fetching archive for libgcc11
--->  Attempting to fetch libgcc11-11.3.0_5+stdlib_flag.darwin_22.arm64.tbz2 from http://mirror.fcix.net/macports/packages/libgcc11
--->  Attempting to fetch libgcc11-11.3.0_5+stdlib_flag.darwin_22.arm64.tbz2 from https://packages.macports.org/libgcc11
--->  Attempting to fetch libgcc11-11.3.0_5+stdlib_flag.darwin_22.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/libgcc11
--->  Building libgcc11
Error: Failed to build libgcc11: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

Changed 7 weeks ago by moyang (Moyang Wang)

Attachment: main.log.tar.gz added

comment:3 Changed 7 weeks ago by ryandesign (Ryan Schmidt)

You are still trying to upgrade libgcc11, which according to the error message is too old for Ventura. Clean and uninstall it.

Note: See TracTickets for help on using tickets.