[MacPorts] #65537: hdf5 +fortran +gfortran +cxx +hl fails to build

MacPorts noreply at macports.org
Mon Jul 25 20:37:33 UTC 2022


#65537: hdf5 +fortran +gfortran +cxx +hl fails to build
----------------------+--------------------
 Reporter:  cmstuber  |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:  2.7.2
 Keywords:            |       Port:  hdf5
----------------------+--------------------
 On macOS 12, arm64, this is failing to build.  Prior to the recent updates
 to major updates of gcc10,11, 12, this seemed to build just fine.  I've
 uninstalled all ports and reattempted, tried to build against gcc10,
 reinstalled CLTs 13.4 and continue to see this build error.  Building
 without +fortran builds properly.

 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 clang: error: linker command failed with exit code 1 (use -v
 to see invocation)
 :info:build make[2]: *** [libhdf5.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_hdf5/hdf5/work/hdf5-1.12.2/src'
 :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_hdf5/hdf5/work/hdf5-1.12.2/src'
 :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_hdf5/hdf5/work/hdf5-1.12.2'
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_hdf5/hdf5/work/hdf5-1.12.2"
 && /usr/bin/make -j8 -w all
 :info:build Exit code: 2
 :error:build Failed to build hdf5: command execution failed
 :debug:build Error code: CHILDSTATUS 72591 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_hdf5/hdf5/main.log
 for details.

 }}}

 I'll attach the main.log

 I can gather additional artifacts as needed.  Help, suggestions, or
 workarounds would be very welcomed.

-- 
Ticket URL: <https://trac.macports.org/ticket/65537>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list