Opened 12 months ago

Last modified 12 months ago

#68688 new defect

clang-13 @13.0.1_3 build failure - MacOS14.0 (23A344) - Apple M1 Max

Reported by: dd5fz Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: clang-13

Description

toby@Toby-MacBook-M1 ~ % sudo port clean clang-13
--->  Cleaning clang-13
toby@Toby-MacBook-M1 ~ % sudo port upgrade outdated build.jobs=1                                                                                                               
--->  Computing dependencies for clang-13
--->  Fetching archive for clang-13
--->  Attempting to fetch clang-13-13.0.1_3+analyzer.darwin_23.arm64.tbz2 from https://packages.macports.org/clang-13
--->  Attempting to fetch clang-13-13.0.1_3+analyzer.darwin_23.arm64.tbz2 from https://fra.de.packages.macports.org/clang-13
--->  Attempting to fetch clang-13-13.0.1_3+analyzer.darwin_23.arm64.tbz2 from https://nue.de.packages.macports.org/clang-13
--->  Fetching distfiles for clang-13
--->  Verifying checksums for clang-13
--->  Extracting clang-13
--->  Applying patches to clang-13
--->  Configuring clang-13
--->  Building clang-13                                  
Error: Failed to build clang-13: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
toby@Toby-MacBook-M1 ~ % 



toby@Toby-MacBook-M1 ~ % cat /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/main.log

...

