Opened 9 months ago

Last modified 8 months ago

#61972 assigned defect

clang-8.0:build fails on BigSur: 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 Cc: larryv (Lawrence Velázquez), kencu (Ken), erlisR (erlis ruli)
Port: 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 9 months ago.
log file

Change History (7)

Changed 9 months ago by agamba67

Attachment: main.log added

log file

comment:1 Changed 9 months 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 9 months 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 9 months 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 9 months 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 9 months 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 8 months ago by ryandesign (Ryan Schmidt)

Cc: erlisR added
Keywords: bigsur added

Has duplicate #62261.

Note: See TracTickets for help on using tickets.