[MacPorts] #60671: ispc-clang: use of undeclared identifier 'MAP_ANONYMOUS', 'CLOCK_MONOTONIC', 'CLOCK_REALTIME', 'clock_gettime'

MacPorts noreply at macports.org
Wed Jun 17 00:18:14 UTC 2020


#60671: ispc-clang: use of undeclared identifier 'MAP_ANONYMOUS',
'CLOCK_MONOTONIC', 'CLOCK_REALTIME', 'clock_gettime'
------------------------+------------------------
 Reporter:  ryandesign  |      Owner:  tenomoto
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.6.2
 Keywords:  yosemite    |       Port:  ispc-clang
------------------------+------------------------
 [https://build.macports.org/builders/ports-10.10_x86_64-builder/builds/116671/steps
 /install-port/logs/stdio ispc-clang does not build], at least not on
 Yosemite:

 {{{
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_ispc
 /ispc-clang/work/llvm-project-10.0.0/compiler-
 rt/lib/xray/xray_allocator.h:64:40: error: use of undeclared identifier
 'MAP_ANONYMOUS'
                          MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
                                        ^
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_ispc
 /ispc-clang/work/llvm-project-10.0.0/compiler-
 rt/lib/xray/xray_allocator.h:113:40: error: use of undeclared identifier
 'MAP_ANONYMOUS'
                          MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
                                        ^
 In file included from
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_ispc
 /ispc-clang/work/llvm-project-10.0.0/compiler-
 rt/lib/xray/xray_fdr_logging.cpp:34:
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_ispc
 /ispc-clang/work/llvm-project-10.0.0/compiler-
 rt/lib/xray/xray_fdr_controller.h:29:26: error: unknown type name
 'clockid_t'; did you mean 'clock_t'?
   int (*WallClockReader)(clockid_t, struct timespec *) = 0;
                          ^~~~~~~~~
                          clock_t
 /usr/include/sys/_types/_clock_t.h:30:33: note: 'clock_t' declared here
 typedef __darwin_clock_t        clock_t;
                                 ^
 In file included from
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_ispc
 /ispc-clang/work/llvm-project-10.0.0/compiler-
 rt/lib/xray/xray_fdr_logging.cpp:34:
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_ispc
 /ispc-clang/work/llvm-project-10.0.0/compiler-
 rt/lib/xray/xray_fdr_controller.h:80:21: error: use of undeclared
 identifier 'CLOCK_MONOTONIC'
     WallClockReader(CLOCK_MONOTONIC, &TS);
                     ^
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_ispc
 /ispc-clang/work/llvm-project-10.0.0/compiler-
 rt/lib/xray/xray_fdr_logging.cpp:433:32: error: use of undeclared
 identifier 'CLOCK_REALTIME'
     int result = clock_gettime(CLOCK_REALTIME, &TS);
                                ^
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_ispc
 /ispc-clang/work/llvm-project-10.0.0/compiler-
 rt/lib/xray/xray_fdr_logging.cpp:486:58: error: use of undeclared
 identifier 'clock_gettime'
         FDRController<>(TLD.BQ, TLD.Buffer, *TLD.Writer, clock_gettime,
                                                          ^
 6 errors generated.
 make[2]: *** [projects/compiler-
 rt/lib/xray/CMakeFiles/RTXrayFDR.osx.dir/xray_fdr_logging.cpp.o] Error 1
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_ispc
 /ispc-clang/work/build'
 make[1]: *** [projects/compiler-
 rt/lib/xray/CMakeFiles/RTXrayFDR.osx.dir/all] Error 2
 make[1]: *** Waiting for unfinished jobs....
 }}}

 The legacysupport portgroup might solve some or all of these errors.

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


More information about the macports-tickets mailing list