Opened 14 months ago
Closed 14 months ago
#68270 closed defect (duplicate)
clang-14 @14.0.6_1: error: use of undeclared identifier 'XDR'
Reported by: | ith140 (Ian Hoffman) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | sonoma | Cc: | dbl001 (dbl) |
Port: | clang-14 |
Description
clang-14 fails to build on Sonoma. Unfortunately, this port is used to build many other ports, so it is very difficult to migrate and have the same ports active.
Attachments (1)
Change History (3)
Changed 14 months ago by ith140 (Ian Hoffman)
comment:1 Changed 14 months ago by dbl001 (dbl)
Same here
:info:build /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' :info:build CHECK_TYPE_SIZE(XDR); :info:build ^ :info:build /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' :info:build CHECK_TYPE_SIZE(XDR); :info:build ^ :info:build /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' :info:build COMPILER_CHECK(sizeof(__sanitizer_##TYPE) == sizeof(TYPE)) :info:build ^ :info:build <scratch space>:47:1: note: expanded from here :info:build __sanitizer_XDR :info:build ^ :info:build /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'? :info:build CHECK_SIZE_AND_OFFSET(XDR, x_op); :info:build ^ :info:build /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' :info:build COMPILER_CHECK(sizeof(((__sanitizer_##CLASS *)NULL)->MEMBER) == \ :info:build ^ :info:build <scratch space>:48:1: note: expanded from here :info:build __sanitizer_XDR :info:build ^ :info:build /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 :info:build SANITIZER_INTERFACE_ATTRIBUTE void __sanitizer_cov(__sanitizer::u32 *guard); :info:build ^ :info:build /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 :info:build CHECK_SIZE_AND_OFFSET(XDR, x_op); :info:build ^ :info:build /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' :info:build COMPILER_CHECK(sizeof(((__sanitizer_##CLASS *)NULL)->MEMBER) == \ :info:build ^ :info:build /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' :info:build CHECK_SIZE_AND_OFFSET(XDR, x_op); :info:build ^ :info:build /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 :info:build CHECK_SIZE_AND_OFFSET(XDR, x_op); :info:build ^ :info:build /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' :info:build sizeof(((CLASS *)NULL)->MEMBER)); \ :info:build ^ :info:build /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: unknown type name '__sanitizer_XDR'; did you mean '__sanitizer_tm'? :info:build /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:1444:27: note: expanded from macro 'CHECK_SIZE_AND_OFFSET' :info:build COMPILER_CHECK(offsetof(__sanitizer_##CLASS, MEMBER) == \ :info:build ^ :info:build <scratch space>:49:1: note: expanded from here :info:build __sanitizer_XDR :info:build ^ :info:build /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:402:8: note: '__sanitizer_tm' declared here :info:build struct __sanitizer_tm { :info:build ^ :info:build /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: no member named 'x_op' in '__sanitizer_tm' :info:build CHECK_SIZE_AND_OFFSET(XDR, x_op); :info:build ^ ~~~~ :info:build /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:1444:18: note: expanded from macro 'CHECK_SIZE_AND_OFFSET' :info:build COMPILER_CHECK(offsetof(__sanitizer_##CLASS, MEMBER) == \ :info:build ^ ~~~~~~ :info:build /Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/stddef.h:105:24: note: expanded from macro 'offsetof' :info:build #define offsetof(t, d) __builtin_offsetof(t, d) :info:build ^ ~ :info:build /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_internal_defs.h:349:44: note: expanded from macro 'COMPILER_CHECK' :info:build #define COMPILER_CHECK(pred) static_assert(pred, "") :info:build ^~~~ :info:build /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: unknown type name 'XDR' :info:build CHECK_SIZE_AND_OFFSET(XDR, x_op); :info:build ^ :info:build /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:1256:1: error: use of undeclared identifier '__sanitizer_XDR'; did you mean '__sanitizer_cov'? :info:build CHECK_SIZE_AND_OFFSET(XDR, x_ops); :info:build ^ :info:build /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' :info:build COMPILER_CHECK(sizeof(((__sanitizer_##CLASS *)NULL)->MEMBER) == \ :info:build ^ :info:build <scratch space>:50:1: note: expanded from here :info:build __sanitizer_XDR :info:build ^ :info:build /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 :info:build SANITIZER_INTERFACE_ATTRIBUTE void __sanitizer_cov(__sanitizer::u32 *guard); :info:build ^ :info:build /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:1256:1: error: expected expression :info:build CHECK_SIZE_AND_OFFSET(XDR, x_ops); :info:build ^ :info:build /opt/loc al/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' :info:build COMPILER_CHECK(sizeof(((__sanitizer_##CLASS *)NULL)->MEMBER) == \ :info:build ^ :info:build /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:1256:23: error: use of undeclared identifier 'XDR' :info:build CHECK_SIZE_AND_OFFSET(XDR, x_ops); :info:build ^ :info:build /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:1256:1: error: expected expression :info:build CHECK_SIZE_AND_OFFSET(XDR, x_ops); :info:build ^ :info:build /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' :info:build sizeof(((CLASS *)NULL)->MEMBER)); \ :info:build ^ :info:build /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:1256:1: error: unknown type name '__sanitizer_XDR'; did you mean '__sanitizer_tm'? :info:build /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:1444:27: note: expanded from macro 'CHECK_SIZE_AND_OFFSET' :info:build COMPILER_CHECK(offsetof(__sanitizer_##CLASS, MEMBER) == \ :info:build ^ :info:build /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:1256:23: error: use of undeclared identifier 'XDR' :info:build CHECK_SIZE_AND_OFFSET(XDR, x_ops); :info:build ^ :info:build /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:1256:1: error: expected expression :info:build CHECK_SIZE_AND_OFFSET(XDR, x_ops); :info:build ^ :info:build /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' :info:build sizeof(((CLASS *)NULL)->MEMBER)); \ :info:build ^ :info:build /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:1256:1: error: unknown type name '__sanitizer_XDR'; did you mean '__sanitizer_tm'? :info:build /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:1444:27: note: expanded from macro 'CHECK_SIZE_AND_OFFSET' :info:build COMPILER_CHECK(offsetof(__sanitizer_##CLASS, MEMBER) == \ :info:build ^ :info:build <scratch space>:51:1: note: expanded from here :info:build __sanitizer_XDR :info:build ^ :info:build /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:402:8: note: '__sanitizer_tm' declared here :info:build struct __sanitizer_tm { :info:build ^ :info:build /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:1256:1: error: no member named 'x_ops' in '__sanitizer_tm' :info:build CHECK_SIZE_AND_OFFSET(XDR, x_ops); :info:build ^ ~~~~~ :info:build /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:1444:18: note: expanded from macro 'CHECK_SIZE_AND_OFFSET' :info:build COMPILER_CHECK(offsetof(__sanitizer_##CLASS, MEMBER) == \ :info:build ^ ~~~~~~ :info:build /Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/stddef.h:105:24: note: expanded from macro 'offsetof' :info:build #define offsetof(t, d) __builtin_offsetof(t, d) :info:build ^ ~ :info:build /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_internal_defs.h:349:44: note: expanded from macro 'COMPILER_CHECK' :info:build #define COMPILER_CHECK(pred) static_assert(pred, "") :info:build ^~~~ :info:build /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:1256:23: error: unknown type name 'XDR' :info:build CHECK_SIZE_AND_OFFSET(XDR, x_ops); :info:build ^ :info:build /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:1257:1: error: use of undeclared identifier '__sanitizer_XDR'; did you mean '__sanitizer_cov'? :info:build CHECK_SIZE_AND_OFFSET(XDR, x_public); :info:build ^ :info:build /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' :info:build COMPILER_CHECK(sizeof(((__sanitizer_##CLASS *)NULL)->MEMBER) == \ :info:build ^ :info:build <scratch space>:52:1: note: expanded from here :info:build __sanitizer_XDR :info:build ^ :info:build /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 :info:build SANITIZER_INTERFACE_ATTRIBUTE void __sanitizer_cov(__sanitizer::u32 *guard); :info:build ^ :info:build /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:1257:1: error: expected expression :info:build CHECK_SIZE_AND_OFFSET(XDR, x_public); :info:build ^ :info:build /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' :info:build COMPILER_CHECK(sizeof(((__sanitizer_##CLASS *)NULL)->MEMBER) == \ :info:build ^ :info:build /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:1257:23: error: use of undeclared identifier 'XDR' :info:build CHECK_SIZE_AND_OFFSET(XDR, x_public); :info:build ^ :info:build fatal error: too many errors emitted, stopping now [-ferror-limit=] :info:build 20 errors generated.
comment:2 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)
Cc: | dbl001 added |
---|---|
Keywords: | sonoma added |
Resolution: | → duplicate |
Status: | new → closed |
Summary: | clang-14 @clang 14-14.0.6_1 fails on os x 14 (sonoma) → clang-14 @14.0.6_1: error: use of undeclared identifier 'XDR' |
Duplicate of #68257.
Note: See
TracTickets for help on using
tickets.
Build log