[MacPorts] #68257: clang-14 @14.0.6_1+analyzer: error: use of undeclared identifier 'XDR' (was: clang-14 @14.0.6_1+analyzer: Failes to build on Sonoma)

MacPorts noreply at macports.org
Wed Sep 27 16:34:42 UTC 2023


#68257: clang-14 @14.0.6_1+analyzer: error: use of undeclared identifier 'XDR'
--------------------------+--------------------
  Reporter:  janmuennich  |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.8.1
Resolution:               |   Keywords:  sonoma
      Port:  llvm-14      |
--------------------------+--------------------
Changes (by ryandesign):

 * keywords:   => sonoma
 * port:  clang-14 => llvm-14


Comment:

 Lots of errors of this sort in the log:

 {{{
 [  2%] Building CXX object utils/TableGen/CMakeFiles/obj.llvm-
 tblgen.dir/CodeGenRegisters.cpp.o
 cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-14/clang-14/work/build/utils/TableGen
 && /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
 -D__STDC_LIMIT_MACROS
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-14/clang-14/work/build/utils/TableGen
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-14/clang-14/work
 /llvm-project-14.0.6.src/llvm/utils/TableGen
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-14/clang-14/work/build/include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-14/clang-14/work
 /llvm-project-14.0.6.src/llvm/include -pipe -Os -DNDEBUG
 -I/opt/local/include -stdlib=libc++
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -fPIC
 -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-
 availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings
 -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98
 -compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-
 noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-
 override -Wno-comment -Wstring-conversion -Wmisleading-indentation -O3
 -DNDEBUG -arch arm64 -isysroot
 /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -mmacosx-version-
 min=14.0  -fno-exceptions -std=c++14 -MD -MT utils/TableGen/CMakeFiles/obj
 .llvm-tblgen.dir/CodeGenRegisters.cpp.o -MF CMakeFiles/obj.llvm-
 tblgen.dir/CodeGenRegisters.cpp.o.d -o CMakeFiles/obj.llvm-
 tblgen.dir/CodeGenRegisters.cpp.o -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-14/clang-14/work
 /llvm-project-14.0.6.src/llvm/utils/TableGen/CodeGenRegisters.cpp
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-14/clang-14/work
 /llvm-project-14.0.6.src/compiler-
 rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1254:17:
 error: use of undeclared identifier 'XDR'
 CHECK_TYPE_SIZE(XDR);
                 ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-14/clang-14/work
 /llvm-project-14.0.6.src/compiler-
 rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1254:1: error:
 use of undeclared identifier '__sanitizer_XDR'
 CHECK_TYPE_SIZE(XDR);
 ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-14/clang-14/work
 /llvm-project-14.0.6.src/compiler-
 rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h:1439:25: note:
 expanded from macro 'CHECK_TYPE_SIZE'
   COMPILER_CHECK(sizeof(__sanitizer_##TYPE) == sizeof(TYPE))
                         ^
 <scratch space>:47:1: note: expanded from here
 __sanitizer_XDR
 ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-14/clang-14/work
 /llvm-project-14.0.6.src/compiler-
 rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1255:1: error:
 use of undeclared identifier '__sanitizer_XDR'; did you mean
 '__sanitizer_cov'?
 CHECK_SIZE_AND_OFFSET(XDR, x_op);
 ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-14/clang-14/work
 /llvm-project-14.0.6.src/compiler-
 rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h:1442:27: note:
 expanded from macro 'CHECK_SIZE_AND_OFFSET'
   COMPILER_CHECK(sizeof(((__sanitizer_##CLASS *)NULL)->MEMBER) == \
                           ^
 <scratch space>:48:1: note: expanded from here
 __sanitizer_XDR
 ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-14/clang-14/work
 /llvm-project-14.0.6.src/compiler-
 rt/lib/sanitizer_common/sanitizer_interface_internal.h:57:38: note:
 '__sanitizer_cov' declared here
   SANITIZER_INTERFACE_ATTRIBUTE void __sanitizer_cov(__sanitizer::u32
 *guard);
                                      ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-14/clang-14/work
 /llvm-project-14.0.6.src/compiler-
 rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1255:1: error:
 expected expression
 CHECK_SIZE_AND_OFFSET(XDR, x_op);
 ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-14/clang-14/work
 /llvm-project-14.0.6.src/compiler-
 rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h:1442:48: note:
 expanded from macro 'CHECK_SIZE_AND_OFFSET'
   COMPILER_CHECK(sizeof(((__sanitizer_##CLASS *)NULL)->MEMBER) == \
                                                ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-14/clang-14/work
 /llvm-project-14.0.6.src/compiler-
 rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1255:23:
 error: use of undeclared identifier 'XDR'
 CHECK_SIZE_AND_OFFSET(XDR, x_op);
                       ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-14/clang-14/work
 /llvm-project-14.0.6.src/compiler-
 rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1255:1: error:
 expected expression
 CHECK_SIZE_AND_OFFSET(XDR, x_op);
 ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-14/clang-14/work
 /llvm-project-14.0.6.src/compiler-
 rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h:1443:34: note:
 expanded from macro 'CHECK_SIZE_AND_OFFSET'
                  sizeof(((CLASS *)NULL)->MEMBER));                \
                                  ^
 }}}

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


More information about the macports-tickets mailing list