[MacPorts] #67259: libocca fails to build with Clang on < 10.12: clock_get_time, mach_port_deallocate
MacPorts
noreply at macports.org
Mon Apr 17 19:02:27 UTC 2023
#67259: libocca fails to build with Clang on < 10.12: clock_get_time,
mach_port_deallocate
--------------------------+--------------------------
Reporter: barracuda156 | Owner: barracuda156
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Keywords: | Port: libocca
--------------------------+--------------------------
Two issues are there:
{{{
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_libocca/libocca/work/occa-1.5.0/src/occa/internal/utils/sys.cpp:94:7:
error: use of undeclared identifier 'clock_get_time'; did you mean
'clock_gettime'?
clock_get_time(cclock, &ct);
^~~~~~~~~~~~~~
clock_gettime
/opt/local/include/LegacySupport/time.h:55:12: note: 'clock_gettime'
declared here
extern int clock_gettime( clockid_t clk_id, struct timespec *ts );
^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_libocca/libocca/work/occa-1.5.0/src/occa/internal/utils/sys.cpp:94:30:
error: cannot initialize a parameter of type 'struct timespec *' with an
rvalue of type 'mach_timespec_t *' (aka 'mach_timespec *')
clock_get_time(cclock, &ct);
^~~
/opt/local/include/LegacySupport/time.h:55:62: note: passing argument to
parameter 'ts' here
extern int clock_gettime( clockid_t clk_id, struct timespec *ts );
^
}}}
And:
{{{
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_libocca/libocca/work/occa-1.5.0/src/occa/internal/utils/sys.cpp:96:7:
error: use of undeclared identifier 'mach_port_deallocate'
mach_port_deallocate(mach_task_self(), cclock);
^
}}}
(`legacysupport` currently is used for < 10.7, but with Clang build it
does not help.)
Example of the log:
https://build.macports.org/builders/ports-10.6_x86_64-builder/builds/146182/steps
/install-port/logs/stdio
--
Ticket URL: <https://trac.macports.org/ticket/67259>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list