[MacPorts] #69208: clang-7.0 @7.1.0_3: rror: invalid application of 'sizeof' to an incomplete type 'struct stat64' (was: clang-7.0 @7.1.0_3: failed to build)

MacPorts noreply at macports.org
Sat Jan 27 20:33:08 UTC 2024


#69208: clang-7.0 @7.1.0_3: rror: invalid application of 'sizeof' to an incomplete
type 'struct stat64'
------------------------+----------------------
  Reporter:  brolcz     |      Owner:  (none)
      Type:  defect     |     Status:  closed
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.9.0
Resolution:  duplicate  |   Keywords:  monterey
      Port:  clang-7.0  |
------------------------+----------------------
Changes (by ryandesign):

 * status:  new => closed
 * keywords:   => monterey
 * resolution:   => duplicate


Comment:

 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.

-- 
Ticket URL: <https://trac.macports.org/ticket/69208#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list