[MacPorts] #61477: clang-9.0 fails to build on Big Sur macOS 11.0.1 Xcode 12.2

MacPorts noreply at macports.org
Mon Nov 16 09:52:13 UTC 2020


#61477: clang-9.0 fails to build on Big Sur macOS 11.0.1 Xcode 12.2
------------------------+----------------------
  Reporter:  jhoyt4     |      Owner:  kencu
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:             |   Keywords:
      Port:  clang-9.0  |
------------------------+----------------------

Comment (by karoliskoncevicius):

 I am having exactly the same problem with clang-9.0 for the "R" port:


 {{{
 Warning: reinplace s|/usr/bin/env python|/usr/bin/python2.7|g didn't
 change anything in
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-9.0/clang-9.0/work/llvm-9.0.1.src/tools/clang/tools
 /scan-build/bin/set-xcode-analyzer
 --->  Configuring clang-9.0
 --->  Building clang-9.0
 Error: Failed to build clang-9.0: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-9.0/clang-9.0/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 Error: Processing of port clang-9.0 failed
 }}}

 And the error lines from the log:

 {{{

  :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_llvm-9.0/clang-9.0/work/llvm-9.0.1.src/projects
 /compiler-
 rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:169: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_llvm-9.0/clang-9.0/work/llvm-9.0.1.src/projects
 /compiler-
 rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:195:33: error:
 invalid application o f '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_llvm-9.0/clang-9.0/work/llvm-9.0.1.src/projects
 /compiler-
 rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:195:47: note:
 forward declaration of  '__sanitizer::statfs64'
  :info:build   unsigned struct_statfs64_sz = sizeof(struct statfs64);
  :info:build                                               ^
  :info:build 2 errors generated.
  :info:build make[2]: *** [projects/compiler-
 rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_platform_limits_posix.cc.o]
 Error 1
  :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-9.0/clang-9.0/work/build'
  :info:build make[1]: *** [projects/compiler-
 rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/all] Error 2
  :info:build make[1]: *** Waiting for unfinished jobs....
  :info:build [ 28%] Building CXX object
 lib/DebugInfo/PDB/CMakeFiles/LLVMDebugInfoPDB.dir/Native/PDBStringTable.cpp.o
 }}}

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


More information about the macports-tickets mailing list