Re: [MacPorts] #70866: gcc14 doesn’t build for x86_64 on macOS 15 (Xcode 16): “Undefined symbols for architecture x86_64” while linking libgcc_s.1.dylib

MacPorts noreply at macports.org
Wed Sep 25 16:59:54 UTC 2024


#70866: gcc14 doesn’t build for x86_64 on macOS 15 (Xcode 16): “Undefined symbols
for architecture x86_64” while linking libgcc_s.1.dylib
---------------------------+-----------------------------------
  Reporter:  markmentovai  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:
Resolution:                |   Keywords:  sonoma sequoia x86_64
      Port:  gcc14         |
---------------------------+-----------------------------------

Comment (by dbl001):

 Replying to [comment:21 markmentovai]:
 > Replying to [comment:20 dbl001]:
 >
 > I don’t know where you’re patching, or if the patch is mangled, but what
 you’re doing seems to be conflating the outer patch file with some of the
 patches carried within. The patch is intended to be applied in the ports
 directory. It will create further patches within lang/gcc14/files.
 >
 > {{{
 > % cd
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports
 > % curl --silent https://github.com/markmentovai/macports-
 ports/commit/727cc2bddbd39fbad964d0f2e6eaf3be164e23e7.patch | sudo patch
 -p1
 > patching file 'lang/gcc14/Portfile'
 > patching file 'lang/gcc14/files/0001-Darwin-Allow-for-as-versions-that-
 need-for-std-in.patch'
 > patching file 'lang/gcc14/files/0002-libgcc-Darwin-Drop-the-legacy-
 library-build-for-macO.patch'
 > patching file 'lang/gcc14/files/0003-libgcc-Darwin-Don-t-build-legacy-
 libgcc_s.1-on-macOS.patch'
 > patching file 'lang/gcc14/files/patch-
 as_needs_dash_for_piped_input.diff'
 > % sudo portindex
 > % sudo port install gcc14
 > }}}
 >
 > The .patch has this hash:
 >
 > {{{
 > % curl --silent https://github.com/markmentovai/macports-
 ports/commit/727cc2bddbd39fbad964d0f2e6eaf3be164e23e7.patch | shasum -a
 256
 > befd12c8119ee2b76dfc5adb7e89a64b77d7ec67d3daaccbe8b5d9fd3bd944c3  -
 > }}}
 {{{
 % cd
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports
 (ai) davidlaxer at bluediamond ports % curl --silent
 https://github.com/markmentovai/macports-
 ports/commit/727cc2bddbd39fbad964d0f2e6eaf3be164e23e7.patch | sudo patch
 -p1
 patching file 'lang/gcc14/Portfile'
 Reversed (or previously applied) patch detected!  Assume -R? [y] y
 patching file 'lang/gcc14/files/0001-Darwin-Allow-for-as-versions-that-
 need-for-std-in.patch'
 patching file 'lang/gcc14/files/0002-libgcc-Darwin-Drop-the-legacy-
 library-build-for-macO.patch'
 patching file 'lang/gcc14/files/0003-libgcc-Darwin-Don-t-build-legacy-
 libgcc_s.1-on-macOS.patch'
 patching file 'lang/gcc14/files/patch-as_needs_dash_for_piped_input.diff'
 (ai) davidlaxer at bluediamond ports % sudo portindex
 Creating port index in
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports
 Failed to parse file lang/rust-bootstrap/Portfile: rust_build.version
 (1.77.0) must be newer than rust_build.stage0_versions (1.80.1 1.80.0)
 Adding port lang/gcc14
 Adding subport libgcc14
 Adding subport gcc14-libcxx

 Total number of ports parsed:   4
 Ports successfully parsed:      3
 Ports failed:                   1
 Up-to-date ports skipped:       39667

 (ai) davidlaxer at bluediamond ports % sudo port install gcc14
 --->  Computing dependencies for gcc14
 The following dependencies will be installed:
  libgcc
  libgcc14
 Continue? [Y/n]: y
 --->  Fetching archive for libgcc14
 --->  Attempting to fetch
 libgcc14-14.2.0_1+stdlib_flag.darwin_24.x86_64.tbz2 from
 https://packages.macports.org/libgcc14
 --->  Attempting to fetch
 libgcc14-14.2.0_1+stdlib_flag.darwin_24.x86_64.tbz2 from
 http://mirror.fcix.net/macports/packages/libgcc14
 --->  Attempting to fetch
 libgcc14-14.2.0_1+stdlib_flag.darwin_24.x86_64.tbz2 from
 https://ywg.ca.packages.macports.org/mirror/macports/packages/libgcc14
 --->  Building libgcc14
 Error: Failed to build libgcc14: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc14/libgcc14/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there
 is a bug.
 Error: Processing of port gcc14 failed
 (ai) davidlaxer at bluediamond ports % vi
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc14/libgcc14/main.log

 }}}

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


More information about the macports-tickets mailing list