Opened 9 months ago

Closed 9 months ago

#69208 closed defect (duplicate)

clang-7.0 @7.1.0_3: rror: invalid application of 'sizeof' to an incomplete type 'struct stat64'

Reported by: brolcz Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.0
Keywords: monterey Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: clang-7.0

Description

I am using mac os 12.7.2. When trying to update clang-7.0, it failed. I am attaching the log below. Attempted to clean and re-try, still did not work.

Attachments (1)

main.log (5.0 MB) - added by brolcz 9 months ago.

Change History (2)

Changed 9 months ago by brolcz

Attachment: main.log added

comment:1 Changed 9 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: monterey added
Resolution: duplicate
Status: newclosed
Summary: clang-7.0 @7.1.0_3: failed to buildclang-7.0 @7.1.0_3: rror: invalid application of 'sizeof' to an incomplete type 'struct stat64'

The error in the log is:

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-7.0/clang-7.0/work/llvm-7.1.0.src/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:202:31: error: invalid application of 'sizeof' to an incomplete type 'struct stat64'
  unsigned struct_stat64_sz = sizeof(struct stat64);
                              ^     ~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-7.0/clang-7.0/work/llvm-7.1.0.src/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:202:45: note: forward declaration of '__sanitizer::stat64'
  unsigned struct_stat64_sz = sizeof(struct stat64);
                                            ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-7.0/clang-7.0/work/llvm-7.1.0.src/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:227:33: error: invalid application of 'sizeof' to an incomplete type 'struct statfs64'
  unsigned struct_statfs64_sz = sizeof(struct statfs64);
                                ^     ~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-7.0/clang-7.0/work/llvm-7.1.0.src/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:227:47: note: forward declaration of '__sanitizer::statfs64'
  unsigned struct_statfs64_sz = sizeof(struct statfs64);
                                              ^
2 errors generated.

so this is a duplicate of #61972. The suggestion there is to use a newer version of clang. The current version is clang-17.

Note: See TracTickets for help on using tickets.