Opened 4 years ago
Closed 18 months ago
#62463 closed defect (fixed)
ispc-clang :build fails on BigSur: error: invalid application of 'sizeof' to an incomplete type 'struct stat64'
Reported by: | sampotter (sfp) | Owned by: | tenomoto (Takeshi Enomoto) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | gallafent | |
Port: | ispc-clang |
Description
(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.
Attachments (1)
Change History (10)
Changed 4 years ago by sampotter (sfp)
comment:1 Changed 4 years ago by kencu (Ken)
I believe some or all of this patch might be useful <https://github.com/macports/macports-ports/blob/master/lang/llvm-10/files/2003-patch-compiler-rt-support-arm64.diff>
comment:2 Changed 4 years ago by sampotter (sfp)
Thanks for the quick reply.
Judging by the file name I’m assuming this is a patch that adds ARM support.
I should clarify that I’m on a 2015 MacBook Air with a Core i7 chip.
comment:3 Changed 4 years ago by kencu (Ken)
I believe you might look past the name I gave the patchfile and I think you'll find it likely adds more than just that (look at the parts further down) but I haven't actually tried it as that is someone else's port.
Anyway, just a suggestion.
comment:4 Changed 4 years ago by jmroot (Joshua Root)
Owner: | set to tenomoto |
---|---|
Port: | ispc-clang added |
Status: | new → assigned |
comment:5 Changed 4 years ago by gallafent
Cc: | gallafent added |
---|
comment:6 Changed 4 years ago by gallafent
Just to note, this breakage prevents blender from being installed on macOS 11 at the moment, so I'm looking forward to the fix!
comment:7 Changed 4 years ago by gallafent
Someone seems to have fixed it! (Thanks!) — time to close this ticket?
comment:9 Changed 18 months ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Log file