Mock Version: 5.0 Mock Version: 5.0 Mock Version: 5.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/lld.spec'], chrootPath='/mnt/mock/kojid//dist-an23.3-riscv64-gcc14-build-489359-74485/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=172800uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/lld.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1764115200 Wrote: /builddir/build/SRPMS/lld-20.1.0-1.an23_rva23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/lld.spec'], chrootPath='/mnt/mock/kojid//dist-an23.3-riscv64-gcc14-build-489359-74485/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=172800uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/lld.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1764115200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.7GmWJb + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf cmake-20.1.0.src + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/cmake-20.1.0.src.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd cmake-20.1.0.src + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd .. + mv cmake-20.1.0.src cmake + cd /builddir/build/BUILD + rm -rf lld-20.1.0.src + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/lld-20.1.0.src.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd lld-20.1.0.src + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0002-PATCH-lld-Import-compact_unwind_encoding.h-from-libu.patch + /usr/bin/patch -p2 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.qELVIu + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -Wno-error=return-mismatch -Wno-error=declaration-missing-parameter-type -Wno-error=implicit-int' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=clang + export CC + CXX=clang++ + export CXX + cd lld-20.1.0.src + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -Wno-error=return-mismatch -Wno-error=declaration-missing-parameter-type -Wno-error=implicit-int' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=clang + export CC + CXX=clang++ + export CXX + /usr/bin/cmake -S . -B anolis-linux-build -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr -DLLVM_LINK_LLVM_DYLIB:BOOL=ON -DLLVM_DYLIB_COMPONENTS=all -DCMAKE_SKIP_RPATH:BOOL=ON -DPYTHON_EXECUTABLE=/usr/bin/python3 -DLLVM_INCLUDE_TESTS=ON -DLLVM_EXTERNAL_LIT=/usr/bin/lit '-DLLVM_LIT_ARGS=-sv --path /usr/lib64/llvm' -DLLVM_LIBDIR_SUFFIX=64 -DLLVM_MAIN_SRC_DIR=/usr/share/llvm/src CMake Deprecation Warning at /builddir/build/BUILD/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy): The OLD behavior for policy CMP0116 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. Call Stack (most recent call first): CMakeLists.txt:7 (include) -- The C compiler identification is Clang 17.0.6 -- The CXX compiler identification is Clang 17.0.6 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Could NOT find FFI (missing: FFI_LIBRARIES HAVE_FFI_CALL) -- Looking for histedit.h -- Looking for histedit.h - found -- Found LibEdit: /usr/include (found version "2.11") -- Performing Test Terminfo_LINKABLE -- Performing Test Terminfo_LINKABLE - Success -- Found Terminfo: /usr/lib64/libtinfo.so -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.13") -- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR) -- Linker detection: GNU ld -- Performing Test LLVM_LIBSTDCXX_MIN -- Performing Test LLVM_LIBSTDCXX_MIN - Success -- Performing Test LLVM_LIBSTDCXX_SOFT_ERROR -- Performing Test LLVM_LIBSTDCXX_SOFT_ERROR - Success -- Performing Test C_SUPPORTS_FPIC -- Performing Test C_SUPPORTS_FPIC - Failed -- Performing Test CXX_SUPPORTS_FPIC -- Performing Test CXX_SUPPORTS_FPIC - Success CMake Warning at /usr/lib64/cmake/llvm/HandleLLVMOptions.cmake:285 (message): -fPIC is not supported. Call Stack (most recent call first): /usr/lib64/cmake/llvm/HandleLLVMOptions.cmake:342 (add_flag_or_print_warning) CMakeLists.txt:44 (include) -- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION -- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Failed -- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION -- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Success -- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG -- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success -- Performing Test C_SUPPORTS_WERROR_DATE_TIME -- Performing Test C_SUPPORTS_WERROR_DATE_TIME - Failed -- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME -- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME - Success -- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW -- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Failed -- Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW -- Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Success -- Performing Test C_SUPPORTS_CMAKE_CXX_FLAGS -- Performing Test C_SUPPORTS_CMAKE_CXX_FLAGS - Failed -- Performing Test CXX_SUPPORTS_CMAKE_CXX_FLAGS -- Performing Test CXX_SUPPORTS_CMAKE_CXX_FLAGS - Failed -- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG -- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG - Success -- Performing Test C_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG -- Performing Test C_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG - Failed -- Performing Test CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG -- Performing Test CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG - Success -- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG -- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Failed -- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG -- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Success -- Performing Test CXX_SUPPORTS_CLASS_MEMACCESS_FLAG -- Performing Test CXX_SUPPORTS_CLASS_MEMACCESS_FLAG - Failed -- Performing Test CXX_SUPPORTS_NOEXCEPT_TYPE_FLAG -- Performing Test CXX_SUPPORTS_NOEXCEPT_TYPE_FLAG - Success -- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR -- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR - Success -- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG -- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG - Success -- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL -- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL - Success -- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP -- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Failed -- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG -- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG - Failed -- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG -- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG - Success -- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG -- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG - Failed -- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG -- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success -- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG -- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Failed -- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG -- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Success -- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS -- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS - Failed -- Performing Test C_SUPPORTS_FNO_FUNCTION_SECTIONS -- Performing Test C_SUPPORTS_FNO_FUNCTION_SECTIONS - Failed -- Performing Test C_SUPPORTS_FDATA_SECTIONS -- Performing Test C_SUPPORTS_FDATA_SECTIONS - Failed -- Performing Test CXX_SUPPORTS_FDATA_SECTIONS -- Performing Test CXX_SUPPORTS_FDATA_SECTIONS - Success -- Looking for os_signpost_interval_begin -- Looking for os_signpost_interval_begin - not found -- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB -- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Success -- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB -- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB - Success -- Performing Test LLVM_HAS_ATOMICS -- Performing Test LLVM_HAS_ATOMICS - Success -- Found Python3: /usr/bin/python3.11 (found version "3.11.6") found components: Interpreter -- LLD version: 17.0.6 -- Found Git: /usr/bin/git (found version "2.47.3") -- Configuring done (72.2s) -- Generating done (0.7s) CMake Warning: Manually-specified variables were not used by the project: CMAKE_CXX_FLAGS_RELEASE CMAKE_C_FLAGS_RELEASE CMAKE_Fortran_FLAGS_RELEASE CMAKE_INSTALL_DO_STRIP CMAKE_VERBOSE_MAKEFILE INCLUDE_INSTALL_DIR LIB_INSTALL_DIR LIB_SUFFIX PYTHON_EXECUTABLE SHARE_INSTALL_PREFIX SYSCONF_INSTALL_DIR -- Build files have been written to: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build + /usr/bin/cmake --build anolis-linux-build -j64 --verbose Change Dir: '/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build' Run Build Command(s): /usr/bin/ninja-build -v -j 64 [1/135] cd /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build && /usr/bin/llvm-tblgen -gen-opt-parser-defs -I /builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -I/usr/include /builddir/build/BUILD/lld-20.1.0.src/COFF/Options.td --write-if-changed -o COFF/Options.inc -d COFF/Options.inc.d [2/135] cd /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build && /usr/bin/llvm-tblgen -gen-opt-parser-defs -I /builddir/build/BUILD/lld-20.1.0.src/MinGW -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -I/usr/include /builddir/build/BUILD/lld-20.1.0.src/MinGW/Options.td --write-if-changed -o MinGW/Options.inc -d MinGW/Options.inc.d [3/135] cd /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build && /usr/bin/llvm-tblgen -gen-opt-parser-defs -I /builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -I/usr/include /builddir/build/BUILD/lld-20.1.0.src/wasm/Options.td --write-if-changed -o wasm/Options.inc -d wasm/Options.inc.d [4/135] cd /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/Common && /usr/bin/cmake -DNAMES=LLD -DLLD_SOURCE_DIR= -DHEADER_FILE=/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/Common/VCSVersion.inc -DLLVM_FORCE_VC_REVISION= -DLLVM_FORCE_VC_REPOSITORY= -P /usr/lib64/cmake/llvm/GenerateVersionFromVCS.cmake [5/135] cd /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build && /usr/bin/llvm-tblgen -gen-opt-parser-defs -I /builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -I/usr/include /builddir/build/BUILD/lld-20.1.0.src/ELF/Options.td --write-if-changed -o ELF/Options.inc -d ELF/Options.inc.d [6/135] cd /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build && /usr/bin/llvm-tblgen -gen-opt-parser-defs -I /builddir/build/BUILD/lld-20.1.0.src/MachO -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -I/usr/include /builddir/build/BUILD/lld-20.1.0.src/MachO/Options.td --write-if-changed -o MachO/Options.inc -d MachO/Options.inc.d [7/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/Common -I/builddir/build/BUILD/lld-20.1.0.src/Common -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT Common/CMakeFiles/lldCommon.dir/Version.cpp.o -MF Common/CMakeFiles/lldCommon.dir/Version.cpp.o.d -o Common/CMakeFiles/lldCommon.dir/Version.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/Common/Version.cpp [8/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/Common -I/builddir/build/BUILD/lld-20.1.0.src/Common -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT Common/CMakeFiles/lldCommon.dir/TargetOptionsCommandFlags.cpp.o -MF Common/CMakeFiles/lldCommon.dir/TargetOptionsCommandFlags.cpp.o.d -o Common/CMakeFiles/lldCommon.dir/TargetOptionsCommandFlags.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/Common/TargetOptionsCommandFlags.cpp [9/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/Common -I/builddir/build/BUILD/lld-20.1.0.src/Common -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT Common/CMakeFiles/lldCommon.dir/Memory.cpp.o -MF Common/CMakeFiles/lldCommon.dir/Memory.cpp.o.d -o Common/CMakeFiles/lldCommon.dir/Memory.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/Common/Memory.cpp [10/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/Common -I/builddir/build/BUILD/lld-20.1.0.src/Common -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT Common/CMakeFiles/lldCommon.dir/CommonLinkerContext.cpp.o -MF Common/CMakeFiles/lldCommon.dir/CommonLinkerContext.cpp.o.d -o Common/CMakeFiles/lldCommon.dir/CommonLinkerContext.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/Common/CommonLinkerContext.cpp [11/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW -I/builddir/build/BUILD/lld-20.1.0.src/MinGW -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT MinGW/CMakeFiles/lldMinGW.dir/Driver.cpp.o -MF MinGW/CMakeFiles/lldMinGW.dir/Driver.cpp.o.d -o MinGW/CMakeFiles/lldMinGW.dir/Driver.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp FAILED: MinGW/CMakeFiles/lldMinGW.dir/Driver.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW -I/builddir/build/BUILD/lld-20.1.0.src/MinGW -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT MinGW/CMakeFiles/lldMinGW.dir/Driver.cpp.o -MF MinGW/CMakeFiles/lldMinGW.dir/Driver.cpp.o.d -o MinGW/CMakeFiles/lldMinGW.dir/Driver.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:57: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:44:1: error: expected '= constant-expression' or end of enumerator definition 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:37: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:57: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:45:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:21: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:21: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:57: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:45:1: error: expected '= constant-expression' or end of enumerator definition 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:37: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:57: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:46:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 46 | OPTION(prefix_1, llvm::StringLiteral("###"), _HASH_HASH_HASH, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:21: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:21: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:57: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:46:1: error: expected '= constant-expression' or end of enumerator definition 46 | OPTION(prefix_1, llvm::StringLiteral("###"), _HASH_HASH_HASH, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:37: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:57: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:48:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 48 | OPTION(prefix_2, llvm::StringLiteral("allow-multiple-definition"), allow_multiple_definition, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:21: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:21: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:57: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:48:1: error: expected '= constant-expression' or end of enumerator definition 48 | OPTION(prefix_2, llvm::StringLiteral("allow-multiple-definition"), allow_multiple_definition, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:37: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:57: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:50:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 50 | OPTION(prefix_2, llvm::StringLiteral("appcontainer"), appcontainer, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:21: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:21: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:57: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:50:1: error: expected '= constant-expression' or end of enumerator definition 50 | OPTION(prefix_2, llvm::StringLiteral("appcontainer"), appcontainer, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:37: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:57: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:52:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 52 | OPTION(prefix_2, llvm::StringLiteral("as-needed"), anonymous_8, Flag, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:21: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:21: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:57: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:52:1: error: expected '= constant-expression' or end of enumerator definition 52 | OPTION(prefix_2, llvm::StringLiteral("as-needed"), anonymous_8, Flag, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:37: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:57: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:53:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 53 | OPTION(prefix_2, llvm::StringLiteral("Bdynamic"), Bdynamic, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:21: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:21: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:57: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:53:1: error: expected '= constant-expression' or end of enumerator definition 53 | OPTION(prefix_2, llvm::StringLiteral("Bdynamic"), Bdynamic, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:37: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:57: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:55:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 55 | OPTION(prefix_2, llvm::StringLiteral("Bstatic"), Bstatic, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:21: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:21: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:57: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:55:1: error: expected '= constant-expression' or end of enumerator definition 55 | OPTION(prefix_2, llvm::StringLiteral("Bstatic"), Bstatic, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:37: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:57: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:57:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 57 | OPTION(prefix_2, llvm::StringLiteral("build-id="), build_id, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:21: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:21: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:57: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:57:1: error: expected '= constant-expression' or end of enumerator definition 57 | OPTION(prefix_2, llvm::StringLiteral("build-id="), build_id, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:37: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:57: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:59:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 59 | OPTION(prefix_2, llvm::StringLiteral("build-id"), anonymous_5, Flag, INVALID, build_id, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:21: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:21: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:57: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/MinGW/Options.inc:59:1: error: expected '= constant-expression' or end of enumerator definition 59 | OPTION(prefix_2, llvm::StringLiteral("build-id"), anonymous_5, Flag, INVALID, build_id, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/MinGW/Driver.cpp:56:37: note: expanded from macro 'OPTION' 56 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [12/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/Common -I/builddir/build/BUILD/lld-20.1.0.src/Common -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT Common/CMakeFiles/lldCommon.dir/Timer.cpp.o -MF Common/CMakeFiles/lldCommon.dir/Timer.cpp.o.d -o Common/CMakeFiles/lldCommon.dir/Timer.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/Common/Timer.cpp [13/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/Common -I/builddir/build/BUILD/lld-20.1.0.src/Common -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT Common/CMakeFiles/lldCommon.dir/Reproduce.cpp.o -MF Common/CMakeFiles/lldCommon.dir/Reproduce.cpp.o.d -o Common/CMakeFiles/lldCommon.dir/Reproduce.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/Common/Reproduce.cpp [14/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/Common -I/builddir/build/BUILD/lld-20.1.0.src/Common -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT Common/CMakeFiles/lldCommon.dir/Args.cpp.o -MF Common/CMakeFiles/lldCommon.dir/Args.cpp.o.d -o Common/CMakeFiles/lldCommon.dir/Args.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/Common/Args.cpp [15/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/Common -I/builddir/build/BUILD/lld-20.1.0.src/Common -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT Common/CMakeFiles/lldCommon.dir/Filesystem.cpp.o -MF Common/CMakeFiles/lldCommon.dir/Filesystem.cpp.o.d -o Common/CMakeFiles/lldCommon.dir/Filesystem.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/Common/Filesystem.cpp [16/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/WriterUtils.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/WriterUtils.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/WriterUtils.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/WriterUtils.cpp FAILED: wasm/CMakeFiles/lldWasm.dir/WriterUtils.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/WriterUtils.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/WriterUtils.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/WriterUtils.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/WriterUtils.cpp /builddir/build/BUILD/lld-20.1.0.src/wasm/WriterUtils.cpp:38:17: error: no member named 'EXNREF' in 'llvm::wasm::ValType' 38 | case ValType::EXNREF: | ~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/wasm/WriterUtils.cpp:40:17: error: no member named 'OTHERREF' in 'llvm::wasm::ValType' 40 | case ValType::OTHERREF: | ~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/wasm/WriterUtils.cpp:118:38: error: no member named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 118 | support::endian::write(os, number, llvm::endianness::little); | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/WriterUtils.cpp:123:38: error: no member named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 123 | support::endian::write(os, number, llvm::endianness::little); | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ 4 errors generated. [17/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/Common -I/builddir/build/BUILD/lld-20.1.0.src/Common -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT Common/CMakeFiles/lldCommon.dir/Strings.cpp.o -MF Common/CMakeFiles/lldCommon.dir/Strings.cpp.o.d -o Common/CMakeFiles/lldCommon.dir/Strings.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/Common/Strings.cpp [18/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/Common -I/builddir/build/BUILD/lld-20.1.0.src/Common -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT Common/CMakeFiles/lldCommon.dir/DriverDispatcher.cpp.o -MF Common/CMakeFiles/lldCommon.dir/DriverDispatcher.cpp.o.d -o Common/CMakeFiles/lldCommon.dir/DriverDispatcher.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/Common/DriverDispatcher.cpp [19/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/CallGraphSort.cpp.o -MF ELF/CMakeFiles/lldELF.dir/CallGraphSort.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/CallGraphSort.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/CallGraphSort.cpp FAILED: ELF/CMakeFiles/lldELF.dir/CallGraphSort.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/CallGraphSort.cpp.o -MF ELF/CMakeFiles/lldELF.dir/CallGraphSort.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/CallGraphSort.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/CallGraphSort.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/CallGraphSort.cpp:27: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:12: /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:403:9: error: no type named 'CodeGenOptLevel' in namespace 'llvm' 403 | llvm::CodeGenOptLevel ltoCgo; | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:424:3: error: no type named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 424 | llvm::endianness endianness; | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/CallGraphSort.cpp:27: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:3: error: a type specifier is required for all declarations 111 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:28: error: expected ';' at end of declaration list 111 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:3: error: a type specifier is required for all declarations 118 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:28: error: expected ';' at end of declaration list 118 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:3: error: a type specifier is required for all declarations 125 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:28: error: expected ';' at end of declaration list 125 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:3: error: a type specifier is required for all declarations 137 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:28: error: expected ';' at end of declaration list 137 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:3: error: a type specifier is required for all declarations 140 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:28: error: expected ';' at end of declaration list 140 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:3: error: a type specifier is required for all declarations 144 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:28: error: expected ';' at end of declaration list 144 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:3: error: a type specifier is required for all declarations 148 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:28: error: expected ';' at end of declaration list 148 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:3: error: a type specifier is required for all declarations 261 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:28: error: expected ';' at end of declaration list 261 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:266:3: error: a type specifier is required for all declarations 266 | LLVM_PREFERRED_TYPE(bool) | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [20/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/AVR.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/AVR.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/AVR.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/AVR.cpp FAILED: ELF/CMakeFiles/lldELF.dir/Arch/AVR.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/AVR.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/AVR.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/AVR.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/AVR.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/AVR.cpp:28: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:12: /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:403:9: error: no type named 'CodeGenOptLevel' in namespace 'llvm' 403 | llvm::CodeGenOptLevel ltoCgo; | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:424:3: error: no type named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 424 | llvm::endianness endianness; | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/AVR.cpp:28: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:3: error: a type specifier is required for all declarations 111 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:28: error: expected ';' at end of declaration list 111 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:3: error: a type specifier is required for all declarations 118 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:28: error: expected ';' at end of declaration list 118 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:3: error: a type specifier is required for all declarations 125 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:28: error: expected ';' at end of declaration list 125 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:3: error: a type specifier is required for all declarations 137 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:28: error: expected ';' at end of declaration list 137 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:3: error: a type specifier is required for all declarations 140 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:28: error: expected ';' at end of declaration list 140 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:3: error: a type specifier is required for all declarations 144 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:28: error: expected ';' at end of declaration list 144 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:3: error: a type specifier is required for all declarations 148 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:28: error: expected ';' at end of declaration list 148 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:3: error: a type specifier is required for all declarations 261 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:28: error: expected ';' at end of declaration list 261 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:266:3: error: a type specifier is required for all declarations 266 | LLVM_PREFERRED_TYPE(bool) | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [21/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/MSP430.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/MSP430.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/MSP430.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/MSP430.cpp FAILED: ELF/CMakeFiles/lldELF.dir/Arch/MSP430.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/MSP430.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/MSP430.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/MSP430.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/MSP430.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/MSP430.cpp:18: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:16: /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:403:9: error: no type named 'CodeGenOptLevel' in namespace 'llvm' 403 | llvm::CodeGenOptLevel ltoCgo; | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:424:3: error: no type named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 424 | llvm::endianness endianness; | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/MSP430.cpp:18: /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:3: error: a type specifier is required for all declarations 111 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:28: error: expected ';' at end of declaration list 111 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:3: error: a type specifier is required for all declarations 118 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:28: error: expected ';' at end of declaration list 118 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:3: error: a type specifier is required for all declarations 125 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:28: error: expected ';' at end of declaration list 125 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:3: error: a type specifier is required for all declarations 137 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:28: error: expected ';' at end of declaration list 137 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:3: error: a type specifier is required for all declarations 140 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:28: error: expected ';' at end of declaration list 140 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:3: error: a type specifier is required for all declarations 144 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:28: error: expected ';' at end of declaration list 144 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:3: error: a type specifier is required for all declarations 148 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:28: error: expected ';' at end of declaration list 148 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:3: error: a type specifier is required for all declarations 261 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:28: error: expected ';' at end of declaration list 261 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:266:3: error: a type specifier is required for all declarations 266 | LLVM_PREFERRED_TYPE(bool) | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [22/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/Common -I/builddir/build/BUILD/lld-20.1.0.src/Common -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT Common/CMakeFiles/lldCommon.dir/DWARF.cpp.o -MF Common/CMakeFiles/lldCommon.dir/DWARF.cpp.o.d -o Common/CMakeFiles/lldCommon.dir/DWARF.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/Common/DWARF.cpp FAILED: Common/CMakeFiles/lldCommon.dir/DWARF.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/Common -I/builddir/build/BUILD/lld-20.1.0.src/Common -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT Common/CMakeFiles/lldCommon.dir/DWARF.cpp.o -MF Common/CMakeFiles/lldCommon.dir/DWARF.cpp.o.d -o Common/CMakeFiles/lldCommon.dir/DWARF.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/Common/DWARF.cpp /builddir/build/BUILD/lld-20.1.0.src/Common/DWARF.cpp:97:70: error: too many arguments to function call, expected 4, have 5 95 | if (lt->getFileLineInfoForAddress( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 96 | {offset, sectionIndex}, false, nullptr, 97 | DILineInfoSpecifier::FileLineInfoKind::AbsoluteFilePath, info)) | ^~~~ /usr/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h:269:10: note: 'getFileLineInfoForAddress' declared here 269 | bool getFileLineInfoForAddress(object::SectionedAddress Address, | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 270 | const char *CompDir, | ~~~~~~~~~~~~~~~~~~~~ 271 | DILineInfoSpecifier::FileLineInfoKind Kind, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 272 | DILineInfo &Result) const; | ~~~~~~~~~~~~~~~~~~ 1 error generated. [23/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/CallGraphSort.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/CallGraphSort.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/CallGraphSort.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/CallGraphSort.cpp FAILED: COFF/CMakeFiles/lldCOFF.dir/CallGraphSort.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/CallGraphSort.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/CallGraphSort.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/CallGraphSort.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/CallGraphSort.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/CallGraphSort.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:469:16: error: no member named 'getMachineArchType' in namespace 'llvm' 469 | return llvm::getMachineArchType(getMachine()); | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:479:29: error: no member named 'Amd64' in 'llvm::object::chpe_range_type' 479 | return chpe_range_type::Amd64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:12: error: no member named 'Arm64EC' in 'llvm::object::chpe_range_type'; did you mean 'ARM64EC'? 481 | return chpe_range_type::Arm64EC; | ^~~~~~~~~~~~~~~~~~~~~~~~ | ARM64EC /builddir/build/BUILD/lld-20.1.0.src/COFF/Config.h:41:19: note: 'ARM64EC' declared here 41 | static const auto ARM64EC = llvm::COFF::IMAGE_FILE_MACHINE_ARM64EC; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/CallGraphSort.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:29: error: no viable conversion from returned value of type 'const llvm::COFF::MachineTypes' to function return type 'std::optional' 481 | return chpe_range_type::Arm64EC; | ^~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'const optional &' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'optional &&' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:737:17: note: candidate constructor not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'nullopt_t' for 1st argument 737 | constexpr optional(nullopt_t) noexcept { } | ^ ~~~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:745:2: note: candidate template ignored: requirement '__and_v, llvm::COFF::MachineTypes>>, std::__not_>, std::is_constructible, std::is_convertible>' was not satisfied [with _Up = const llvm::COFF::MachineTypes &] 745 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:764:2: note: candidate template ignored: could not match 'const optional<_Up>' against 'const llvm::COFF::MachineTypes' 764 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:790:2: note: candidate template ignored: could not match 'optional<_Up>' against 'const llvm::COFF::MachineTypes' 790 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:754:2: note: explicit constructor is not a candidate 754 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:777:2: note: explicit constructor is not a candidate 777 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:803:2: note: explicit constructor is not a candidate 803 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:813:2: note: explicit constructor is not a candidate 813 | optional(in_place_t, _Args&&... __args) | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/CallGraphSort.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:483:29: error: no member named 'Arm64' in 'llvm::object::chpe_range_type' 483 | return chpe_range_type::Arm64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:856:39: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 856 | Arm64XDynamicRelocEntry(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:867:15: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 867 | llvm::COFF::Arm64XFixupType type; | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:879:24: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 879 | void add(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/CallGraphSort.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: error: expected '= constant-expression' or end of enumerator definition 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/CallGraphSort.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/CallGraphSort.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: expected '= constant-expression' or end of enumerator definition 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/CallGraphSort.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/CallGraphSort.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: expected '= constant-expression' or end of enumerator definition 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/CallGraphSort.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/CallGraphSort.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: expected '= constant-expression' or end of enumerator definition 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/CallGraphSort.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/CallGraphSort.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: expected '= constant-expression' or end of enumerator definition 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/CallGraphSort.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/CallGraphSort.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: expected '= constant-expression' or end of enumerator definition 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [24/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/AMDGPU.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/AMDGPU.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/AMDGPU.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/AMDGPU.cpp FAILED: ELF/CMakeFiles/lldELF.dir/Arch/AMDGPU.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/AMDGPU.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/AMDGPU.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/AMDGPU.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/AMDGPU.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/AMDGPU.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:12: /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:403:9: error: no type named 'CodeGenOptLevel' in namespace 'llvm' 403 | llvm::CodeGenOptLevel ltoCgo; | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:424:3: error: no type named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 424 | llvm::endianness endianness; | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/AMDGPU.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:3: error: a type specifier is required for all declarations 111 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:28: error: expected ';' at end of declaration list 111 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:3: error: a type specifier is required for all declarations 118 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:28: error: expected ';' at end of declaration list 118 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:3: error: a type specifier is required for all declarations 125 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:28: error: expected ';' at end of declaration list 125 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:3: error: a type specifier is required for all declarations 137 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:28: error: expected ';' at end of declaration list 137 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:3: error: a type specifier is required for all declarations 140 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:28: error: expected ';' at end of declaration list 140 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:3: error: a type specifier is required for all declarations 144 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:28: error: expected ';' at end of declaration list 144 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:3: error: a type specifier is required for all declarations 148 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:28: error: expected ';' at end of declaration list 148 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:3: error: a type specifier is required for all declarations 261 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:28: error: expected ';' at end of declaration list 261 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:266:3: error: a type specifier is required for all declarations 266 | LLVM_PREFERRED_TYPE(bool) | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [25/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/MarkLive.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/MarkLive.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/MarkLive.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/MarkLive.cpp FAILED: COFF/CMakeFiles/lldCOFF.dir/MarkLive.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/MarkLive.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/MarkLive.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/MarkLive.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/MarkLive.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MarkLive.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:469:16: error: no member named 'getMachineArchType' in namespace 'llvm' 469 | return llvm::getMachineArchType(getMachine()); | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:479:29: error: no member named 'Amd64' in 'llvm::object::chpe_range_type' 479 | return chpe_range_type::Amd64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:12: error: no member named 'Arm64EC' in 'llvm::object::chpe_range_type'; did you mean 'ARM64EC'? 481 | return chpe_range_type::Arm64EC; | ^~~~~~~~~~~~~~~~~~~~~~~~ | ARM64EC /builddir/build/BUILD/lld-20.1.0.src/COFF/Config.h:41:19: note: 'ARM64EC' declared here 41 | static const auto ARM64EC = llvm::COFF::IMAGE_FILE_MACHINE_ARM64EC; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MarkLive.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:29: error: no viable conversion from returned value of type 'const llvm::COFF::MachineTypes' to function return type 'std::optional' 481 | return chpe_range_type::Arm64EC; | ^~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'const optional &' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'optional &&' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:737:17: note: candidate constructor not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'nullopt_t' for 1st argument 737 | constexpr optional(nullopt_t) noexcept { } | ^ ~~~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:745:2: note: candidate template ignored: requirement '__and_v, llvm::COFF::MachineTypes>>, std::__not_>, std::is_constructible, std::is_convertible>' was not satisfied [with _Up = const llvm::COFF::MachineTypes &] 745 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:764:2: note: candidate template ignored: could not match 'const optional<_Up>' against 'const llvm::COFF::MachineTypes' 764 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:790:2: note: candidate template ignored: could not match 'optional<_Up>' against 'const llvm::COFF::MachineTypes' 790 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:754:2: note: explicit constructor is not a candidate 754 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:777:2: note: explicit constructor is not a candidate 777 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:803:2: note: explicit constructor is not a candidate 803 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:813:2: note: explicit constructor is not a candidate 813 | optional(in_place_t, _Args&&... __args) | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MarkLive.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:483:29: error: no member named 'Arm64' in 'llvm::object::chpe_range_type' 483 | return chpe_range_type::Arm64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:856:39: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 856 | Arm64XDynamicRelocEntry(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:867:15: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 867 | llvm::COFF::Arm64XFixupType type; | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:879:24: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 879 | void add(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MarkLive.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: error: expected '= constant-expression' or end of enumerator definition 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MarkLive.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MarkLive.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: expected '= constant-expression' or end of enumerator definition 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MarkLive.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MarkLive.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: expected '= constant-expression' or end of enumerator definition 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MarkLive.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MarkLive.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: expected '= constant-expression' or end of enumerator definition 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MarkLive.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MarkLive.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: expected '= constant-expression' or end of enumerator definition 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MarkLive.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MarkLive.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: expected '= constant-expression' or end of enumerator definition 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [26/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/MipsArchTree.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/MipsArchTree.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/MipsArchTree.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/MipsArchTree.cpp FAILED: ELF/CMakeFiles/lldELF.dir/Arch/MipsArchTree.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/MipsArchTree.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/MipsArchTree.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/MipsArchTree.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/MipsArchTree.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/MipsArchTree.cpp:13: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:12: /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:403:9: error: no type named 'CodeGenOptLevel' in namespace 'llvm' 403 | llvm::CodeGenOptLevel ltoCgo; | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:424:3: error: no type named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 424 | llvm::endianness endianness; | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/MipsArchTree.cpp:13: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:3: error: a type specifier is required for all declarations 111 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:28: error: expected ';' at end of declaration list 111 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:3: error: a type specifier is required for all declarations 118 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:28: error: expected ';' at end of declaration list 118 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:3: error: a type specifier is required for all declarations 125 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:28: error: expected ';' at end of declaration list 125 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:3: error: a type specifier is required for all declarations 137 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:28: error: expected ';' at end of declaration list 137 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:3: error: a type specifier is required for all declarations 140 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:28: error: expected ';' at end of declaration list 140 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:3: error: a type specifier is required for all declarations 144 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:28: error: expected ';' at end of declaration list 144 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:3: error: a type specifier is required for all declarations 148 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:28: error: expected ';' at end of declaration list 148 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:3: error: a type specifier is required for all declarations 261 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:28: error: expected ';' at end of declaration list 261 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:266:3: error: a type specifier is required for all declarations 266 | LLVM_PREFERRED_TYPE(bool) | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [27/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/MapFile.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/MapFile.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/MapFile.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/MapFile.cpp FAILED: COFF/CMakeFiles/lldCOFF.dir/MapFile.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/MapFile.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/MapFile.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/MapFile.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/MapFile.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MapFile.cpp:31: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:469:16: error: no member named 'getMachineArchType' in namespace 'llvm' 469 | return llvm::getMachineArchType(getMachine()); | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:479:29: error: no member named 'Amd64' in 'llvm::object::chpe_range_type' 479 | return chpe_range_type::Amd64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:12: error: no member named 'Arm64EC' in 'llvm::object::chpe_range_type'; did you mean 'ARM64EC'? 481 | return chpe_range_type::Arm64EC; | ^~~~~~~~~~~~~~~~~~~~~~~~ | ARM64EC /builddir/build/BUILD/lld-20.1.0.src/COFF/Config.h:41:19: note: 'ARM64EC' declared here 41 | static const auto ARM64EC = llvm::COFF::IMAGE_FILE_MACHINE_ARM64EC; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MapFile.cpp:31: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:29: error: no viable conversion from returned value of type 'const llvm::COFF::MachineTypes' to function return type 'std::optional' 481 | return chpe_range_type::Arm64EC; | ^~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'const optional &' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'optional &&' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:737:17: note: candidate constructor not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'nullopt_t' for 1st argument 737 | constexpr optional(nullopt_t) noexcept { } | ^ ~~~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:745:2: note: candidate template ignored: requirement '__and_v, llvm::COFF::MachineTypes>>, std::__not_>, std::is_constructible, std::is_convertible>' was not satisfied [with _Up = const llvm::COFF::MachineTypes &] 745 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:764:2: note: candidate template ignored: could not match 'const optional<_Up>' against 'const llvm::COFF::MachineTypes' 764 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:790:2: note: candidate template ignored: could not match 'optional<_Up>' against 'const llvm::COFF::MachineTypes' 790 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:754:2: note: explicit constructor is not a candidate 754 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:777:2: note: explicit constructor is not a candidate 777 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:803:2: note: explicit constructor is not a candidate 803 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:813:2: note: explicit constructor is not a candidate 813 | optional(in_place_t, _Args&&... __args) | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MapFile.cpp:31: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:483:29: error: no member named 'Arm64' in 'llvm::object::chpe_range_type' 483 | return chpe_range_type::Arm64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:856:39: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 856 | Arm64XDynamicRelocEntry(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:867:15: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 867 | llvm::COFF::Arm64XFixupType type; | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:879:24: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 879 | void add(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MapFile.cpp:31: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: error: expected '= constant-expression' or end of enumerator definition 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MapFile.cpp:31: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MapFile.cpp:31: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: expected '= constant-expression' or end of enumerator definition 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MapFile.cpp:31: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MapFile.cpp:31: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: expected '= constant-expression' or end of enumerator definition 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MapFile.cpp:31: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MapFile.cpp:31: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: expected '= constant-expression' or end of enumerator definition 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MapFile.cpp:31: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MapFile.cpp:31: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: expected '= constant-expression' or end of enumerator definition 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MapFile.cpp:31: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MapFile.cpp:31: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: expected '= constant-expression' or end of enumerator definition 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [28/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/COFFLinkerContext.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/COFFLinkerContext.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/COFFLinkerContext.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.cpp FAILED: COFF/CMakeFiles/lldCOFF.dir/COFFLinkerContext.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/COFFLinkerContext.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/COFFLinkerContext.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/COFFLinkerContext.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.cpp:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:469:16: error: no member named 'getMachineArchType' in namespace 'llvm' 469 | return llvm::getMachineArchType(getMachine()); | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:479:29: error: no member named 'Amd64' in 'llvm::object::chpe_range_type' 479 | return chpe_range_type::Amd64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:12: error: no member named 'Arm64EC' in 'llvm::object::chpe_range_type'; did you mean 'ARM64EC'? 481 | return chpe_range_type::Arm64EC; | ^~~~~~~~~~~~~~~~~~~~~~~~ | ARM64EC /builddir/build/BUILD/lld-20.1.0.src/COFF/Config.h:41:19: note: 'ARM64EC' declared here 41 | static const auto ARM64EC = llvm::COFF::IMAGE_FILE_MACHINE_ARM64EC; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.cpp:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:29: error: no viable conversion from returned value of type 'const llvm::COFF::MachineTypes' to function return type 'std::optional' 481 | return chpe_range_type::Arm64EC; | ^~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'const optional &' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'optional &&' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:737:17: note: candidate constructor not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'nullopt_t' for 1st argument 737 | constexpr optional(nullopt_t) noexcept { } | ^ ~~~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:745:2: note: candidate template ignored: requirement '__and_v, llvm::COFF::MachineTypes>>, std::__not_>, std::is_constructible, std::is_convertible>' was not satisfied [with _Up = const llvm::COFF::MachineTypes &] 745 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:764:2: note: candidate template ignored: could not match 'const optional<_Up>' against 'const llvm::COFF::MachineTypes' 764 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:790:2: note: candidate template ignored: could not match 'optional<_Up>' against 'const llvm::COFF::MachineTypes' 790 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:754:2: note: explicit constructor is not a candidate 754 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:777:2: note: explicit constructor is not a candidate 777 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:803:2: note: explicit constructor is not a candidate 803 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:813:2: note: explicit constructor is not a candidate 813 | optional(in_place_t, _Args&&... __args) | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.cpp:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:483:29: error: no member named 'Arm64' in 'llvm::object::chpe_range_type' 483 | return chpe_range_type::Arm64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:856:39: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 856 | Arm64XDynamicRelocEntry(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:867:15: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 867 | llvm::COFF::Arm64XFixupType type; | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:879:24: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 879 | void add(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.cpp:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: error: expected '= constant-expression' or end of enumerator definition 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.cpp:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.cpp:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: expected '= constant-expression' or end of enumerator definition 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.cpp:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.cpp:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: expected '= constant-expression' or end of enumerator definition 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.cpp:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.cpp:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: expected '= constant-expression' or end of enumerator definition 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.cpp:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.cpp:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: expected '= constant-expression' or end of enumerator definition 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.cpp:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.cpp:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: expected '= constant-expression' or end of enumerator definition 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [29/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/Hexagon.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/Hexagon.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/Hexagon.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/Hexagon.cpp FAILED: ELF/CMakeFiles/lldELF.dir/Arch/Hexagon.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/Hexagon.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/Hexagon.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/Hexagon.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/Hexagon.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/Hexagon.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:12: /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:403:9: error: no type named 'CodeGenOptLevel' in namespace 'llvm' 403 | llvm::CodeGenOptLevel ltoCgo; | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:424:3: error: no type named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 424 | llvm::endianness endianness; | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/Hexagon.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:3: error: a type specifier is required for all declarations 111 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:28: error: expected ';' at end of declaration list 111 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:3: error: a type specifier is required for all declarations 118 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:28: error: expected ';' at end of declaration list 118 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:3: error: a type specifier is required for all declarations 125 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:28: error: expected ';' at end of declaration list 125 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:3: error: a type specifier is required for all declarations 137 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:28: error: expected ';' at end of declaration list 137 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:3: error: a type specifier is required for all declarations 140 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:28: error: expected ';' at end of declaration list 140 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:3: error: a type specifier is required for all declarations 144 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:28: error: expected ';' at end of declaration list 144 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:3: error: a type specifier is required for all declarations 148 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:28: error: expected ';' at end of declaration list 148 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:3: error: a type specifier is required for all declarations 261 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:28: error: expected ';' at end of declaration list 261 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:266:3: error: a type specifier is required for all declarations 266 | LLVM_PREFERRED_TYPE(bool) | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [30/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/DLL.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/DLL.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/DLL.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/DLL.cpp FAILED: COFF/CMakeFiles/lldCOFF.dir/DLL.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/DLL.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/DLL.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/DLL.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/DLL.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DLL.cpp:20: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DLL.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:469:16: error: no member named 'getMachineArchType' in namespace 'llvm' 469 | return llvm::getMachineArchType(getMachine()); | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:479:29: error: no member named 'Amd64' in 'llvm::object::chpe_range_type' 479 | return chpe_range_type::Amd64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:12: error: no member named 'Arm64EC' in 'llvm::object::chpe_range_type'; did you mean 'ARM64EC'? 481 | return chpe_range_type::Arm64EC; | ^~~~~~~~~~~~~~~~~~~~~~~~ | ARM64EC /builddir/build/BUILD/lld-20.1.0.src/COFF/Config.h:41:19: note: 'ARM64EC' declared here 41 | static const auto ARM64EC = llvm::COFF::IMAGE_FILE_MACHINE_ARM64EC; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DLL.cpp:20: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DLL.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:29: error: no viable conversion from returned value of type 'const llvm::COFF::MachineTypes' to function return type 'std::optional' 481 | return chpe_range_type::Arm64EC; | ^~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'const optional &' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'optional &&' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:737:17: note: candidate constructor not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'nullopt_t' for 1st argument 737 | constexpr optional(nullopt_t) noexcept { } | ^ ~~~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:745:2: note: candidate template ignored: requirement '__and_v, llvm::COFF::MachineTypes>>, std::__not_>, std::is_constructible, std::is_convertible>' was not satisfied [with _Up = const llvm::COFF::MachineTypes &] 745 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:764:2: note: candidate template ignored: could not match 'const optional<_Up>' against 'const llvm::COFF::MachineTypes' 764 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:790:2: note: candidate template ignored: could not match 'optional<_Up>' against 'const llvm::COFF::MachineTypes' 790 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:754:2: note: explicit constructor is not a candidate 754 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:777:2: note: explicit constructor is not a candidate 777 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:803:2: note: explicit constructor is not a candidate 803 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:813:2: note: explicit constructor is not a candidate 813 | optional(in_place_t, _Args&&... __args) | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DLL.cpp:20: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DLL.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:483:29: error: no member named 'Arm64' in 'llvm::object::chpe_range_type' 483 | return chpe_range_type::Arm64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:856:39: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 856 | Arm64XDynamicRelocEntry(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:867:15: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 867 | llvm::COFF::Arm64XFixupType type; | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:879:24: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 879 | void add(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DLL.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: error: expected '= constant-expression' or end of enumerator definition 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DLL.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DLL.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: expected '= constant-expression' or end of enumerator definition 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DLL.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DLL.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: expected '= constant-expression' or end of enumerator definition 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DLL.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DLL.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: expected '= constant-expression' or end of enumerator definition 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DLL.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DLL.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: expected '= constant-expression' or end of enumerator definition 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DLL.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DLL.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: expected '= constant-expression' or end of enumerator definition 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [31/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/Symbols.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/Symbols.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/Symbols.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/Symbols.cpp FAILED: COFF/CMakeFiles/lldCOFF.dir/Symbols.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/Symbols.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/Symbols.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/Symbols.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/Symbols.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Symbols.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Symbols.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:469:16: error: no member named 'getMachineArchType' in namespace 'llvm' 469 | return llvm::getMachineArchType(getMachine()); | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:479:29: error: no member named 'Amd64' in 'llvm::object::chpe_range_type' 479 | return chpe_range_type::Amd64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:12: error: no member named 'Arm64EC' in 'llvm::object::chpe_range_type'; did you mean 'ARM64EC'? 481 | return chpe_range_type::Arm64EC; | ^~~~~~~~~~~~~~~~~~~~~~~~ | ARM64EC /builddir/build/BUILD/lld-20.1.0.src/COFF/Config.h:41:19: note: 'ARM64EC' declared here 41 | static const auto ARM64EC = llvm::COFF::IMAGE_FILE_MACHINE_ARM64EC; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Symbols.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Symbols.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:29: error: no viable conversion from returned value of type 'const llvm::COFF::MachineTypes' to function return type 'std::optional' 481 | return chpe_range_type::Arm64EC; | ^~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'const optional &' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'optional &&' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:737:17: note: candidate constructor not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'nullopt_t' for 1st argument 737 | constexpr optional(nullopt_t) noexcept { } | ^ ~~~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:745:2: note: candidate template ignored: requirement '__and_v, llvm::COFF::MachineTypes>>, std::__not_>, std::is_constructible, std::is_convertible>' was not satisfied [with _Up = const llvm::COFF::MachineTypes &] 745 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:764:2: note: candidate template ignored: could not match 'const optional<_Up>' against 'const llvm::COFF::MachineTypes' 764 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:790:2: note: candidate template ignored: could not match 'optional<_Up>' against 'const llvm::COFF::MachineTypes' 790 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:754:2: note: explicit constructor is not a candidate 754 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:777:2: note: explicit constructor is not a candidate 777 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:803:2: note: explicit constructor is not a candidate 803 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:813:2: note: explicit constructor is not a candidate 813 | optional(in_place_t, _Args&&... __args) | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Symbols.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Symbols.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:483:29: error: no member named 'Arm64' in 'llvm::object::chpe_range_type' 483 | return chpe_range_type::Arm64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:856:39: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 856 | Arm64XDynamicRelocEntry(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:867:15: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 867 | llvm::COFF::Arm64XFixupType type; | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:879:24: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 879 | void add(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Symbols.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: error: expected '= constant-expression' or end of enumerator definition 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Symbols.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Symbols.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: expected '= constant-expression' or end of enumerator definition 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Symbols.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Symbols.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: expected '= constant-expression' or end of enumerator definition 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Symbols.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Symbols.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: expected '= constant-expression' or end of enumerator definition 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Symbols.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Symbols.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: expected '= constant-expression' or end of enumerator definition 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Symbols.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Symbols.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: expected '= constant-expression' or end of enumerator definition 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [32/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/AArch64ErrataFix.cpp.o -MF ELF/CMakeFiles/lldELF.dir/AArch64ErrataFix.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/AArch64ErrataFix.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/AArch64ErrataFix.cpp FAILED: ELF/CMakeFiles/lldELF.dir/AArch64ErrataFix.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/AArch64ErrataFix.cpp.o -MF ELF/CMakeFiles/lldELF.dir/AArch64ErrataFix.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/AArch64ErrataFix.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/AArch64ErrataFix.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/AArch64ErrataFix.cpp:29: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:12: /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:403:9: error: no type named 'CodeGenOptLevel' in namespace 'llvm' 403 | llvm::CodeGenOptLevel ltoCgo; | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:424:3: error: no type named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 424 | llvm::endianness endianness; | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/AArch64ErrataFix.cpp:29: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:3: error: a type specifier is required for all declarations 111 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:28: error: expected ';' at end of declaration list 111 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:3: error: a type specifier is required for all declarations 118 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:28: error: expected ';' at end of declaration list 118 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:3: error: a type specifier is required for all declarations 125 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:28: error: expected ';' at end of declaration list 125 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:3: error: a type specifier is required for all declarations 137 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:28: error: expected ';' at end of declaration list 137 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:3: error: a type specifier is required for all declarations 140 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:28: error: expected ';' at end of declaration list 140 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:3: error: a type specifier is required for all declarations 144 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:28: error: expected ';' at end of declaration list 144 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:3: error: a type specifier is required for all declarations 148 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:28: error: expected ';' at end of declaration list 148 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:3: error: a type specifier is required for all declarations 261 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:28: error: expected ';' at end of declaration list 261 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:266:3: error: a type specifier is required for all declarations 266 | LLVM_PREFERRED_TYPE(bool) | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [33/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/X86.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/X86.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/X86.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86.cpp FAILED: ELF/CMakeFiles/lldELF.dir/Arch/X86.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/X86.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/X86.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/X86.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:12: /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:403:9: error: no type named 'CodeGenOptLevel' in namespace 'llvm' 403 | llvm::CodeGenOptLevel ltoCgo; | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:424:3: error: no type named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 424 | llvm::endianness endianness; | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:263:38: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 263 | using value_type = llvm::object::Elf_Crel_Impl; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:263:52: error: template argument for template type parameter must be a type 263 | using value_type = llvm::object::Elf_Crel_Impl; | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:265:21: error: unknown type name 'value_type'; did you mean 'std::_Bit_const_iterator::value_type'? 265 | using pointer = value_type *; | ^~~~~~~~~~ | std::_Bit_const_iterator::value_type /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/bits/stl_iterator_base_types.h:132:26: note: 'std::_Bit_const_iterator::value_type' declared here 132 | typedef _Tp value_type; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:266:29: error: unknown type name 'value_type'; did you mean 'std::_Bit_const_iterator::value_type'? 266 | using reference = const value_type &; | ^~~~~~~~~~ | std::_Bit_const_iterator::value_type /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/bits/stl_iterator_base_types.h:132:26: note: 'std::_Bit_const_iterator::value_type' declared here 132 | typedef _Tp value_type; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:270:19: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 270 | llvm::object::Elf_Crel_Impl crel{}; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:270:33: error: template argument for template type parameter must be a type 270 | llvm::object::Elf_Crel_Impl crel{}; | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:290:19: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 290 | llvm::object::Elf_Crel_Impl operator*() const { return crel; }; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:290:33: error: template argument for template type parameter must be a type 290 | llvm::object::Elf_Crel_Impl operator*() const { return crel; }; | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:291:25: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 291 | const llvm::object::Elf_Crel_Impl *operator->() const { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:291:39: error: template argument for template type parameter must be a type 291 | const llvm::object::Elf_Crel_Impl *operator->() const { | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:325:29: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 325 | struct Relocs> : RelocsCrel { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:325:43: error: template argument for template type parameter must be a type 325 | struct Relocs> : RelocsCrel { | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:359:29: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 359 | inline Relocs> | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:359:43: error: template argument for template type parameter must be a type 359 | inline Relocs> | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:360:31: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 360 | sortRels(Relocs> rels, | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:360:45: error: template argument for template type parameter must be a type 360 | sortRels(Relocs> rels, | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:361:36: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 361 | SmallVector, 0> &storage) { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [34/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/LLDMapFile.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/LLDMapFile.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/LLDMapFile.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/LLDMapFile.cpp FAILED: COFF/CMakeFiles/lldCOFF.dir/LLDMapFile.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/LLDMapFile.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/LLDMapFile.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/LLDMapFile.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/LLDMapFile.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LLDMapFile.cpp:22: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:469:16: error: no member named 'getMachineArchType' in namespace 'llvm' 469 | return llvm::getMachineArchType(getMachine()); | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:479:29: error: no member named 'Amd64' in 'llvm::object::chpe_range_type' 479 | return chpe_range_type::Amd64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:12: error: no member named 'Arm64EC' in 'llvm::object::chpe_range_type'; did you mean 'ARM64EC'? 481 | return chpe_range_type::Arm64EC; | ^~~~~~~~~~~~~~~~~~~~~~~~ | ARM64EC /builddir/build/BUILD/lld-20.1.0.src/COFF/Config.h:41:19: note: 'ARM64EC' declared here 41 | static const auto ARM64EC = llvm::COFF::IMAGE_FILE_MACHINE_ARM64EC; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LLDMapFile.cpp:22: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:29: error: no viable conversion from returned value of type 'const llvm::COFF::MachineTypes' to function return type 'std::optional' 481 | return chpe_range_type::Arm64EC; | ^~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'const optional &' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'optional &&' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:737:17: note: candidate constructor not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'nullopt_t' for 1st argument 737 | constexpr optional(nullopt_t) noexcept { } | ^ ~~~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:745:2: note: candidate template ignored: requirement '__and_v, llvm::COFF::MachineTypes>>, std::__not_>, std::is_constructible, std::is_convertible>' was not satisfied [with _Up = const llvm::COFF::MachineTypes &] 745 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:764:2: note: candidate template ignored: could not match 'const optional<_Up>' against 'const llvm::COFF::MachineTypes' 764 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:790:2: note: candidate template ignored: could not match 'optional<_Up>' against 'const llvm::COFF::MachineTypes' 790 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:754:2: note: explicit constructor is not a candidate 754 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:777:2: note: explicit constructor is not a candidate 777 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:803:2: note: explicit constructor is not a candidate 803 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:813:2: note: explicit constructor is not a candidate 813 | optional(in_place_t, _Args&&... __args) | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LLDMapFile.cpp:22: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:483:29: error: no member named 'Arm64' in 'llvm::object::chpe_range_type' 483 | return chpe_range_type::Arm64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:856:39: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 856 | Arm64XDynamicRelocEntry(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:867:15: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 867 | llvm::COFF::Arm64XFixupType type; | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:879:24: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 879 | void add(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LLDMapFile.cpp:22: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: error: expected '= constant-expression' or end of enumerator definition 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LLDMapFile.cpp:22: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LLDMapFile.cpp:22: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: expected '= constant-expression' or end of enumerator definition 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LLDMapFile.cpp:22: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LLDMapFile.cpp:22: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: expected '= constant-expression' or end of enumerator definition 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LLDMapFile.cpp:22: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LLDMapFile.cpp:22: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: expected '= constant-expression' or end of enumerator definition 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LLDMapFile.cpp:22: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LLDMapFile.cpp:22: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: expected '= constant-expression' or end of enumerator definition 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LLDMapFile.cpp:22: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LLDMapFile.cpp:22: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: expected '= constant-expression' or end of enumerator definition 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [35/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/SPARCV9.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/SPARCV9.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/SPARCV9.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SPARCV9.cpp FAILED: ELF/CMakeFiles/lldELF.dir/Arch/SPARCV9.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/SPARCV9.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/SPARCV9.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/SPARCV9.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SPARCV9.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SPARCV9.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:16: /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:403:9: error: no type named 'CodeGenOptLevel' in namespace 'llvm' 403 | llvm::CodeGenOptLevel ltoCgo; | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:424:3: error: no type named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 424 | llvm::endianness endianness; | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SPARCV9.cpp:9: /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:3: error: a type specifier is required for all declarations 111 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:28: error: expected ';' at end of declaration list 111 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:3: error: a type specifier is required for all declarations 118 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:28: error: expected ';' at end of declaration list 118 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:3: error: a type specifier is required for all declarations 125 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:28: error: expected ';' at end of declaration list 125 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:3: error: a type specifier is required for all declarations 137 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:28: error: expected ';' at end of declaration list 137 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:3: error: a type specifier is required for all declarations 140 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:28: error: expected ';' at end of declaration list 140 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:3: error: a type specifier is required for all declarations 144 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:28: error: expected ';' at end of declaration list 144 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:3: error: a type specifier is required for all declarations 148 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:28: error: expected ';' at end of declaration list 148 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:3: error: a type specifier is required for all declarations 261 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:28: error: expected ';' at end of declaration list 261 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:266:3: error: a type specifier is required for all declarations 266 | LLVM_PREFERRED_TYPE(bool) | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [36/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/Chunks.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/Chunks.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/Chunks.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.cpp FAILED: COFF/CMakeFiles/lldCOFF.dir/Chunks.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/Chunks.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/Chunks.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/Chunks.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.cpp:9: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:469:16: error: no member named 'getMachineArchType' in namespace 'llvm' 469 | return llvm::getMachineArchType(getMachine()); | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:479:29: error: no member named 'Amd64' in 'llvm::object::chpe_range_type' 479 | return chpe_range_type::Amd64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:12: error: no member named 'Arm64EC' in 'llvm::object::chpe_range_type'; did you mean 'ARM64EC'? 481 | return chpe_range_type::Arm64EC; | ^~~~~~~~~~~~~~~~~~~~~~~~ | ARM64EC /builddir/build/BUILD/lld-20.1.0.src/COFF/Config.h:41:19: note: 'ARM64EC' declared here 41 | static const auto ARM64EC = llvm::COFF::IMAGE_FILE_MACHINE_ARM64EC; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.cpp:9: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:29: error: no viable conversion from returned value of type 'const llvm::COFF::MachineTypes' to function return type 'std::optional' 481 | return chpe_range_type::Arm64EC; | ^~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'const optional &' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'optional &&' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:737:17: note: candidate constructor not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'nullopt_t' for 1st argument 737 | constexpr optional(nullopt_t) noexcept { } | ^ ~~~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:745:2: note: candidate template ignored: requirement '__and_v, llvm::COFF::MachineTypes>>, std::__not_>, std::is_constructible, std::is_convertible>' was not satisfied [with _Up = const llvm::COFF::MachineTypes &] 745 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:764:2: note: candidate template ignored: could not match 'const optional<_Up>' against 'const llvm::COFF::MachineTypes' 764 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:790:2: note: candidate template ignored: could not match 'optional<_Up>' against 'const llvm::COFF::MachineTypes' 790 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:754:2: note: explicit constructor is not a candidate 754 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:777:2: note: explicit constructor is not a candidate 777 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:803:2: note: explicit constructor is not a candidate 803 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:813:2: note: explicit constructor is not a candidate 813 | optional(in_place_t, _Args&&... __args) | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.cpp:9: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:483:29: error: no member named 'Arm64' in 'llvm::object::chpe_range_type' 483 | return chpe_range_type::Arm64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:856:39: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 856 | Arm64XDynamicRelocEntry(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:867:15: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 867 | llvm::COFF::Arm64XFixupType type; | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:879:24: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 879 | void add(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: error: expected '= constant-expression' or end of enumerator definition 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: expected '= constant-expression' or end of enumerator definition 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: expected '= constant-expression' or end of enumerator definition 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: expected '= constant-expression' or end of enumerator definition 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: expected '= constant-expression' or end of enumerator definition 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: expected '= constant-expression' or end of enumerator definition 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [37/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/LoongArch.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/LoongArch.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/LoongArch.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/LoongArch.cpp FAILED: ELF/CMakeFiles/lldELF.dir/Arch/LoongArch.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/LoongArch.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/LoongArch.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/LoongArch.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/LoongArch.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/LoongArch.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:12: /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:403:9: error: no type named 'CodeGenOptLevel' in namespace 'llvm' 403 | llvm::CodeGenOptLevel ltoCgo; | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:424:3: error: no type named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 424 | llvm::endianness endianness; | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/LoongArch.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:3: error: a type specifier is required for all declarations 111 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:28: error: expected ';' at end of declaration list 111 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:3: error: a type specifier is required for all declarations 118 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:28: error: expected ';' at end of declaration list 118 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:3: error: a type specifier is required for all declarations 125 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:28: error: expected ';' at end of declaration list 125 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:3: error: a type specifier is required for all declarations 137 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:28: error: expected ';' at end of declaration list 137 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:3: error: a type specifier is required for all declarations 140 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:28: error: expected ';' at end of declaration list 140 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:3: error: a type specifier is required for all declarations 144 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:28: error: expected ';' at end of declaration list 144 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:3: error: a type specifier is required for all declarations 148 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:28: error: expected ';' at end of declaration list 148 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:3: error: a type specifier is required for all declarations 261 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:28: error: expected ';' at end of declaration list 261 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:266:3: error: a type specifier is required for all declarations 266 | LLVM_PREFERRED_TYPE(bool) | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [38/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/PPC64.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/PPC64.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/PPC64.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC64.cpp FAILED: ELF/CMakeFiles/lldELF.dir/Arch/PPC64.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/PPC64.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/PPC64.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/PPC64.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC64.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC64.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:12: /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:403:9: error: no type named 'CodeGenOptLevel' in namespace 'llvm' 403 | llvm::CodeGenOptLevel ltoCgo; | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:424:3: error: no type named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 424 | llvm::endianness endianness; | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC64.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:3: error: a type specifier is required for all declarations 111 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:28: error: expected ';' at end of declaration list 111 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:3: error: a type specifier is required for all declarations 118 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:28: error: expected ';' at end of declaration list 118 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:3: error: a type specifier is required for all declarations 125 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:28: error: expected ';' at end of declaration list 125 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:3: error: a type specifier is required for all declarations 137 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:28: error: expected ';' at end of declaration list 137 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:3: error: a type specifier is required for all declarations 140 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:28: error: expected ';' at end of declaration list 140 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:3: error: a type specifier is required for all declarations 144 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:28: error: expected ';' at end of declaration list 144 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:3: error: a type specifier is required for all declarations 148 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:28: error: expected ';' at end of declaration list 148 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:3: error: a type specifier is required for all declarations 261 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:28: error: expected ';' at end of declaration list 261 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:266:3: error: a type specifier is required for all declarations 266 | LLVM_PREFERRED_TYPE(bool) | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [39/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/DebugTypes.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/DebugTypes.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/DebugTypes.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/DebugTypes.cpp FAILED: COFF/CMakeFiles/lldCOFF.dir/DebugTypes.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/DebugTypes.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/DebugTypes.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/DebugTypes.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/DebugTypes.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DebugTypes.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:469:16: error: no member named 'getMachineArchType' in namespace 'llvm' 469 | return llvm::getMachineArchType(getMachine()); | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:479:29: error: no member named 'Amd64' in 'llvm::object::chpe_range_type' 479 | return chpe_range_type::Amd64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:12: error: no member named 'Arm64EC' in 'llvm::object::chpe_range_type'; did you mean 'ARM64EC'? 481 | return chpe_range_type::Arm64EC; | ^~~~~~~~~~~~~~~~~~~~~~~~ | ARM64EC /builddir/build/BUILD/lld-20.1.0.src/COFF/Config.h:41:19: note: 'ARM64EC' declared here 41 | static const auto ARM64EC = llvm::COFF::IMAGE_FILE_MACHINE_ARM64EC; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DebugTypes.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:29: error: no viable conversion from returned value of type 'const llvm::COFF::MachineTypes' to function return type 'std::optional' 481 | return chpe_range_type::Arm64EC; | ^~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'const optional &' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'optional &&' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:737:17: note: candidate constructor not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'nullopt_t' for 1st argument 737 | constexpr optional(nullopt_t) noexcept { } | ^ ~~~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:745:2: note: candidate template ignored: requirement '__and_v, llvm::COFF::MachineTypes>>, std::__not_>, std::is_constructible, std::is_convertible>' was not satisfied [with _Up = const llvm::COFF::MachineTypes &] 745 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:764:2: note: candidate template ignored: could not match 'const optional<_Up>' against 'const llvm::COFF::MachineTypes' 764 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:790:2: note: candidate template ignored: could not match 'optional<_Up>' against 'const llvm::COFF::MachineTypes' 790 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:754:2: note: explicit constructor is not a candidate 754 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:777:2: note: explicit constructor is not a candidate 777 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:803:2: note: explicit constructor is not a candidate 803 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:813:2: note: explicit constructor is not a candidate 813 | optional(in_place_t, _Args&&... __args) | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DebugTypes.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:483:29: error: no member named 'Arm64' in 'llvm::object::chpe_range_type' 483 | return chpe_range_type::Arm64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:856:39: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 856 | Arm64XDynamicRelocEntry(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:867:15: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 867 | llvm::COFF::Arm64XFixupType type; | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:879:24: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 879 | void add(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DebugTypes.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: error: expected '= constant-expression' or end of enumerator definition 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DebugTypes.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DebugTypes.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: expected '= constant-expression' or end of enumerator definition 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DebugTypes.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DebugTypes.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: expected '= constant-expression' or end of enumerator definition 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DebugTypes.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DebugTypes.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: expected '= constant-expression' or end of enumerator definition 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DebugTypes.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DebugTypes.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: expected '= constant-expression' or end of enumerator definition 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DebugTypes.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DebugTypes.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: expected '= constant-expression' or end of enumerator definition 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [40/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/RISCV.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/RISCV.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/RISCV.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/RISCV.cpp FAILED: ELF/CMakeFiles/lldELF.dir/Arch/RISCV.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/RISCV.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/RISCV.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/RISCV.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/RISCV.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/RISCV.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:12: /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:403:9: error: no type named 'CodeGenOptLevel' in namespace 'llvm' 403 | llvm::CodeGenOptLevel ltoCgo; | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:424:3: error: no type named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 424 | llvm::endianness endianness; | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/RISCV.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:3: error: a type specifier is required for all declarations 111 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:28: error: expected ';' at end of declaration list 111 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:3: error: a type specifier is required for all declarations 118 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:28: error: expected ';' at end of declaration list 118 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:3: error: a type specifier is required for all declarations 125 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:28: error: expected ';' at end of declaration list 125 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:3: error: a type specifier is required for all declarations 137 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:28: error: expected ';' at end of declaration list 137 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:3: error: a type specifier is required for all declarations 140 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:28: error: expected ';' at end of declaration list 140 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:3: error: a type specifier is required for all declarations 144 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:28: error: expected ';' at end of declaration list 144 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:3: error: a type specifier is required for all declarations 148 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:28: error: expected ';' at end of declaration list 148 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:3: error: a type specifier is required for all declarations 261 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:28: error: expected ';' at end of declaration list 261 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:266:3: error: a type specifier is required for all declarations 266 | LLVM_PREFERRED_TYPE(bool) | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [41/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/PPC.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/PPC.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/PPC.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC.cpp FAILED: ELF/CMakeFiles/lldELF.dir/Arch/PPC.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/PPC.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/PPC.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/PPC.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:12: /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:403:9: error: no type named 'CodeGenOptLevel' in namespace 'llvm' 403 | llvm::CodeGenOptLevel ltoCgo; | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:424:3: error: no type named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 424 | llvm::endianness endianness; | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:263:38: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 263 | using value_type = llvm::object::Elf_Crel_Impl; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:263:52: error: template argument for template type parameter must be a type 263 | using value_type = llvm::object::Elf_Crel_Impl; | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:265:21: error: unknown type name 'value_type'; did you mean 'std::_Bit_const_iterator::value_type'? 265 | using pointer = value_type *; | ^~~~~~~~~~ | std::_Bit_const_iterator::value_type /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/bits/stl_iterator_base_types.h:132:26: note: 'std::_Bit_const_iterator::value_type' declared here 132 | typedef _Tp value_type; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:266:29: error: unknown type name 'value_type'; did you mean 'std::_Bit_const_iterator::value_type'? 266 | using reference = const value_type &; | ^~~~~~~~~~ | std::_Bit_const_iterator::value_type /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/bits/stl_iterator_base_types.h:132:26: note: 'std::_Bit_const_iterator::value_type' declared here 132 | typedef _Tp value_type; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:270:19: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 270 | llvm::object::Elf_Crel_Impl crel{}; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:270:33: error: template argument for template type parameter must be a type 270 | llvm::object::Elf_Crel_Impl crel{}; | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:290:19: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 290 | llvm::object::Elf_Crel_Impl operator*() const { return crel; }; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:290:33: error: template argument for template type parameter must be a type 290 | llvm::object::Elf_Crel_Impl operator*() const { return crel; }; | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:291:25: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 291 | const llvm::object::Elf_Crel_Impl *operator->() const { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:291:39: error: template argument for template type parameter must be a type 291 | const llvm::object::Elf_Crel_Impl *operator->() const { | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:325:29: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 325 | struct Relocs> : RelocsCrel { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:325:43: error: template argument for template type parameter must be a type 325 | struct Relocs> : RelocsCrel { | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:359:29: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 359 | inline Relocs> | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:359:43: error: template argument for template type parameter must be a type 359 | inline Relocs> | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:360:31: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 360 | sortRels(Relocs> rels, | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:360:45: error: template argument for template type parameter must be a type 360 | sortRels(Relocs> rels, | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/PPC.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:361:36: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 361 | SmallVector, 0> &storage) { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [42/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/DriverUtils.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/DriverUtils.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/DriverUtils.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/DriverUtils.cpp FAILED: COFF/CMakeFiles/lldCOFF.dir/DriverUtils.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/DriverUtils.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/DriverUtils.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/DriverUtils.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/DriverUtils.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DriverUtils.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:469:16: error: no member named 'getMachineArchType' in namespace 'llvm' 469 | return llvm::getMachineArchType(getMachine()); | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:479:29: error: no member named 'Amd64' in 'llvm::object::chpe_range_type' 479 | return chpe_range_type::Amd64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:12: error: no member named 'Arm64EC' in 'llvm::object::chpe_range_type'; did you mean 'ARM64EC'? 481 | return chpe_range_type::Arm64EC; | ^~~~~~~~~~~~~~~~~~~~~~~~ | ARM64EC /builddir/build/BUILD/lld-20.1.0.src/COFF/Config.h:41:19: note: 'ARM64EC' declared here 41 | static const auto ARM64EC = llvm::COFF::IMAGE_FILE_MACHINE_ARM64EC; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DriverUtils.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:29: error: no viable conversion from returned value of type 'const llvm::COFF::MachineTypes' to function return type 'std::optional' 481 | return chpe_range_type::Arm64EC; | ^~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'const optional &' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'optional &&' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:737:17: note: candidate constructor not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'nullopt_t' for 1st argument 737 | constexpr optional(nullopt_t) noexcept { } | ^ ~~~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:745:2: note: candidate template ignored: requirement '__and_v, llvm::COFF::MachineTypes>>, std::__not_>, std::is_constructible, std::is_convertible>' was not satisfied [with _Up = const llvm::COFF::MachineTypes &] 745 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:764:2: note: candidate template ignored: could not match 'const optional<_Up>' against 'const llvm::COFF::MachineTypes' 764 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:790:2: note: candidate template ignored: could not match 'optional<_Up>' against 'const llvm::COFF::MachineTypes' 790 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:754:2: note: explicit constructor is not a candidate 754 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:777:2: note: explicit constructor is not a candidate 777 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:803:2: note: explicit constructor is not a candidate 803 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:813:2: note: explicit constructor is not a candidate 813 | optional(in_place_t, _Args&&... __args) | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DriverUtils.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:483:29: error: no member named 'Arm64' in 'llvm::object::chpe_range_type' 483 | return chpe_range_type::Arm64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:856:39: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 856 | Arm64XDynamicRelocEntry(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:867:15: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 867 | llvm::COFF::Arm64XFixupType type; | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:879:24: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 879 | void add(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DriverUtils.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: error: expected '= constant-expression' or end of enumerator definition 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DriverUtils.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DriverUtils.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: expected '= constant-expression' or end of enumerator definition 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DriverUtils.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DriverUtils.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: expected '= constant-expression' or end of enumerator definition 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DriverUtils.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DriverUtils.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: expected '= constant-expression' or end of enumerator definition 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DriverUtils.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DriverUtils.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: expected '= constant-expression' or end of enumerator definition 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DriverUtils.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/DriverUtils.cpp:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: expected '= constant-expression' or end of enumerator definition 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [43/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/ARM.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/ARM.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/ARM.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/ARM.cpp FAILED: ELF/CMakeFiles/lldELF.dir/Arch/ARM.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/ARM.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/ARM.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/ARM.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/ARM.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/ARM.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:12: /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:403:9: error: no type named 'CodeGenOptLevel' in namespace 'llvm' 403 | llvm::CodeGenOptLevel ltoCgo; | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:424:3: error: no type named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 424 | llvm::endianness endianness; | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/ARM.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:3: error: a type specifier is required for all declarations 111 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:28: error: expected ';' at end of declaration list 111 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:3: error: a type specifier is required for all declarations 118 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:28: error: expected ';' at end of declaration list 118 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:3: error: a type specifier is required for all declarations 125 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:28: error: expected ';' at end of declaration list 125 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:3: error: a type specifier is required for all declarations 137 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:28: error: expected ';' at end of declaration list 137 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:3: error: a type specifier is required for all declarations 140 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:28: error: expected ';' at end of declaration list 140 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:3: error: a type specifier is required for all declarations 144 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:28: error: expected ';' at end of declaration list 144 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:3: error: a type specifier is required for all declarations 148 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:28: error: expected ';' at end of declaration list 148 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:3: error: a type specifier is required for all declarations 261 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:28: error: expected ';' at end of declaration list 261 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:266:3: error: a type specifier is required for all declarations 266 | LLVM_PREFERRED_TYPE(bool) | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [44/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/ICF.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/ICF.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/ICF.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/ICF.cpp FAILED: COFF/CMakeFiles/lldCOFF.dir/ICF.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/ICF.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/ICF.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/ICF.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/ICF.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/ICF.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:469:16: error: no member named 'getMachineArchType' in namespace 'llvm' 469 | return llvm::getMachineArchType(getMachine()); | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:479:29: error: no member named 'Amd64' in 'llvm::object::chpe_range_type' 479 | return chpe_range_type::Amd64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:12: error: no member named 'Arm64EC' in 'llvm::object::chpe_range_type'; did you mean 'ARM64EC'? 481 | return chpe_range_type::Arm64EC; | ^~~~~~~~~~~~~~~~~~~~~~~~ | ARM64EC /builddir/build/BUILD/lld-20.1.0.src/COFF/Config.h:41:19: note: 'ARM64EC' declared here 41 | static const auto ARM64EC = llvm::COFF::IMAGE_FILE_MACHINE_ARM64EC; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/ICF.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:29: error: no viable conversion from returned value of type 'const llvm::COFF::MachineTypes' to function return type 'std::optional' 481 | return chpe_range_type::Arm64EC; | ^~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'const optional &' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'optional &&' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:737:17: note: candidate constructor not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'nullopt_t' for 1st argument 737 | constexpr optional(nullopt_t) noexcept { } | ^ ~~~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:745:2: note: candidate template ignored: requirement '__and_v, llvm::COFF::MachineTypes>>, std::__not_>, std::is_constructible, std::is_convertible>' was not satisfied [with _Up = const llvm::COFF::MachineTypes &] 745 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:764:2: note: candidate template ignored: could not match 'const optional<_Up>' against 'const llvm::COFF::MachineTypes' 764 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:790:2: note: candidate template ignored: could not match 'optional<_Up>' against 'const llvm::COFF::MachineTypes' 790 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:754:2: note: explicit constructor is not a candidate 754 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:777:2: note: explicit constructor is not a candidate 777 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:803:2: note: explicit constructor is not a candidate 803 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:813:2: note: explicit constructor is not a candidate 813 | optional(in_place_t, _Args&&... __args) | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/ICF.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:483:29: error: no member named 'Arm64' in 'llvm::object::chpe_range_type' 483 | return chpe_range_type::Arm64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:856:39: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 856 | Arm64XDynamicRelocEntry(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:867:15: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 867 | llvm::COFF::Arm64XFixupType type; | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:879:24: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 879 | void add(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/ICF.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: error: expected '= constant-expression' or end of enumerator definition 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/ICF.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/ICF.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: expected '= constant-expression' or end of enumerator definition 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/ICF.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/ICF.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: expected '= constant-expression' or end of enumerator definition 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/ICF.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/ICF.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: expected '= constant-expression' or end of enumerator definition 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/ICF.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/ICF.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: expected '= constant-expression' or end of enumerator definition 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/ICF.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/ICF.cpp:21: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: expected '= constant-expression' or end of enumerator definition 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [45/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/Mips.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/Mips.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/Mips.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/Mips.cpp FAILED: ELF/CMakeFiles/lldELF.dir/Arch/Mips.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/Mips.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/Mips.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/Mips.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/Mips.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/Mips.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:12: /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:403:9: error: no type named 'CodeGenOptLevel' in namespace 'llvm' 403 | llvm::CodeGenOptLevel ltoCgo; | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:424:3: error: no type named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 424 | llvm::endianness endianness; | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/Mips.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:3: error: a type specifier is required for all declarations 111 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:28: error: expected ';' at end of declaration list 111 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:3: error: a type specifier is required for all declarations 118 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:28: error: expected ';' at end of declaration list 118 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:3: error: a type specifier is required for all declarations 125 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:28: error: expected ';' at end of declaration list 125 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:3: error: a type specifier is required for all declarations 137 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:28: error: expected ';' at end of declaration list 137 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:3: error: a type specifier is required for all declarations 140 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:28: error: expected ';' at end of declaration list 140 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:3: error: a type specifier is required for all declarations 144 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:28: error: expected ';' at end of declaration list 144 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:3: error: a type specifier is required for all declarations 148 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:28: error: expected ';' at end of declaration list 148 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:3: error: a type specifier is required for all declarations 261 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:28: error: expected ';' at end of declaration list 261 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:266:3: error: a type specifier is required for all declarations 266 | LLVM_PREFERRED_TYPE(bool) | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [46/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/SystemZ.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/SystemZ.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/SystemZ.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SystemZ.cpp FAILED: ELF/CMakeFiles/lldELF.dir/Arch/SystemZ.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/SystemZ.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/SystemZ.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/SystemZ.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SystemZ.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SystemZ.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:12: /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:403:9: error: no type named 'CodeGenOptLevel' in namespace 'llvm' 403 | llvm::CodeGenOptLevel ltoCgo; | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:424:3: error: no type named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 424 | llvm::endianness endianness; | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SystemZ.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:263:38: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 263 | using value_type = llvm::object::Elf_Crel_Impl; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SystemZ.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:263:52: error: template argument for template type parameter must be a type 263 | using value_type = llvm::object::Elf_Crel_Impl; | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SystemZ.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:265:21: error: unknown type name 'value_type'; did you mean 'std::_Bit_const_iterator::value_type'? 265 | using pointer = value_type *; | ^~~~~~~~~~ | std::_Bit_const_iterator::value_type /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/bits/stl_iterator_base_types.h:132:26: note: 'std::_Bit_const_iterator::value_type' declared here 132 | typedef _Tp value_type; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SystemZ.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:266:29: error: unknown type name 'value_type'; did you mean 'std::_Bit_const_iterator::value_type'? 266 | using reference = const value_type &; | ^~~~~~~~~~ | std::_Bit_const_iterator::value_type /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/bits/stl_iterator_base_types.h:132:26: note: 'std::_Bit_const_iterator::value_type' declared here 132 | typedef _Tp value_type; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SystemZ.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:270:19: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 270 | llvm::object::Elf_Crel_Impl crel{}; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SystemZ.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:270:33: error: template argument for template type parameter must be a type 270 | llvm::object::Elf_Crel_Impl crel{}; | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SystemZ.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:290:19: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 290 | llvm::object::Elf_Crel_Impl operator*() const { return crel; }; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SystemZ.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:290:33: error: template argument for template type parameter must be a type 290 | llvm::object::Elf_Crel_Impl operator*() const { return crel; }; | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SystemZ.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:291:25: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 291 | const llvm::object::Elf_Crel_Impl *operator->() const { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SystemZ.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:291:39: error: template argument for template type parameter must be a type 291 | const llvm::object::Elf_Crel_Impl *operator->() const { | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SystemZ.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:325:29: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 325 | struct Relocs> : RelocsCrel { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SystemZ.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:325:43: error: template argument for template type parameter must be a type 325 | struct Relocs> : RelocsCrel { | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SystemZ.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:359:29: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 359 | inline Relocs> | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SystemZ.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:359:43: error: template argument for template type parameter must be a type 359 | inline Relocs> | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SystemZ.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:360:31: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 360 | sortRels(Relocs> rels, | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SystemZ.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:360:45: error: template argument for template type parameter must be a type 360 | sortRels(Relocs> rels, | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/SystemZ.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:361:36: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 361 | SmallVector, 0> &storage) { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [47/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/AArch64.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/AArch64.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/AArch64.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/AArch64.cpp FAILED: ELF/CMakeFiles/lldELF.dir/Arch/AArch64.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/AArch64.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/AArch64.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/AArch64.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/AArch64.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/AArch64.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:12: /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:403:9: error: no type named 'CodeGenOptLevel' in namespace 'llvm' 403 | llvm::CodeGenOptLevel ltoCgo; | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:424:3: error: no type named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 424 | llvm::endianness endianness; | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/AArch64.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:3: error: a type specifier is required for all declarations 111 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:28: error: expected ';' at end of declaration list 111 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:3: error: a type specifier is required for all declarations 118 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:28: error: expected ';' at end of declaration list 118 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:3: error: a type specifier is required for all declarations 125 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:28: error: expected ';' at end of declaration list 125 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:3: error: a type specifier is required for all declarations 137 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:28: error: expected ';' at end of declaration list 137 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:3: error: a type specifier is required for all declarations 140 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:28: error: expected ';' at end of declaration list 140 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:3: error: a type specifier is required for all declarations 144 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:28: error: expected ';' at end of declaration list 144 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:3: error: a type specifier is required for all declarations 148 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:28: error: expected ';' at end of declaration list 148 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:3: error: a type specifier is required for all declarations 261 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:28: error: expected ';' at end of declaration list 261 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:266:3: error: a type specifier is required for all declarations 266 | LLVM_PREFERRED_TYPE(bool) | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [48/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/ARMErrataFix.cpp.o -MF ELF/CMakeFiles/lldELF.dir/ARMErrataFix.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/ARMErrataFix.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/ARMErrataFix.cpp FAILED: ELF/CMakeFiles/lldELF.dir/ARMErrataFix.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/ARMErrataFix.cpp.o -MF ELF/CMakeFiles/lldELF.dir/ARMErrataFix.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/ARMErrataFix.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/ARMErrataFix.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/ARMErrataFix.cpp:17: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:12: /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:403:9: error: no type named 'CodeGenOptLevel' in namespace 'llvm' 403 | llvm::CodeGenOptLevel ltoCgo; | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:424:3: error: no type named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 424 | llvm::endianness endianness; | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/ARMErrataFix.cpp:17: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:3: error: a type specifier is required for all declarations 111 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:28: error: expected ';' at end of declaration list 111 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:3: error: a type specifier is required for all declarations 118 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:28: error: expected ';' at end of declaration list 118 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:3: error: a type specifier is required for all declarations 125 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:28: error: expected ';' at end of declaration list 125 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:3: error: a type specifier is required for all declarations 137 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:28: error: expected ';' at end of declaration list 137 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:3: error: a type specifier is required for all declarations 140 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:28: error: expected ';' at end of declaration list 140 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:3: error: a type specifier is required for all declarations 144 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:28: error: expected ';' at end of declaration list 144 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:3: error: a type specifier is required for all declarations 148 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:28: error: expected ';' at end of declaration list 148 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:3: error: a type specifier is required for all declarations 261 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:28: error: expected ';' at end of declaration list 261 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:266:3: error: a type specifier is required for all declarations 266 | LLVM_PREFERRED_TYPE(bool) | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [49/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/X86_64.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/X86_64.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/X86_64.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86_64.cpp FAILED: ELF/CMakeFiles/lldELF.dir/Arch/X86_64.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Arch/X86_64.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Arch/X86_64.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Arch/X86_64.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86_64.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86_64.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:12: /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:403:9: error: no type named 'CodeGenOptLevel' in namespace 'llvm' 403 | llvm::CodeGenOptLevel ltoCgo; | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:424:3: error: no type named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 424 | llvm::endianness endianness; | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86_64.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:263:38: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 263 | using value_type = llvm::object::Elf_Crel_Impl; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86_64.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:263:52: error: template argument for template type parameter must be a type 263 | using value_type = llvm::object::Elf_Crel_Impl; | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86_64.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:265:21: error: unknown type name 'value_type'; did you mean 'std::_Bit_const_iterator::value_type'? 265 | using pointer = value_type *; | ^~~~~~~~~~ | std::_Bit_const_iterator::value_type /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/bits/stl_iterator_base_types.h:132:26: note: 'std::_Bit_const_iterator::value_type' declared here 132 | typedef _Tp value_type; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86_64.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:266:29: error: unknown type name 'value_type'; did you mean 'std::_Bit_const_iterator::value_type'? 266 | using reference = const value_type &; | ^~~~~~~~~~ | std::_Bit_const_iterator::value_type /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/bits/stl_iterator_base_types.h:132:26: note: 'std::_Bit_const_iterator::value_type' declared here 132 | typedef _Tp value_type; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86_64.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:270:19: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 270 | llvm::object::Elf_Crel_Impl crel{}; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86_64.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:270:33: error: template argument for template type parameter must be a type 270 | llvm::object::Elf_Crel_Impl crel{}; | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86_64.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:290:19: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 290 | llvm::object::Elf_Crel_Impl operator*() const { return crel; }; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86_64.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:290:33: error: template argument for template type parameter must be a type 290 | llvm::object::Elf_Crel_Impl operator*() const { return crel; }; | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86_64.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:291:25: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 291 | const llvm::object::Elf_Crel_Impl *operator->() const { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86_64.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:291:39: error: template argument for template type parameter must be a type 291 | const llvm::object::Elf_Crel_Impl *operator->() const { | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86_64.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:325:29: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 325 | struct Relocs> : RelocsCrel { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86_64.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:325:43: error: template argument for template type parameter must be a type 325 | struct Relocs> : RelocsCrel { | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86_64.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:359:29: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 359 | inline Relocs> | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86_64.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:359:43: error: template argument for template type parameter must be a type 359 | inline Relocs> | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86_64.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:360:31: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 360 | sortRels(Relocs> rels, | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86_64.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:360:45: error: template argument for template type parameter must be a type 360 | sortRels(Relocs> rels, | ^~~~ /usr/include/llvm/Object/ELFTypes.h:34:17: note: template parameter is declared here 34 | template struct Elf_Rel_Impl; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Arch/X86_64.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/OutputSections.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputSection.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Relocations.h:361:36: error: no template named 'Elf_Crel_Impl' in namespace 'llvm::object'; did you mean 'Elf_Rel_Impl'? 361 | SmallVector, 0> &storage) { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ | Elf_Rel_Impl /usr/include/llvm/Object/ELFTypes.h:34:43: note: 'Elf_Rel_Impl' declared here 34 | template struct Elf_Rel_Impl; | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [50/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/MinGW.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/MinGW.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/MinGW.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/MinGW.cpp FAILED: COFF/CMakeFiles/lldCOFF.dir/MinGW.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/MinGW.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/MinGW.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/MinGW.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/MinGW.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MinGW.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MinGW.h:13: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Symbols.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:469:16: error: no member named 'getMachineArchType' in namespace 'llvm' 469 | return llvm::getMachineArchType(getMachine()); | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:479:29: error: no member named 'Amd64' in 'llvm::object::chpe_range_type' 479 | return chpe_range_type::Amd64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:12: error: no member named 'Arm64EC' in 'llvm::object::chpe_range_type'; did you mean 'ARM64EC'? 481 | return chpe_range_type::Arm64EC; | ^~~~~~~~~~~~~~~~~~~~~~~~ | ARM64EC /builddir/build/BUILD/lld-20.1.0.src/COFF/Config.h:41:19: note: 'ARM64EC' declared here 41 | static const auto ARM64EC = llvm::COFF::IMAGE_FILE_MACHINE_ARM64EC; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MinGW.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MinGW.h:13: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Symbols.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:29: error: no viable conversion from returned value of type 'const llvm::COFF::MachineTypes' to function return type 'std::optional' 481 | return chpe_range_type::Arm64EC; | ^~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'const optional &' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'optional &&' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:737:17: note: candidate constructor not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'nullopt_t' for 1st argument 737 | constexpr optional(nullopt_t) noexcept { } | ^ ~~~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:745:2: note: candidate template ignored: requirement '__and_v, llvm::COFF::MachineTypes>>, std::__not_>, std::is_constructible, std::is_convertible>' was not satisfied [with _Up = const llvm::COFF::MachineTypes &] 745 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:764:2: note: candidate template ignored: could not match 'const optional<_Up>' against 'const llvm::COFF::MachineTypes' 764 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:790:2: note: candidate template ignored: could not match 'optional<_Up>' against 'const llvm::COFF::MachineTypes' 790 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:754:2: note: explicit constructor is not a candidate 754 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:777:2: note: explicit constructor is not a candidate 777 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:803:2: note: explicit constructor is not a candidate 803 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:813:2: note: explicit constructor is not a candidate 813 | optional(in_place_t, _Args&&... __args) | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MinGW.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MinGW.h:13: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Symbols.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:483:29: error: no member named 'Arm64' in 'llvm::object::chpe_range_type' 483 | return chpe_range_type::Arm64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:856:39: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 856 | Arm64XDynamicRelocEntry(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:867:15: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 867 | llvm::COFF::Arm64XFixupType type; | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:879:24: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 879 | void add(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MinGW.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: error: expected '= constant-expression' or end of enumerator definition 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MinGW.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MinGW.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: expected '= constant-expression' or end of enumerator definition 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MinGW.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MinGW.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: expected '= constant-expression' or end of enumerator definition 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MinGW.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MinGW.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: expected '= constant-expression' or end of enumerator definition 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MinGW.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MinGW.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: expected '= constant-expression' or end of enumerator definition 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MinGW.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/MinGW.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: expected '= constant-expression' or end of enumerator definition 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [51/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/Writer.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/Writer.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/Writer.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/Writer.cpp FAILED: COFF/CMakeFiles/lldCOFF.dir/Writer.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/Writer.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/Writer.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/Writer.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/Writer.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Writer.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Writer.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:469:16: error: no member named 'getMachineArchType' in namespace 'llvm' 469 | return llvm::getMachineArchType(getMachine()); | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:479:29: error: no member named 'Amd64' in 'llvm::object::chpe_range_type' 479 | return chpe_range_type::Amd64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:12: error: no member named 'Arm64EC' in 'llvm::object::chpe_range_type'; did you mean 'ARM64EC'? 481 | return chpe_range_type::Arm64EC; | ^~~~~~~~~~~~~~~~~~~~~~~~ | ARM64EC /builddir/build/BUILD/lld-20.1.0.src/COFF/Config.h:41:19: note: 'ARM64EC' declared here 41 | static const auto ARM64EC = llvm::COFF::IMAGE_FILE_MACHINE_ARM64EC; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Writer.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Writer.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:29: error: no viable conversion from returned value of type 'const llvm::COFF::MachineTypes' to function return type 'std::optional' 481 | return chpe_range_type::Arm64EC; | ^~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'const optional &' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'optional &&' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:737:17: note: candidate constructor not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'nullopt_t' for 1st argument 737 | constexpr optional(nullopt_t) noexcept { } | ^ ~~~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:745:2: note: candidate template ignored: requirement '__and_v, llvm::COFF::MachineTypes>>, std::__not_>, std::is_constructible, std::is_convertible>' was not satisfied [with _Up = const llvm::COFF::MachineTypes &] 745 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:764:2: note: candidate template ignored: could not match 'const optional<_Up>' against 'const llvm::COFF::MachineTypes' 764 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:790:2: note: candidate template ignored: could not match 'optional<_Up>' against 'const llvm::COFF::MachineTypes' 790 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:754:2: note: explicit constructor is not a candidate 754 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:777:2: note: explicit constructor is not a candidate 777 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:803:2: note: explicit constructor is not a candidate 803 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:813:2: note: explicit constructor is not a candidate 813 | optional(in_place_t, _Args&&... __args) | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Writer.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Writer.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:483:29: error: no member named 'Arm64' in 'llvm::object::chpe_range_type' 483 | return chpe_range_type::Arm64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:856:39: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 856 | Arm64XDynamicRelocEntry(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:867:15: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 867 | llvm::COFF::Arm64XFixupType type; | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:879:24: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 879 | void add(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Writer.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: error: expected '= constant-expression' or end of enumerator definition 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Writer.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Writer.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: expected '= constant-expression' or end of enumerator definition 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Writer.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Writer.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: expected '= constant-expression' or end of enumerator definition 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Writer.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Writer.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: expected '= constant-expression' or end of enumerator definition 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Writer.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Writer.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: expected '= constant-expression' or end of enumerator definition 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Writer.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Writer.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: expected '= constant-expression' or end of enumerator definition 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [52/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/PDB.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/PDB.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/PDB.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/PDB.cpp FAILED: COFF/CMakeFiles/lldCOFF.dir/PDB.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/PDB.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/PDB.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/PDB.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/PDB.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/PDB.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:469:16: error: no member named 'getMachineArchType' in namespace 'llvm' 469 | return llvm::getMachineArchType(getMachine()); | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:479:29: error: no member named 'Amd64' in 'llvm::object::chpe_range_type' 479 | return chpe_range_type::Amd64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:12: error: no member named 'Arm64EC' in 'llvm::object::chpe_range_type'; did you mean 'ARM64EC'? 481 | return chpe_range_type::Arm64EC; | ^~~~~~~~~~~~~~~~~~~~~~~~ | ARM64EC /builddir/build/BUILD/lld-20.1.0.src/COFF/Config.h:41:19: note: 'ARM64EC' declared here 41 | static const auto ARM64EC = llvm::COFF::IMAGE_FILE_MACHINE_ARM64EC; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/PDB.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:29: error: no viable conversion from returned value of type 'const llvm::COFF::MachineTypes' to function return type 'std::optional' 481 | return chpe_range_type::Arm64EC; | ^~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'const optional &' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'optional &&' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:737:17: note: candidate constructor not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'nullopt_t' for 1st argument 737 | constexpr optional(nullopt_t) noexcept { } | ^ ~~~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:745:2: note: candidate template ignored: requirement '__and_v, llvm::COFF::MachineTypes>>, std::__not_>, std::is_constructible, std::is_convertible>' was not satisfied [with _Up = const llvm::COFF::MachineTypes &] 745 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:764:2: note: candidate template ignored: could not match 'const optional<_Up>' against 'const llvm::COFF::MachineTypes' 764 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:790:2: note: candidate template ignored: could not match 'optional<_Up>' against 'const llvm::COFF::MachineTypes' 790 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:754:2: note: explicit constructor is not a candidate 754 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:777:2: note: explicit constructor is not a candidate 777 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:803:2: note: explicit constructor is not a candidate 803 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:813:2: note: explicit constructor is not a candidate 813 | optional(in_place_t, _Args&&... __args) | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/PDB.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:483:29: error: no member named 'Arm64' in 'llvm::object::chpe_range_type' 483 | return chpe_range_type::Arm64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:856:39: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 856 | Arm64XDynamicRelocEntry(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:867:15: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 867 | llvm::COFF::Arm64XFixupType type; | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:879:24: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 879 | void add(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/PDB.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: error: expected '= constant-expression' or end of enumerator definition 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/PDB.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/PDB.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: expected '= constant-expression' or end of enumerator definition 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/PDB.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/PDB.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: expected '= constant-expression' or end of enumerator definition 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/PDB.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/PDB.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: expected '= constant-expression' or end of enumerator definition 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/PDB.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/PDB.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: expected '= constant-expression' or end of enumerator definition 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/PDB.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/PDB.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: expected '= constant-expression' or end of enumerator definition 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [53/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/DWARF.cpp.o -MF ELF/CMakeFiles/lldELF.dir/DWARF.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/DWARF.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/DWARF.cpp FAILED: ELF/CMakeFiles/lldELF.dir/DWARF.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/DWARF.cpp.o -MF ELF/CMakeFiles/lldELF.dir/DWARF.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/DWARF.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/DWARF.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/DWARF.cpp:16: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/DWARF.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:12: /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:403:9: error: no type named 'CodeGenOptLevel' in namespace 'llvm' 403 | llvm::CodeGenOptLevel ltoCgo; | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:424:3: error: no type named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 424 | llvm::endianness endianness; | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/DWARF.cpp:16: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/DWARF.h:12: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:3: error: a type specifier is required for all declarations 111 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:28: error: expected ';' at end of declaration list 111 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:3: error: a type specifier is required for all declarations 118 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:28: error: expected ';' at end of declaration list 118 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:3: error: a type specifier is required for all declarations 125 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:28: error: expected ';' at end of declaration list 125 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:3: error: a type specifier is required for all declarations 137 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:28: error: expected ';' at end of declaration list 137 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:3: error: a type specifier is required for all declarations 140 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:28: error: expected ';' at end of declaration list 140 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:3: error: a type specifier is required for all declarations 144 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:28: error: expected ';' at end of declaration list 144 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:3: error: a type specifier is required for all declarations 148 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:28: error: expected ';' at end of declaration list 148 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:3: error: a type specifier is required for all declarations 261 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:28: error: expected ';' at end of declaration list 261 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:266:3: error: a type specifier is required for all declarations 266 | LLVM_PREFERRED_TYPE(bool) | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [54/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/Driver.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/Driver.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/Driver.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.cpp FAILED: COFF/CMakeFiles/lldCOFF.dir/Driver.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/Driver.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/Driver.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/Driver.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: error: expected '= constant-expression' or end of enumerator definition 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: expected '= constant-expression' or end of enumerator definition 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: expected '= constant-expression' or end of enumerator definition 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: expected '= constant-expression' or end of enumerator definition 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: expected '= constant-expression' or end of enumerator definition 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: expected '= constant-expression' or end of enumerator definition 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:54:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 54 | OPTION(prefix_1, llvm::StringLiteral("allowisolation:no"), allowisolation_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:54:1: error: expected '= constant-expression' or end of enumerator definition 54 | OPTION(prefix_1, llvm::StringLiteral("allowisolation:no"), allowisolation_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:56:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 56 | OPTION(prefix_1, llvm::StringLiteral("allowisolation"), allowisolation, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:56:1: error: expected '= constant-expression' or end of enumerator definition 56 | OPTION(prefix_1, llvm::StringLiteral("allowisolation"), allowisolation, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:58:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 58 | OPTION(prefix_1, llvm::StringLiteral("alternatename:"), alternatename, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:58:1: error: expected '= constant-expression' or end of enumerator definition 58 | OPTION(prefix_1, llvm::StringLiteral("alternatename:"), alternatename, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:60:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 60 | OPTION(prefix_1, llvm::StringLiteral("appcontainer:no"), appcontainer_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:60:1: error: expected '= constant-expression' or end of enumerator definition 60 | OPTION(prefix_1, llvm::StringLiteral("appcontainer:no"), appcontainer_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [55/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/LTO.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/LTO.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/LTO.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/LTO.cpp FAILED: COFF/CMakeFiles/lldCOFF.dir/LTO.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/LTO.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/LTO.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/LTO.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/LTO.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LTO.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:469:16: error: no member named 'getMachineArchType' in namespace 'llvm' 469 | return llvm::getMachineArchType(getMachine()); | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:479:29: error: no member named 'Amd64' in 'llvm::object::chpe_range_type' 479 | return chpe_range_type::Amd64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:12: error: no member named 'Arm64EC' in 'llvm::object::chpe_range_type'; did you mean 'ARM64EC'? 481 | return chpe_range_type::Arm64EC; | ^~~~~~~~~~~~~~~~~~~~~~~~ | ARM64EC /builddir/build/BUILD/lld-20.1.0.src/COFF/Config.h:41:19: note: 'ARM64EC' declared here 41 | static const auto ARM64EC = llvm::COFF::IMAGE_FILE_MACHINE_ARM64EC; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LTO.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:29: error: no viable conversion from returned value of type 'const llvm::COFF::MachineTypes' to function return type 'std::optional' 481 | return chpe_range_type::Arm64EC; | ^~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'const optional &' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'optional &&' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:737:17: note: candidate constructor not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'nullopt_t' for 1st argument 737 | constexpr optional(nullopt_t) noexcept { } | ^ ~~~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:745:2: note: candidate template ignored: requirement '__and_v, llvm::COFF::MachineTypes>>, std::__not_>, std::is_constructible, std::is_convertible>' was not satisfied [with _Up = const llvm::COFF::MachineTypes &] 745 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:764:2: note: candidate template ignored: could not match 'const optional<_Up>' against 'const llvm::COFF::MachineTypes' 764 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:790:2: note: candidate template ignored: could not match 'optional<_Up>' against 'const llvm::COFF::MachineTypes' 790 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:754:2: note: explicit constructor is not a candidate 754 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:777:2: note: explicit constructor is not a candidate 777 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:803:2: note: explicit constructor is not a candidate 803 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:813:2: note: explicit constructor is not a candidate 813 | optional(in_place_t, _Args&&... __args) | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LTO.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:483:29: error: no member named 'Arm64' in 'llvm::object::chpe_range_type' 483 | return chpe_range_type::Arm64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:856:39: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 856 | Arm64XDynamicRelocEntry(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:867:15: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 867 | llvm::COFF::Arm64XFixupType type; | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:879:24: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 879 | void add(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LTO.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: error: expected '= constant-expression' or end of enumerator definition 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LTO.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LTO.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: expected '= constant-expression' or end of enumerator definition 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LTO.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LTO.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: expected '= constant-expression' or end of enumerator definition 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LTO.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LTO.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: expected '= constant-expression' or end of enumerator definition 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LTO.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LTO.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: expected '= constant-expression' or end of enumerator definition 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LTO.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/LTO.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: expected '= constant-expression' or end of enumerator definition 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [56/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/InputFiles.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/InputFiles.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/InputFiles.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/InputFiles.cpp FAILED: COFF/CMakeFiles/lldCOFF.dir/InputFiles.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/InputFiles.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/InputFiles.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/InputFiles.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/InputFiles.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/InputFiles.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:469:16: error: no member named 'getMachineArchType' in namespace 'llvm' 469 | return llvm::getMachineArchType(getMachine()); | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:479:29: error: no member named 'Amd64' in 'llvm::object::chpe_range_type' 479 | return chpe_range_type::Amd64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:12: error: no member named 'Arm64EC' in 'llvm::object::chpe_range_type'; did you mean 'ARM64EC'? 481 | return chpe_range_type::Arm64EC; | ^~~~~~~~~~~~~~~~~~~~~~~~ | ARM64EC /builddir/build/BUILD/lld-20.1.0.src/COFF/Config.h:41:19: note: 'ARM64EC' declared here 41 | static const auto ARM64EC = llvm::COFF::IMAGE_FILE_MACHINE_ARM64EC; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/InputFiles.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:29: error: no viable conversion from returned value of type 'const llvm::COFF::MachineTypes' to function return type 'std::optional' 481 | return chpe_range_type::Arm64EC; | ^~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'const optional &' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'optional &&' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:737:17: note: candidate constructor not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'nullopt_t' for 1st argument 737 | constexpr optional(nullopt_t) noexcept { } | ^ ~~~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:745:2: note: candidate template ignored: requirement '__and_v, llvm::COFF::MachineTypes>>, std::__not_>, std::is_constructible, std::is_convertible>' was not satisfied [with _Up = const llvm::COFF::MachineTypes &] 745 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:764:2: note: candidate template ignored: could not match 'const optional<_Up>' against 'const llvm::COFF::MachineTypes' 764 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:790:2: note: candidate template ignored: could not match 'optional<_Up>' against 'const llvm::COFF::MachineTypes' 790 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:754:2: note: explicit constructor is not a candidate 754 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:777:2: note: explicit constructor is not a candidate 777 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:803:2: note: explicit constructor is not a candidate 803 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:813:2: note: explicit constructor is not a candidate 813 | optional(in_place_t, _Args&&... __args) | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/InputFiles.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:483:29: error: no member named 'Arm64' in 'llvm::object::chpe_range_type' 483 | return chpe_range_type::Arm64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:856:39: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 856 | Arm64XDynamicRelocEntry(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:867:15: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 867 | llvm::COFF::Arm64XFixupType type; | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:879:24: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 879 | void add(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/InputFiles.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: error: expected '= constant-expression' or end of enumerator definition 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/InputFiles.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/InputFiles.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: expected '= constant-expression' or end of enumerator definition 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/InputFiles.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/InputFiles.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: expected '= constant-expression' or end of enumerator definition 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/InputFiles.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/InputFiles.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: expected '= constant-expression' or end of enumerator definition 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/InputFiles.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/InputFiles.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: expected '= constant-expression' or end of enumerator definition 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/InputFiles.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/InputFiles.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: expected '= constant-expression' or end of enumerator definition 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [57/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/DriverUtils.cpp.o -MF ELF/CMakeFiles/lldELF.dir/DriverUtils.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/DriverUtils.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/DriverUtils.cpp FAILED: ELF/CMakeFiles/lldELF.dir/DriverUtils.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/DriverUtils.cpp.o -MF ELF/CMakeFiles/lldELF.dir/DriverUtils.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/DriverUtils.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/DriverUtils.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/DriverUtils.cpp:15: /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:403:9: error: no type named 'CodeGenOptLevel' in namespace 'llvm' 403 | llvm::CodeGenOptLevel ltoCgo; | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:424:3: error: no type named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 424 | llvm::endianness endianness; | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/DriverUtils.cpp:16: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:45:1: error: expected '= constant-expression' or end of enumerator definition 45 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:37: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/DriverUtils.cpp:16: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:46:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 46 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:45:1: note: previous definition is here 45 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/DriverUtils.cpp:16: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:46:1: error: expected '= constant-expression' or end of enumerator definition 46 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:37: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/DriverUtils.cpp:16: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:47:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 47 | OPTION(prefix_1, llvm::StringLiteral("("), anonymous_36, Flag, INVALID, start_group, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:45:1: note: previous definition is here 45 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/DriverUtils.cpp:16: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:47:1: error: expected '= constant-expression' or end of enumerator definition 47 | OPTION(prefix_1, llvm::StringLiteral("("), anonymous_36, Flag, INVALID, start_group, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:37: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/DriverUtils.cpp:16: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:49:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 49 | OPTION(prefix_1, llvm::StringLiteral(")"), anonymous_16, Flag, INVALID, end_group, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:45:1: note: previous definition is here 45 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/DriverUtils.cpp:16: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:49:1: error: expected '= constant-expression' or end of enumerator definition 49 | OPTION(prefix_1, llvm::StringLiteral(")"), anonymous_16, Flag, INVALID, end_group, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:37: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/DriverUtils.cpp:16: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:51:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 51 | OPTION(prefix_2, llvm::StringLiteral("allow-multiple-definition"), allow_multiple_definition, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:45:1: note: previous definition is here 45 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/DriverUtils.cpp:16: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:51:1: error: expected '= constant-expression' or end of enumerator definition 51 | OPTION(prefix_2, llvm::StringLiteral("allow-multiple-definition"), allow_multiple_definition, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:37: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/DriverUtils.cpp:16: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:53:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 53 | OPTION(prefix_2, llvm::StringLiteral("allow-shlib-undefined"), allow_shlib_undefined, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:45:1: note: previous definition is here 45 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/DriverUtils.cpp:16: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:53:1: error: expected '= constant-expression' or end of enumerator definition 53 | OPTION(prefix_2, llvm::StringLiteral("allow-shlib-undefined"), allow_shlib_undefined, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:37: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/DriverUtils.cpp:16: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:55:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 55 | OPTION(prefix_3, llvm::StringLiteral("android-memtag-heap"), android_memtag_heap, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:45:1: note: previous definition is here 45 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/DriverUtils.cpp:16: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:55:1: error: expected '= constant-expression' or end of enumerator definition 55 | OPTION(prefix_3, llvm::StringLiteral("android-memtag-heap"), android_memtag_heap, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:37: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/DriverUtils.cpp:16: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:57:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 57 | OPTION(prefix_3, llvm::StringLiteral("android-memtag-mode="), android_memtag_mode_eq, Joined, INVALID, android_memtag_mode, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:45:1: note: previous definition is here 45 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/DriverUtils.cpp:16: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:57:1: error: expected '= constant-expression' or end of enumerator definition 57 | OPTION(prefix_3, llvm::StringLiteral("android-memtag-mode="), android_memtag_mode_eq, Joined, INVALID, android_memtag_mode, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:37: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/DriverUtils.cpp:16: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:59:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 59 | OPTION(prefix_3, llvm::StringLiteral("android-memtag-mode"), android_memtag_mode, Separate, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:45:1: note: previous definition is here 45 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/DriverUtils.cpp:16: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:59:1: error: expected '= constant-expression' or end of enumerator definition 59 | OPTION(prefix_3, llvm::StringLiteral("android-memtag-mode"), android_memtag_mode, Separate, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:37: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [58/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Driver.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Driver.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Driver.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.cpp FAILED: ELF/CMakeFiles/lldELF.dir/Driver.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/Driver.cpp.o -MF ELF/CMakeFiles/lldELF.dir/Driver.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/Driver.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.cpp:25: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:45:1: error: expected '= constant-expression' or end of enumerator definition 45 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:37: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.cpp:25: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:46:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 46 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:45:1: note: previous definition is here 45 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.cpp:25: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:46:1: error: expected '= constant-expression' or end of enumerator definition 46 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:37: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.cpp:25: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:47:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 47 | OPTION(prefix_1, llvm::StringLiteral("("), anonymous_36, Flag, INVALID, start_group, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:45:1: note: previous definition is here 45 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.cpp:25: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:47:1: error: expected '= constant-expression' or end of enumerator definition 47 | OPTION(prefix_1, llvm::StringLiteral("("), anonymous_36, Flag, INVALID, start_group, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:37: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.cpp:25: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:49:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 49 | OPTION(prefix_1, llvm::StringLiteral(")"), anonymous_16, Flag, INVALID, end_group, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:45:1: note: previous definition is here 45 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.cpp:25: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:49:1: error: expected '= constant-expression' or end of enumerator definition 49 | OPTION(prefix_1, llvm::StringLiteral(")"), anonymous_16, Flag, INVALID, end_group, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:37: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.cpp:25: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:51:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 51 | OPTION(prefix_2, llvm::StringLiteral("allow-multiple-definition"), allow_multiple_definition, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:45:1: note: previous definition is here 45 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.cpp:25: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:51:1: error: expected '= constant-expression' or end of enumerator definition 51 | OPTION(prefix_2, llvm::StringLiteral("allow-multiple-definition"), allow_multiple_definition, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:37: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.cpp:25: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:53:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 53 | OPTION(prefix_2, llvm::StringLiteral("allow-shlib-undefined"), allow_shlib_undefined, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:45:1: note: previous definition is here 45 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.cpp:25: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:53:1: error: expected '= constant-expression' or end of enumerator definition 53 | OPTION(prefix_2, llvm::StringLiteral("allow-shlib-undefined"), allow_shlib_undefined, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:37: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.cpp:25: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:55:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 55 | OPTION(prefix_3, llvm::StringLiteral("android-memtag-heap"), android_memtag_heap, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:45:1: note: previous definition is here 45 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.cpp:25: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:55:1: error: expected '= constant-expression' or end of enumerator definition 55 | OPTION(prefix_3, llvm::StringLiteral("android-memtag-heap"), android_memtag_heap, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:37: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.cpp:25: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:57:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 57 | OPTION(prefix_3, llvm::StringLiteral("android-memtag-mode="), android_memtag_mode_eq, Joined, INVALID, android_memtag_mode, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:45:1: note: previous definition is here 45 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.cpp:25: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:57:1: error: expected '= constant-expression' or end of enumerator definition 57 | OPTION(prefix_3, llvm::StringLiteral("android-memtag-mode="), android_memtag_mode_eq, Joined, INVALID, android_memtag_mode, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:37: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.cpp:25: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:59:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 59 | OPTION(prefix_3, llvm::StringLiteral("android-memtag-mode"), android_memtag_mode, Separate, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:45:1: note: previous definition is here 45 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.cpp:25: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:59:1: error: expected '= constant-expression' or end of enumerator definition 59 | OPTION(prefix_3, llvm::StringLiteral("android-memtag-mode"), android_memtag_mode, Separate, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:37: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.cpp:25: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:60:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 60 | OPTION(prefix_3, llvm::StringLiteral("android-memtag-stack"), android_memtag_stack, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:45:1: note: previous definition is here 45 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:21: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.cpp:25: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:31: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF/Options.inc:60:1: error: expected '= constant-expression' or end of enumerator definition 60 | OPTION(prefix_3, llvm::StringLiteral("android-memtag-stack"), android_memtag_stack, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Driver.h:30:37: note: expanded from macro 'OPTION' 30 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [59/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/SymbolTable.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/SymbolTable.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/SymbolTable.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/SymbolTable.cpp FAILED: COFF/CMakeFiles/lldCOFF.dir/SymbolTable.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF -I/builddir/build/BUILD/lld-20.1.0.src/COFF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT COFF/CMakeFiles/lldCOFF.dir/SymbolTable.cpp.o -MF COFF/CMakeFiles/lldCOFF.dir/SymbolTable.cpp.o.d -o COFF/CMakeFiles/lldCOFF.dir/SymbolTable.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/COFF/SymbolTable.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/SymbolTable.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:469:16: error: no member named 'getMachineArchType' in namespace 'llvm' 469 | return llvm::getMachineArchType(getMachine()); | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:479:29: error: no member named 'Amd64' in 'llvm::object::chpe_range_type' 479 | return chpe_range_type::Amd64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:12: error: no member named 'Arm64EC' in 'llvm::object::chpe_range_type'; did you mean 'ARM64EC'? 481 | return chpe_range_type::Arm64EC; | ^~~~~~~~~~~~~~~~~~~~~~~~ | ARM64EC /builddir/build/BUILD/lld-20.1.0.src/COFF/Config.h:41:19: note: 'ARM64EC' declared here 41 | static const auto ARM64EC = llvm::COFF::IMAGE_FILE_MACHINE_ARM64EC; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/SymbolTable.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:481:29: error: no viable conversion from returned value of type 'const llvm::COFF::MachineTypes' to function return type 'std::optional' 481 | return chpe_range_type::Arm64EC; | ^~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'const optional &' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:703:11: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'optional &&' for 1st argument 703 | class optional | ^~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:737:17: note: candidate constructor not viable: no known conversion from 'const llvm::COFF::MachineTypes' to 'nullopt_t' for 1st argument 737 | constexpr optional(nullopt_t) noexcept { } | ^ ~~~~~~~~~ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:745:2: note: candidate template ignored: requirement '__and_v, llvm::COFF::MachineTypes>>, std::__not_>, std::is_constructible, std::is_convertible>' was not satisfied [with _Up = const llvm::COFF::MachineTypes &] 745 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:764:2: note: candidate template ignored: could not match 'const optional<_Up>' against 'const llvm::COFF::MachineTypes' 764 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:790:2: note: candidate template ignored: could not match 'optional<_Up>' against 'const llvm::COFF::MachineTypes' 790 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:754:2: note: explicit constructor is not a candidate 754 | optional(_Up&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:777:2: note: explicit constructor is not a candidate 777 | optional(const optional<_Up>& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:803:2: note: explicit constructor is not a candidate 803 | optional(optional<_Up>&& __t) | ^ /usr/bin/../lib/gcc/riscv64-anolis-linux/14/../../../../include/c++/14/optional:813:2: note: explicit constructor is not a candidate 813 | optional(in_place_t, _Args&&... __args) | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/SymbolTable.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:12: /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:483:29: error: no member named 'Arm64' in 'llvm::object::chpe_range_type' 483 | return chpe_range_type::Arm64; | ~~~~~~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:856:39: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 856 | Arm64XDynamicRelocEntry(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:867:15: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 867 | llvm::COFF::Arm64XFixupType type; | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Chunks.h:879:24: error: no type named 'Arm64XFixupType' in namespace 'llvm::COFF' 879 | void add(llvm::COFF::Arm64XFixupType type, uint8_t size, | ~~~~~~~~~~~~^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/SymbolTable.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: error: expected '= constant-expression' or end of enumerator definition 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/SymbolTable.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/SymbolTable.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:45:1: error: expected '= constant-expression' or end of enumerator definition 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/SymbolTable.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/SymbolTable.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:46:1: error: expected '= constant-expression' or end of enumerator definition 46 | OPTION(prefix_1, llvm::StringLiteral("align:"), align, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/SymbolTable.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/SymbolTable.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:48:1: error: expected '= constant-expression' or end of enumerator definition 48 | OPTION(prefix_1, llvm::StringLiteral("aligncomm:"), aligncomm, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/SymbolTable.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/SymbolTable.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:50:1: error: expected '= constant-expression' or end of enumerator definition 50 | OPTION(prefix_1, llvm::StringLiteral("allowbind:no"), allowbind_no, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/SymbolTable.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:21: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/SymbolTable.cpp:10: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/COFFLinkerContext.h:15: In file included from /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:271: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/COFF/Options.inc:52:1: error: expected '= constant-expression' or end of enumerator definition 52 | OPTION(prefix_1, llvm::StringLiteral("allowbind"), allowbind, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/COFF/Driver.h:270:37: note: expanded from macro 'OPTION' 270 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [60/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/EhFrame.cpp.o -MF ELF/CMakeFiles/lldELF.dir/EhFrame.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/EhFrame.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/EhFrame.cpp FAILED: ELF/CMakeFiles/lldELF.dir/EhFrame.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/ELF -I/builddir/build/BUILD/lld-20.1.0.src/ELF -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT ELF/CMakeFiles/lldELF.dir/EhFrame.cpp.o -MF ELF/CMakeFiles/lldELF.dir/EhFrame.cpp.o.d -o ELF/CMakeFiles/lldELF.dir/EhFrame.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/ELF/EhFrame.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/EhFrame.cpp:19: /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:403:9: error: no type named 'CodeGenOptLevel' in namespace 'llvm' 403 | llvm::CodeGenOptLevel ltoCgo; | ~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Config.h:424:3: error: no type named 'endianness' in namespace 'llvm'; did you mean 'llvm::support::endianness'? 424 | llvm::endianness endianness; | ^~~~~~~~~~~~~~~~ | llvm::support::endianness /usr/include/llvm/Support/Endian.h:27:6: note: 'llvm::support::endianness' declared here 27 | enum endianness {big, little, native}; | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/EhFrame.cpp:20: In file included from /builddir/build/BUILD/lld-20.1.0.src/ELF/InputFiles.h:13: /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:3: error: a type specifier is required for all declarations 111 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:111:28: error: expected ';' at end of declaration list 111 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:3: error: a type specifier is required for all declarations 118 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:118:28: error: expected ';' at end of declaration list 118 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:3: error: a type specifier is required for all declarations 125 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:125:28: error: expected ';' at end of declaration list 125 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:3: error: a type specifier is required for all declarations 137 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:137:28: error: expected ';' at end of declaration list 137 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:3: error: a type specifier is required for all declarations 140 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:140:28: error: expected ';' at end of declaration list 140 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:3: error: a type specifier is required for all declarations 144 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:144:28: error: expected ';' at end of declaration list 144 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:3: error: a type specifier is required for all declarations 148 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:148:28: error: expected ';' at end of declaration list 148 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:3: error: a type specifier is required for all declarations 261 | LLVM_PREFERRED_TYPE(bool) | ^ /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:261:28: error: expected ';' at end of declaration list 261 | LLVM_PREFERRED_TYPE(bool) | ^ | ; /builddir/build/BUILD/lld-20.1.0.src/ELF/Symbols.h:266:3: error: a type specifier is required for all declarations 266 | LLVM_PREFERRED_TYPE(bool) | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [61/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/Driver.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/Driver.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/Driver.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp FAILED: wasm/CMakeFiles/lldWasm.dir/Driver.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/Driver.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/Driver.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/Driver.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:11: /builddir/build/BUILD/lld-20.1.0.src/wasm/InputChunks.h:84:56: error: no member named 'WASM_SEG_FLAG_RETAIN' in namespace 'llvm::wasm' 84 | bool isRetained() const { return flags & llvm::wasm::WASM_SEG_FLAG_RETAIN; } | ~~~~~~~~~~~~^ In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:81: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:44:1: error: expected '= constant-expression' or end of enumerator definition 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:37: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:81: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:45:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:21: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:21: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:81: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:45:1: error: expected '= constant-expression' or end of enumerator definition 45 | OPTION(prefix_0, llvm::StringLiteral(""), UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:37: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:81: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:46:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 46 | OPTION(prefix_1, llvm::StringLiteral("allow-multiple-definition"), allow_multiple_definition, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:21: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:21: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:81: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:46:1: error: expected '= constant-expression' or end of enumerator definition 46 | OPTION(prefix_1, llvm::StringLiteral("allow-multiple-definition"), allow_multiple_definition, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:37: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:81: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:48:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 48 | OPTION(prefix_1, llvm::StringLiteral("allow-undefined-file="), allow_undefined_file, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:21: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:21: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:81: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:48:1: error: expected '= constant-expression' or end of enumerator definition 48 | OPTION(prefix_1, llvm::StringLiteral("allow-undefined-file="), allow_undefined_file, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:37: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:81: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:50:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 50 | OPTION(prefix_2, llvm::StringLiteral("allow-undefined-file"), allow_undefined_file_s, Separate, INVALID, allow_undefined_file, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:21: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:21: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:81: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:50:1: error: expected '= constant-expression' or end of enumerator definition 50 | OPTION(prefix_2, llvm::StringLiteral("allow-undefined-file"), allow_undefined_file_s, Separate, INVALID, allow_undefined_file, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:37: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:81: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:51:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 51 | OPTION(prefix_1, llvm::StringLiteral("allow-undefined"), allow_undefined, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:21: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:21: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:81: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:51:1: error: expected '= constant-expression' or end of enumerator definition 51 | OPTION(prefix_1, llvm::StringLiteral("allow-undefined"), allow_undefined, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:37: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:81: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:53:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 53 | OPTION(prefix_1, llvm::StringLiteral("Bdynamic"), Bdynamic, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:21: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:21: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:81: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:53:1: error: expected '= constant-expression' or end of enumerator definition 53 | OPTION(prefix_1, llvm::StringLiteral("Bdynamic"), Bdynamic, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:37: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:81: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:55:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 55 | OPTION(prefix_1, llvm::StringLiteral("Bstatic"), Bstatic, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:21: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:21: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:81: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:55:1: error: expected '= constant-expression' or end of enumerator definition 55 | OPTION(prefix_1, llvm::StringLiteral("Bstatic"), Bstatic, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:37: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:81: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:57:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 57 | OPTION(prefix_1, llvm::StringLiteral("Bsymbolic"), Bsymbolic, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:21: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:21: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:81: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:57:1: error: expected '= constant-expression' or end of enumerator definition 57 | OPTION(prefix_1, llvm::StringLiteral("Bsymbolic"), Bsymbolic, Flag, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:37: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:81: /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:59:1: error: redefinition of enumerator 'LLVM_MAKE_OPT_ID' 59 | OPTION(prefix_1, llvm::StringLiteral("build-id="), build_id_eq, Joined, INVALID, INVALID, nullptr, 0, 0, | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:21: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ /builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm/Options.inc:44:1: note: previous definition is here 44 | OPTION(prefix_0, llvm::StringLiteral(""), INPUT, Input, INVALID, INVALID, nullptr, 0, 0, nullptr, nullptr, nullptr) | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/Driver.cpp:80:21: note: expanded from macro 'OPTION' 80 | #define OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__), | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. [62/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/Common -I/builddir/build/BUILD/lld-20.1.0.src/Common -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT Common/CMakeFiles/lldCommon.dir/ErrorHandler.cpp.o -MF Common/CMakeFiles/lldCommon.dir/ErrorHandler.cpp.o.d -o Common/CMakeFiles/lldCommon.dir/ErrorHandler.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/Common/ErrorHandler.cpp [63/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/OutputSections.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/OutputSections.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/OutputSections.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/OutputSections.cpp FAILED: wasm/CMakeFiles/lldWasm.dir/OutputSections.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/OutputSections.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/OutputSections.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/OutputSections.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/OutputSections.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/OutputSections.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/OutputSections.h:12: /builddir/build/BUILD/lld-20.1.0.src/wasm/InputChunks.h:84:56: error: no member named 'WASM_SEG_FLAG_RETAIN' in namespace 'llvm::wasm' 84 | bool isRetained() const { return flags & llvm::wasm::WASM_SEG_FLAG_RETAIN; } | ~~~~~~~~~~~~^ 1 error generated. [64/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/Relocations.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/Relocations.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/Relocations.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/Relocations.cpp FAILED: wasm/CMakeFiles/lldWasm.dir/Relocations.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/Relocations.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/Relocations.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/Relocations.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/Relocations.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/Relocations.cpp:11: /builddir/build/BUILD/lld-20.1.0.src/wasm/InputChunks.h:84:56: error: no member named 'WASM_SEG_FLAG_RETAIN' in namespace 'llvm::wasm' 84 | bool isRetained() const { return flags & llvm::wasm::WASM_SEG_FLAG_RETAIN; } | ~~~~~~~~~~~~^ 1 error generated. [65/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/MarkLive.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/MarkLive.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/MarkLive.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/MarkLive.cpp FAILED: wasm/CMakeFiles/lldWasm.dir/MarkLive.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/MarkLive.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/MarkLive.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/MarkLive.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/MarkLive.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/MarkLive.cpp:23: /builddir/build/BUILD/lld-20.1.0.src/wasm/InputChunks.h:84:56: error: no member named 'WASM_SEG_FLAG_RETAIN' in namespace 'llvm::wasm' 84 | bool isRetained() const { return flags & llvm::wasm::WASM_SEG_FLAG_RETAIN; } | ~~~~~~~~~~~~^ 1 error generated. [66/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/InputChunks.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/InputChunks.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/InputChunks.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/InputChunks.cpp FAILED: wasm/CMakeFiles/lldWasm.dir/InputChunks.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/InputChunks.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/InputChunks.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/InputChunks.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/InputChunks.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/InputChunks.cpp:9: /builddir/build/BUILD/lld-20.1.0.src/wasm/InputChunks.h:84:56: error: no member named 'WASM_SEG_FLAG_RETAIN' in namespace 'llvm::wasm' 84 | bool isRetained() const { return flags & llvm::wasm::WASM_SEG_FLAG_RETAIN; } | ~~~~~~~~~~~~^ 1 error generated. [67/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/SymbolTable.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/SymbolTable.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/SymbolTable.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/SymbolTable.cpp FAILED: wasm/CMakeFiles/lldWasm.dir/SymbolTable.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/SymbolTable.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/SymbolTable.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/SymbolTable.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/SymbolTable.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/SymbolTable.cpp:11: /builddir/build/BUILD/lld-20.1.0.src/wasm/InputChunks.h:84:56: error: no member named 'WASM_SEG_FLAG_RETAIN' in namespace 'llvm::wasm' 84 | bool isRetained() const { return flags & llvm::wasm::WASM_SEG_FLAG_RETAIN; } | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/wasm/SymbolTable.cpp:244:48: error: use of undeclared identifier 'WASM_SYMBOL_ABSOLUTE'; did you mean 'WASM_SYMBOL_TABLE'? 244 | s, name, WASM_SYMBOL_VISIBILITY_HIDDEN | WASM_SYMBOL_ABSOLUTE); | ^~~~~~~~~~~~~~~~~~~~ | WASM_SYMBOL_TABLE /usr/include/llvm/BinaryFormat/Wasm.h:362:3: note: 'WASM_SYMBOL_TABLE' declared here 362 | WASM_SYMBOL_TABLE = 0x8, | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/SymbolTable.cpp:255:45: error: use of undeclared identifier 'WASM_SYMBOL_ABSOLUTE'; did you mean 'WASM_SYMBOL_TABLE'? 255 | flags | WASM_SYMBOL_ABSOLUTE); | ^~~~~~~~~~~~~~~~~~~~ | WASM_SYMBOL_TABLE /usr/include/llvm/BinaryFormat/Wasm.h:362:3: note: 'WASM_SYMBOL_TABLE' declared here 362 | WASM_SYMBOL_TABLE = 0x8, | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/SymbolTable.cpp:797:20: error: assigning to 'uint8_t' (aka 'unsigned char') from incompatible type 'llvm::wasm::ValType' 797 | type->ElemType = ValType::FUNCREF; | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/lld-20.1.0.src/wasm/SymbolTable.cpp:811:22: error: cannot initialize a member subobject of type 'uint8_t' (aka 'unsigned char') with an rvalue of type 'llvm::wasm::ValType' 811 | WasmTableType type{ValType::FUNCREF, limits}; | ^~~~~~~~~~~~~~~~ 5 errors generated. [68/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/OutputSegment.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/OutputSegment.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/OutputSegment.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/OutputSegment.cpp FAILED: wasm/CMakeFiles/lldWasm.dir/OutputSegment.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/OutputSegment.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/OutputSegment.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/OutputSegment.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/OutputSegment.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/OutputSegment.cpp:9: In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/OutputSegment.h:12: /builddir/build/BUILD/lld-20.1.0.src/wasm/InputChunks.h:84:56: error: no member named 'WASM_SEG_FLAG_RETAIN' in namespace 'llvm::wasm' 84 | bool isRetained() const { return flags & llvm::wasm::WASM_SEG_FLAG_RETAIN; } | ~~~~~~~~~~~~^ 1 error generated. [69/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/Symbols.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/Symbols.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/Symbols.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/Symbols.cpp FAILED: wasm/CMakeFiles/lldWasm.dir/Symbols.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/Symbols.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/Symbols.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/Symbols.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/Symbols.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/Symbols.cpp:11: /builddir/build/BUILD/lld-20.1.0.src/wasm/InputChunks.h:84:56: error: no member named 'WASM_SEG_FLAG_RETAIN' in namespace 'llvm::wasm' 84 | bool isRetained() const { return flags & llvm::wasm::WASM_SEG_FLAG_RETAIN; } | ~~~~~~~~~~~~^ 1 error generated. [70/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/LTO.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/LTO.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/LTO.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/LTO.cpp FAILED: wasm/CMakeFiles/lldWasm.dir/LTO.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/LTO.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/LTO.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/LTO.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/LTO.cpp /builddir/build/BUILD/lld-20.1.0.src/wasm/LTO.cpp:63:26: error: assigning to 'CodeGenOpt::Level' from incompatible type 'llvm::CodeGenOptLevel' 63 | c.CGOptLevel = ctx.arg.ltoCgo; | ~~~~~~~~^~~~~~ /builddir/build/BUILD/lld-20.1.0.src/wasm/LTO.cpp:92:36: error: no viable conversion from 'llvm::StringRef' to 'unsigned int' 92 | llvm::hardware_concurrency(ctx.arg.thinLTOJobs), | ^~~~~~~~~~~~~~~~~~~ /usr/include/llvm/ADT/StringRef.h:248:5: note: candidate function 248 | operator std::string_view() const { | ^ /usr/include/llvm/Support/Threading.h:185:59: note: passing argument to parameter 'ThreadCount' here 185 | inline ThreadPoolStrategy hardware_concurrency(unsigned ThreadCount = 0) { | ^ 2 errors generated. [71/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/MapFile.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/MapFile.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/MapFile.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/MapFile.cpp FAILED: wasm/CMakeFiles/lldWasm.dir/MapFile.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/MapFile.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/MapFile.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/MapFile.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/MapFile.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/MapFile.cpp:24: In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/OutputSections.h:12: /builddir/build/BUILD/lld-20.1.0.src/wasm/InputChunks.h:84:56: error: no member named 'WASM_SEG_FLAG_RETAIN' in namespace 'llvm::wasm' 84 | bool isRetained() const { return flags & llvm::wasm::WASM_SEG_FLAG_RETAIN; } | ~~~~~~~~~~~~^ 1 error generated. [72/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/SyntheticSections.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/SyntheticSections.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/SyntheticSections.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/SyntheticSections.cpp FAILED: wasm/CMakeFiles/lldWasm.dir/SyntheticSections.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/SyntheticSections.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/SyntheticSections.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/SyntheticSections.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/SyntheticSections.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/SyntheticSections.cpp:13: In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/SyntheticSections.h:18: In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/OutputSections.h:12: /builddir/build/BUILD/lld-20.1.0.src/wasm/InputChunks.h:84:56: error: no member named 'WASM_SEG_FLAG_RETAIN' in namespace 'llvm::wasm' 84 | bool isRetained() const { return flags & llvm::wasm::WASM_SEG_FLAG_RETAIN; } | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/wasm/SyntheticSections.cpp:597:15: error: use of undeclared identifier 'WASM_ELEM_SEGMENT_MASK_HAS_ELEM_DESC'; did you mean 'WASM_ELEM_SEGMENT_MASK_HAS_ELEM_KIND'? 597 | if (flags & WASM_ELEM_SEGMENT_MASK_HAS_ELEM_DESC) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | WASM_ELEM_SEGMENT_MASK_HAS_ELEM_KIND /usr/include/llvm/BinaryFormat/Wasm.h:340:16: note: 'WASM_ELEM_SEGMENT_MASK_HAS_ELEM_KIND' declared here 340 | const unsigned WASM_ELEM_SEGMENT_MASK_HAS_ELEM_KIND = 0x3; | ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/SyntheticSections.cpp:788:20: error: use of undeclared identifier 'WASM_NAMES_MODULE'; did you mean 'WASM_NAMES_LOCAL'? 788 | SubSection sub(WASM_NAMES_MODULE); | ^~~~~~~~~~~~~~~~~ | WASM_NAMES_LOCAL /usr/include/llvm/BinaryFormat/Wasm.h:352:3: note: 'WASM_NAMES_LOCAL' declared here 352 | WASM_NAMES_LOCAL = 2, | ^ 3 errors generated. [73/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/Writer.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/Writer.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/Writer.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/Writer.cpp FAILED: wasm/CMakeFiles/lldWasm.dir/Writer.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/Writer.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/Writer.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/Writer.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/Writer.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/Writer.cpp:11: /builddir/build/BUILD/lld-20.1.0.src/wasm/InputChunks.h:84:56: error: no member named 'WASM_SEG_FLAG_RETAIN' in namespace 'llvm::wasm' 84 | bool isRetained() const { return flags & llvm::wasm::WASM_SEG_FLAG_RETAIN; } | ~~~~~~~~~~~~^ 1 error generated. [74/135] /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/InputFiles.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/InputFiles.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/InputFiles.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/InputFiles.cpp FAILED: wasm/CMakeFiles/lldWasm.dir/InputFiles.cpp.o /usr/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/wasm -I/builddir/build/BUILD/lld-20.1.0.src/wasm -I/builddir/build/BUILD/lld-20.1.0.src/include -I/builddir/build/BUILD/lld-20.1.0.src/anolis-linux-build/include -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/anolis/anolis-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fdata-sections -O2 -g -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -MD -MT wasm/CMakeFiles/lldWasm.dir/InputFiles.cpp.o -MF wasm/CMakeFiles/lldWasm.dir/InputFiles.cpp.o.d -o wasm/CMakeFiles/lldWasm.dir/InputFiles.cpp.o -c /builddir/build/BUILD/lld-20.1.0.src/wasm/InputFiles.cpp In file included from /builddir/build/BUILD/lld-20.1.0.src/wasm/InputFiles.cpp:11: /builddir/build/BUILD/lld-20.1.0.src/wasm/InputChunks.h:84:56: error: no member named 'WASM_SEG_FLAG_RETAIN' in namespace 'llvm::wasm' 84 | bool isRetained() const { return flags & llvm::wasm::WASM_SEG_FLAG_RETAIN; } | ~~~~~~~~~~~~^ /builddir/build/BUILD/lld-20.1.0.src/wasm/InputFiles.cpp:93:14: error: no member named 'hasUnmodeledTypes' in 'llvm::object::WasmObjectFile' 93 | if (obj->hasUnmodeledTypes()) | ~~~ ^ /builddir/build/BUILD/lld-20.1.0.src/wasm/InputFiles.cpp:329:35: error: invalid operands to binary expression ('const uint8_t' (aka 'const unsigned char') and 'llvm::wasm::ValType') 329 | tableImport->Table.ElemType != ValType::FUNCREF) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~ /usr/include/llvm/ADT/ArrayRef.h:680:15: note: candidate template ignored: could not match 'ArrayRef' against 'uint8_t' (aka 'unsigned char') 680 | inline bool operator!=(ArrayRef LHS, ArrayRef RHS) { | ^ /usr/include/llvm/ADT/ArrayRef.h:685:15: note: candidate template ignored: could not match 'SmallVectorImpl' against 'const uint8_t' (aka 'const unsigned char') 685 | inline bool operator!=(SmallVectorImpl &LHS, ArrayRef RHS) { | ^ /usr/include/llvm/ADT/DenseMap.h:732:6: note: candidate template ignored: could not match 'const DenseMapBase' against 'const uint8_t' (aka 'const unsigned char') 732 | bool operator!=( | ^ /usr/include/llvm/ADT/PointerUnion.h:207:6: note: candidate template ignored: could not match 'PointerUnion' against 'uint8_t' (aka 'unsigned char') 207 | bool operator!=(PointerUnion lhs, PointerUnion rhs) { | ^ /usr/include/llvm/ADT/SmallPtrSet.h:441:6: note: candidate template ignored: could not match 'const SmallPtrSetImpl' against 'const uint8_t' (aka 'const unsigned char') 441 | bool operator!=(const SmallPtrSetImpl &LHS, | ^ /usr/include/llvm/Support/ScaledNumber.h:764:1: note: candidate template ignored: could not match 'const ScaledNumber' against 'const uint8_t' (aka 'const unsigned char') 764 | SCALED_NUMBER_COMPARE_TO(!= ) | ^ /usr/include/llvm/Support/ScaledNumber.h:757:3: note: expanded from macro 'SCALED_NUMBER_COMPARE_TO' 757 | SCALED_NUMBER_COMPARE_TO_TYPE(op, uint64_t, uint64_t) \ | ^ /usr/include/llvm/Support/ScaledNumber.h:749:8: note: expanded from macro 'SCALED_NUMBER_COMPARE_TO_TYPE' 749 | bool operator op(const ScaledNumber &L, T1 R) { \ | ^ /usr/include/llvm/Support/ScaledNumber.h:764:1: note: candidate template ignored: could not match 'ScaledNumber' against 'llvm::wasm::ValType' /usr/include/llvm/Support/ScaledNumber.h:757:3: note: expanded from macro 'SCALED_NUMBER_COMPARE_TO' 757 | SCALED_NUMBER_COMPARE_TO_TYPE(op, uint64_t, uint64_t) \ | ^ /usr/include/llvm/Support/ScaledNumber.h:753:8: note: expanded from macro 'SCALED_NUMBER_COMPARE_TO_TYPE' 753 | bool operator op(T1 L, const ScaledNumber &R) { \ | ^ /usr/include/llvm/Support/ScaledNumber.h:764:1: note: candidate template ignored: could not match 'const ScaledNumber' against 'const uint8_t' (aka 'const unsigned char') /usr/include/llvm/Support/ScaledNumber.h:758:3: note: expanded from macro 'SCALED_NUMBER_COMPARE_TO' 758 | SCALED_NUMBER_COMPARE_TO_TYPE(op, uint32_t, uint64_t) \ | ^ /usr/include/llvm/Support/ScaledNumber.h:749:8: note: expanded from macro 'SCALED_NUMBER_COMPARE_TO_TYPE' 749 | bool operator op(const ScaledNumber &L, T1 R) { \ | ^ /usr/include/llvm/Support/ScaledNumber.h:764:1: note: candidate template ignored: could not match 'ScaledNumber' against 'llvm::wasm::ValType' /usr/include/llvm/Support/ScaledNumber.h:758:3: note: expanded from macro 'SCALED_NUMBER_COMPARE_TO' 758 | SCALED_NUMBER_COMPARE_TO_TYPE(op, uint32_t, uint64_t) \ | ^ /usr/include/llvm/Support/ScaledNumber.h:753:8: note: expanded from macro 'SCALED_NUMBER_COMPARE_TO_TYPE' 753 | bool operator op(T1 L, const ScaledNumber &R) { \ | ^ /usr/include/llvm/Support/ScaledNumber.h:764:1: note: candidate template ignored: could not match 'const ScaledNumber' against 'const uint8_t' (aka 'const unsigned char') /usr/include/llvm/Support/ScaledNumber.h:759:3: note: expanded from macro 'SCALED_NUMBER_COMPARE_TO' 759 | SCALED_NUMBER_COMPARE_TO_TYPE(op, int64_t, int64_t) \ | ^ /usr/include/llvm/Support/ScaledNumber.h:749:8: note: expanded from macro 'SCALED_NUMBER_COMPARE_TO_TYPE' 749 | bool operator op(const ScaledNumber &L, T1 R) { \ | ^ /usr/include/llvm/Support/ScaledNumber.h:764:1: note: candidate template ignored: could not match 'ScaledNumber' against 'llvm::wasm::ValType' /usr/include/llvm/Support/ScaledNumber.h:759:3: note: expanded from macro 'SCALED_NUMBER_COMPARE_TO' 759 | SCALED_NUMBER_COMPARE_TO_TYPE(op, int64_t, int64_t) \ | ^ /usr/include/llvm/Support/ScaledNumber.h:753:8: note: expanded from macro 'SCALED_NUMBER_COMPARE_TO_TYPE' 753 | bool operator op(T1 L, const ScaledNumber &R) { \ | ^ /usr/include/llvm/Support/ScaledNumber.h:764:1: note: candidate template ignored: could not match 'const ScaledNumber' against 'const uint8_t' (aka 'const unsigned char') /usr/include/llvm/Support/ScaledNumber.h:760:3: note: expanded from macro 'SCALED_NUMBER_COMPARE_TO' 760 | SCALED_NUMBER_COMPARE_TO_TYPE(op, int32_t, int64_t) | ^ /usr/include/llvm/Support/ScaledNumber.h:749:8: note: expanded from macro 'SCALED_NUMBER_COMPARE_TO_TYPE' 749 | bool operator op(const ScaledNumber &L, T1 R) { \ | ^ /usr/include/llvm/Support/ScaledNumber.h:764:1: note: candidate template ignored: could not match 'ScaledNumber' against 'llvm::wasm::ValType' /usr/include/llvm/Support/ScaledNumber.h:760:3: note: expanded from macro 'SCALED_NUMBER_COMPARE_TO' 760 | SCALED_NUMBER_COMPARE_TO_TYPE(op, int32_t, int64_t) | ^ /usr/include/llvm/Support/ScaledNumber.h:753:8: note: expanded from macro 'SCALED_NUMBER_COMPARE_TO_TYPE' 753 | bool operator op(T1 L, const ScaledNumber &R) { \ | ^ /usr/include/llvm/ADT/IntrusiveRefCntPtr.h:237:13: note: candidate template ignored: could not match 'const IntrusiveRefCntPtr' against 'const uint8_t' (aka 'const unsigned char') 237 | inline bool operator!=(const IntrusiveRefCntPtr &A, | ^ /usr/include/llvm/ADT/IntrusiveRefCntPtr.h:248:13: note: candidate template ignored: could not match 'const IntrusiveRefCntPtr' against 'const uint8_t' (aka 'const unsigned char') 248 | inline bool operator!=(const IntrusiveRefCntPtr &A, U *B) { | ^ /usr/include/llvm/ADT/IntrusiveRefCntPtr.h:258:13: note: candidate template ignored: could not match 'T *' against 'uint8_t' (aka 'unsigned char') 258 | inline bool operator!=(T *A, const IntrusiveRefCntPtr &B) { | ^ /usr/include/llvm/ADT/IntrusiveRefCntPtr.h:273:6: note: candidate template ignored: could not match 'IntrusiveRefCntPtr' against 'llvm::wasm::ValType' 273 | bool operator!=(std::nullptr_t A, const IntrusiveRefCntPtr &B) { | ^ /usr/include/llvm/ADT/IntrusiveRefCntPtr.h:278:6: note: candidate template ignored: could not match 'const IntrusiveRefCntPtr' against 'const uint8_t' (aka 'const unsigned char') 278 | bool operator!=(const IntrusiveRefCntPtr &A, std::nullptr_t B) { | ^ 3 errors generated. ninja: build stopped: subcommand failed. error: Bad exit status from /var/tmp/rpm-tmp.qELVIu (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.qELVIu (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/lld.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/lld.spec