[MacPorts] #65538: fails to build macOS12 arm64
MacPorts
noreply at macports.org
Mon Jul 25 20:58:40 UTC 2022
#65538: fails to build macOS12 arm64
----------------------+----------------------------
Reporter: cmstuber | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Keywords: | Port: netcdf-fortran
----------------------+----------------------------
Since the recent updates to gcc10, gcc11, and gcc12, this is failing to
build on Monterey arm64.
I've uninstalled all ports and reattempted, tried to build against gcc12
(which I believe is now default), gcc11 and gcc10. I've also reinstalled
CLTs 13.4 and continue to see this build error. The attached log is from
building against gcc12.
end of main.log looks like:
{{{
:info:build ld: warning: argument missing after -rpath
:info:build ld: can't map file, errno=22 file
'/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk' for architecture
arm64
:info:build collect2: error: ld returned 1 exit status
:info:build make[2]: *** [libnetcdff.la] Error 1
:info:build make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_science_netcdf-fortran/netcdf-
fortran/work/Unidata-netcdf-fortran-a24bf2d/fortran'
:info:build make[1]: *** [all] Error 2
:info:build make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_science_netcdf-fortran/netcdf-
fortran/work/Unidata-netcdf-fortran-a24bf2d/fortran'
:info:build make: *** [all-recursive] Error 1
:info:build make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_science_netcdf-fortran/netcdf-
fortran/work/Unidata-netcdf-fortran-a24bf2d'
:info:build Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_science_netcdf-fortran/netcdf-
fortran/work/netcdf-fortran-4.5.4" && /usr/bin/make -j8 -w all
:info:build Exit code: 2
:error:build Failed to build netcdf-fortran: command execution failed
:debug:build Error code: CHILDSTATUS 18237 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_science_netcdf-fortran/netcdf-
fortran/main.log for details.
}}}
This looks like a similar issue I've reported here:[
https://trac.macports.org/ticket/65537]
Attached is main.log. Help, suggestions, and workarounds would be very
welcomed.
--
Ticket URL: <https://trac.macports.org/ticket/65538>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list