:info:build [ 40%] Building CXX object projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_platform_limits_netbsd.cpp.o
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/work/build/projects/compiler-rt/lib/sanitizer_common && /usr/bin/clang++ -DHAVE_RPC_XDR_H=1 -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-13/clang-13/work/build/projects/compiler-rt/lib/sanitizer_common -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/work/build/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/work/llvm-project-13.0.1.src/llvm/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/.. -pipe -Os -DNDEBUG -I/opt/local/include  -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 -Wall -std=c++14 -Wno-unused-parameter -O3 -DNDEBUG -arch arm64 -arch x86_64 -arch x86_64h -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk  -stdlib=libc++ -mmacosx-version-min=10.10 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -fPIC -fno-builtin -fno-exceptions -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Werror=thread-safety -Werror=thread-safety-reference -Werror=thread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -nostdinc++ -fno-rtti -Wframe-larger-than=570 -Wglobal-constructors -std=c++14 -MD -MT projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_platform_limits_netbsd.cpp.o -MF CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_platform_limits_netbsd.cpp.o.d -o CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_platform_limits_netbsd.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_netbsd.cpp
:info:build [ 40%] Building CXX object projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_platform_limits_posix.cpp.o
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/work/build/projects/compiler-rt/lib/sanitizer_common && /usr/bin/clang++ -DHAVE_RPC_XDR_H=1 -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-13/clang-13/work/build/projects/compiler-rt/lib/sanitizer_common -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/work/build/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/work/llvm-project-13.0.1.src/llvm/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/.. -pipe -Os -DNDEBUG -I/opt/local/include  -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 -Wall -std=c++14 -Wno-unused-parameter -O3 -DNDEBUG -arch arm64 -arch x86_64 -arch x86_64h -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk  -stdlib=libc++ -mmacosx-version-min=10.10 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -fPIC -fno-builtin -fno-exceptions -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Werror=thread-safety -Werror=thread-safety-reference -Werror=thread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -nostdinc++ -fno-rtti -Wframe-larger-than=570 -Wglobal-constructors -std=c++14 -MD -MT projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_platform_limits_posix.cpp.o -MF CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_platform_limits_posix.cpp.o.d -o CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_platform_limits_posix.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1234:1: error: unknown type name '__sanitizer_XDR'; did you mean '__sanitizer_tm'?
: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h:1425:25: note: expanded from macro 'CHECK_TYPE_SIZE'
:info:build   COMPILER_CHECK(sizeof(__sanitizer_##TYPE) == sizeof(TYPE))
:info:build                         ^
:info:build <scratch space>:62: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h:399: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1234: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1235:1: error: use of undeclared identifier '__sanitizer_XDR'; did you mean '__sanitizer'?
: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h:1428:27: note: expanded from macro 'CHECK_SIZE_AND_OFFSET'
:info:build   COMPILER_CHECK(sizeof(((__sanitizer_##CLASS *)NULL)->MEMBER) == \
:info:build                           ^
:info:build <scratch space>:63: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:176:11: note: '__sanitizer' declared here
:info:build namespace __sanitizer {
:info:build           ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1235:1: error: unexpected namespace name '__sanitizer': 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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h:1428:27: note: expanded from macro 'CHECK_SIZE_AND_OFFSET'
:info:build   COMPILER_CHECK(sizeof(((__sanitizer_##CLASS *)NULL)->MEMBER) == \
:info:build                           ^
:info:build <scratch space>:63: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1235:1: error: expected expression
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h:1428: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1235: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1235: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h:1429: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1235: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h:1430:27: note: expanded from macro 'CHECK_SIZE_AND_OFFSET'
:info:build   COMPILER_CHECK(offsetof(__sanitizer_##CLASS, MEMBER) ==         \
:info:build                           ^
:info:build <scratch space>:64: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h:399: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1235: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h:1430: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h:332: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1235: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1236:1: error: use of undeclared identifier '__sanitizer_XDR'; did you mean '__sanitizer'?
: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h:1428:27: note: expanded from macro 'CHECK_SIZE_AND_OFFSET'
:info:build   COMPILER_CHECK(sizeof(((__sanitizer_##CLASS *)NULL)->MEMBER) == \
:info:build                           ^
:info:build <scratch space>:65: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:176:11: note: '__sanitizer' declared here
:info:build namespace __sanitizer {
:info:build           ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1236:1: error: unexpected namespace name '__sanitizer': 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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h:1428:27: note: expanded from macro 'CHECK_SIZE_AND_OFFSET'
:info:build   COMPILER_CHECK(sizeof(((__sanitizer_##CLASS *)NULL)->MEMBER) == \
:info:build                           ^
:info:build <scratch space>:65: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1236:1: error: expected expression
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h:1428: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1236: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1236: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h:1429: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1236: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h:1430:27: note: expanded from macro 'CHECK_SIZE_AND_OFFSET'
:info:build   COMPILER_CHECK(offsetof(__sanitizer_##CLASS, MEMBER) ==         \
:info:build                           ^
:info:build <scratch space>:66: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h:399: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1236: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h:1430: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h:332: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1236: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:1237:1: error: use of undeclared identifier '__sanitizer_XDR'; did you mean '__sanitizer'?
: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h:1428:27: note: expanded from macro 'CHECK_SIZE_AND_OFFSET'
:info:build   COMPILER_CHECK(sizeof(((__sanitizer_##CLASS *)NULL)->MEMBER) == \
:info:build                           ^
:info:build <scratch space>:67: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-13/clang-13/work/llvm-project-13.0.1.src/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp:176:11: note: '__sanitizer' declared here
:info:build namespace __sanitizer {
:info:build           ^
:info:build fatal error: too many errors emitted, stopping now [-ferror-limit=]
:info:build 20 errors generated.
:info:build make[2]: *** [projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_platform_limits_posix.cpp.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-13/clang-13/work/build'
:info:build make[1]: *** [projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/all] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/work/build'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/work/build'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/work/build" && /usr/bin/make -j1 -w all VERBOSE=ON 
:info:build Exit code: 2
:error:build Failed to build clang-13: command execution failed
:debug:build Error code: CHILDSTATUS 54927 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/main.log for details.

Change History (2)

comment:1 Changed 12 months ago by jmroot (Joshua Root)

Summary: port upgrade outdated failure - MacOS14.0 (23A344) - Apple M1 Maxclang-13 @13.0.1_3 build failure - MacOS14.0 (23A344) - Apple M1 Max

comment:2 Changed 12 months ago by jmroot (Joshua Root)

This version of clang was recently marked as supporting darwin < 23, so I would guess it's not likely to be fixed soon. You might just have to uninstall it and use a newer clang.

Note: See TracTickets for help on using tickets.