Opened 2 years ago

Closed 2 years ago

#65538 closed defect (fixed)

netcdf-fortran: builds fail for monterey arm

Reported by: cmstuber (Chris Stuberg) Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: monterey arm Cc: mike142wood, cjones051073 (Chris Jones)
Port: netcdf-fortran

Description

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.

Attachments (1)

main.log (224.7 KB) - added by cmstuber (Chris Stuberg) 2 years ago.
main.log

Download all attachments as: .zip

Change History (4)

Changed 2 years ago by cmstuber (Chris Stuberg)

Attachment: main.log added

main.log

comment:1 Changed 2 years ago by mike142wood

Cc: mike142wood added

comment:2 Changed 2 years ago by mascguy (Christopher Nielsen)

Cc: cjones051073 added
Keywords: monterey arm added
Owner: set to tenomoto
Status: newassigned
Summary: fails to build macOS12 arm64netcdf-fortran: builds fail for monterey arm

comment:3 Changed 2 years ago by cjones051073 (Chris Jones)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.