[MacPorts] #62463: ispc-clang :build fails on BigSur: error: invalid application of 'sizeof' to an incomplete type 'struct stat64'
MacPorts
noreply at macports.org
Mon Mar 15 22:35:13 UTC 2021
#62463: ispc-clang :build fails on BigSur: error: invalid application of 'sizeof'
to an incomplete type 'struct stat64'
-----------------------+--------------------
Reporter: sampotter | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port:
-----------------------+--------------------
(See also #61972, #62261, and probably others...)
Trying to build ispc-clang on macOS 11.2.3 for some errors which seem to
be identical to other recent problems with building other versions of
clang. See the attached log file, and e.g.:
{{{
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ispc
/ispc-clang/work/llvm-project-10.0.1/compiler-rt/lib/sanitizer_common/
sanitizer_platform_limits_posix.cpp:174:31: error: invalid application of
'sizeof' to an incomplete type 'struct stat64'
:info:build unsigned struct_stat64_sz = sizeof(struct stat64);
:info:build ^ ~~~~~~~~~~~~~~~
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ispc
/ispc-clang/work/llvm-project-10.0.1/compiler-rt/lib/sanitizer_common/
sanitizer_platform_limits_posix.cpp:174:45: note: forward declaration of
'__sanitizer::stat64'
:info:build unsigned struct_stat64_sz = sizeof(struct stat64);
:info:build ^
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ispc
/ispc-clang/work/llvm-project-10.0.1/compiler-rt/lib/sanitizer_common/
sanitizer_platform_limits_posix.cpp:200:33: error: invalid application of
'sizeof' to an incomplete type 'struct statfs64'
:info:build unsigned struct_statfs64_sz = sizeof(struct statfs64);
:info:build ^ ~~~~~~~~~~~~~~~~~
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ispc
/ispc-clang/work/llvm-project-10.0.1/compiler-rt/lib/sanitizer_common/
sanitizer_platform_limits_posix.cpp:200:47: note: forward declaration of
'__sanitizer::statfs64'
:info:build unsigned struct_statfs64_sz = sizeof(struct statfs64);
:info:build ^
:info:build 2 errors generated.
}}}
Presumably the fixes for those other issues can be applied here without
any issue.
--
Ticket URL: <https://trac.macports.org/ticket/62463>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list