Opened 3 years ago

Last modified 3 months ago

#61972 assigned defect

clang-7.0, clang-8.0: error: invalid application of 'sizeof' to an incomplete type 'struct stat64'

Reported by: agamba67 Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version:
Keywords: bigsur monterey ventura sonoma Cc: larryv (Lawrence Velázquez), erlisR (erlis ruli), brolcz
Port: clang-7.0 clang-8.0

Description (last modified by jmroot (Joshua Root))

--->  Fetching archive for clang-8.0
--->  Attempting to fetch clang-8.0-8.0.1_1+analyzer+libstdcxx.darwin_20.x86_64.tbz2 from https://cph.dk.packages.macports.org/clang-8.0
--->  Attempting to fetch clang-8.0-8.0.1_1+analyzer+libstdcxx.darwin_20.x86_64.tbz2 from http://fco.it.packages.macports.org/clang-8.0
--->  Attempting to fetch clang-8.0-8.0.1_1+analyzer+libstdcxx.darwin_20.x86_64.tbz2 from https://lil.fr.packages.macports.org/clang-8.0
--->  Computing dependencies for clang-8.0
--->  Building clang-8.0

Attachments (1)

main.log (3.5 MB) - added by agamba67 3 years ago.
log file

Change History (9)

Changed 3 years ago by agamba67

Attachment: main.log added

log file

comment:1 Changed 3 years ago by jmroot (Joshua Root)

Cc: larryv kencu added
Description: modified (diff)
Owner: set to jeremyhu
Port: clang-8.0 added
Status: newassigned

comment:2 Changed 3 years ago by kencu (Ken)

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-8.0/clang-8.0/work/llvm-8.0.1.src/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:170: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 

comment:3 Changed 3 years ago by kencu (Ken)

Summary: Failed to build clang-8.0: command execution failedclang-8.0:build fails on BigSur: error: invalid application of 'sizeof' to an incomplete type 'struct stat64'

comment:4 Changed 3 years ago by kencu (Ken)

I wasn't really planning on working on fixing clang-8.0 for BigSur, to be honest.

Would clang-10 or clang-11 work for you instead? They are looking good on BigSur <https://ports.macports.org/port/clang-10/summary>

comment:5 Changed 3 years ago by agamba67

I installed clang-10 and removed clang-8. Everything seems to work well now. Thanks a lot for your suggestion!

comment:6 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: erlisR added
Keywords: bigsur added

Has duplicate #62261.

comment:7 Changed 3 years ago by kencu (Ken)

Cc: kencu removed

comment:8 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: brolcz added
Keywords: monterey ventura sonoma added
Port: clang-7.0 added
Summary: clang-8.0:build fails on BigSur: error: invalid application of 'sizeof' to an incomplete type 'struct stat64'clang-7.0, clang-8.0: error: invalid application of 'sizeof' to an incomplete type 'struct stat64'

Has duplicate #69208 for clang-7.0.

Note: See TracTickets for help on using tickets.