Opened 3 years ago
Closed 3 years ago
#63500 closed defect (fixed)
hdf5 1.12.1_0: build failure due to implicit declaration of function 'clock_gettime'
Reported by: | massonseb | Owned by: | eborisch (Eric A. Borisch) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | Cc: | ||
Port: | hdf5 |
Description
I cannot upgrade from hdf5 1.12.0_0 to 1.12.1_0 because of a compilation error when building hdf5. There is the error message I get at the end of the main.log file:
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_hdf5/hdf5/work/hdf5-1.12.1/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_release_tarballs_ports_science_hdf5/hdf5/work/hdf5-1.12.1/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_release_tarballs_ports_science_hdf5/hdf5/work/hdf5-1.12.1' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_hdf5/hdf5/work/hdf5-1.12.1" && /usr/bin/make -j4 -w all :info:build Exit code: 2 :error:build Failed to build hdf5: command execution failed :debug:build Error code: CHILDSTATUS 90810 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_release_tarballs_ports_science_hdf5/hdf5/main.log for details.
Attachments (1)
Change History (6)
Changed 3 years ago by massonseb
comment:1 Changed 3 years ago by massonseb
comment:2 Changed 3 years ago by reneeotten (Renee Otten)
Owner: | set to eborisch |
---|---|
Status: | new → assigned |
Summary: | error compiling hdf5 1.12.1_0 → hdf5 1.12.1_0: build failure due to implicit declaration of function 'clock_gettime' |
comment:3 Changed 3 years ago by eborisch (Eric A. Borisch)
I don't have an old Mavericks system around to test (and it builds fine with those variants on Catalina), but if you add:
PortGroup legacysupport 1.1
To the top of the Portfile after the other PortGroups, does it work? (You can use sudo port edit hdf5
to go directly to editing the correct Portfile.)
This is failing for lack of the system clock_gettime() and associated CLOCK_MONTONIC, which (according to the man page) was added in Sierra.
comment:5 Changed 3 years ago by Eric A. Borisch <borisch.eric@…>
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
I attached the full main.log file