14.0.6-final has been tagged

Hi,

I’ve tagged 14.0.6-final please upload the release binaries. If there are no major regressions found, then this will be the last 14.0.x release.

For 14.0.6 final, I have built and tested on both FreeBSD 12 and 13. No additional patches were needed.

Main results on amd64-freebsd12:

  Skipped            :     4 (14.0.5:     4)
  Unsupported        :  6771 (14.0.5:  6771)
  Passed             : 97035 (14.0.5: 97036)
  Expectedly Failed  :   314 (14.0.5:   314)
  Timed Out          :     5 (14.0.5:     4)
  Failed             :   170 (14.0.5:   170)
  Unexpectedly Passed:     2 (14.0.5:     2)

Test suite results on amd64-freebsd12:

  Passed: 2420 (14.0.5: 2420)
  Failed:    3 (14.0.5:    3)

Main results on amd64-freebsd13:

  Skipped            :     4 (14.0.5:     4)
  Unsupported        :  6771 (14.0.5:  6771)
  Passed             : 96997 (14.0.5: 96996)
  Expectedly Failed  :   314 (14.0.5:   314)
  Timed Out          :     4 (14.0.5:     6)
  Failed             :   209 (14.0.5:   208)
  Unexpectedly Passed:     2 (14.0.5:     2)

Test suite results on amd64-freebsd13:

  Passed: 2420 (14.0.5: 2420)
  Failed:    3 (14.0.5:    3)

Uploaded:

SHA256 (clang+llvm-14.0.6-amd64-unknown-freebsd12.tar.xz) = b0a7b86dacb12afb8dd2ca99ea1b894d9cce84aab7711cb1964b3005dfb09af3
SHA256 (clang+llvm-14.0.6-amd64-unknown-freebsd13.tar.xz) = 503e806ae67323c4f790ea2b1fe21e52809814d6a51263e2618f0c22ec47f6ff

-Dimitry

Windows is ready:

76d0f6f37e22e0bd1f6a9e62e0c66edcd225b97cce1dbefb5d047a9dbfb9d4c8 LLVM-14.0.6-win32.exe
e8dbb2f7de8e37915273d65c1c2f2d96844b96bb8e8035f62c5182475e80b9fc LLVM-14.0.6-win64.exe

Built with llvm\utils\release\build_llvm_release 14.0.6 at LLVM 655dc02cb02306895a82970968a15073b812d5e6.

Hi! The PowerPC (Linux) binaries for LLVM 14.0.5 binaries have been uploaded.

For Ubuntu 18.04.5:

3b2eb1358bff7413fd5a5b6d4472777451fde7e8  clang+llvm-14.0.6-powerpc64le-linux-ubuntu-18.04.5.tar.xz

For RHEL 8.4:

4a4d72de3182c5699dd48ef7cfb1414cee339dd4  clang+llvm-14.0.6-powerpc64le-linux-rhel-8.4.tar.xz

I can confirm the additional AVR commits that were cherry-picked resolved the issues I was seeing in 14.0.5, so I am happy to announce that no additional regressions were seen during my testing.

The PowerPC (AIX 7.2) binaries for 14.0.6 have been uploaded.
Once again, compiler-rt was built as a runtime (and not as a project).
a2c9a7c6b70cd0a1a7df6a354762e051caec4129 clang+llvm-14.0.6-powerpc64-ibm-aix-7.2.tar.xz
Same as PowerPC (Linux), the issues in the previous release were resolved for AIX in this release.

Arm & AArch64 binaries uploaded:

1a81fda984f5e607584916fdf69cf41e5385b219b983544d2c1a14950d5a65cf  clang+llvm-14.0.6-aarch64-linux-gnu.tar.xz
e50243c191334b80faa0bb18bbadb8afa35cd3d19cb521353c666c1a7ef20173  clang+llvm-14.0.6-armv7a-linux-gnueabihf.tar.xz
5610218437eb63593325cc8f5299862f51fbc9aab1bea5a37bbf804ad071ad7d  LLVM-14.0.6-woa64.zip

No changes compared to 14.0.5.

macOS: e6cc6b8279661fd4452c2847cb8e55ce1e54e1faf4ab497b37c85ffdb6685e7c

no changes in tests since 14.0.5:

FAIL: Clang :: Driver/darwin-ld-lto.c (8210 of 96953)
FAIL: Flang :: Runtime/no-cpp-dep.c (33374 of 96953)
FAIL: LLVM :: ExecutionEngine/JITLink/X86/MachO_x86-64_self_relocation_exec.test (56542 of 96953)
FAIL: ORC-x86_64-darwin :: TestCases/Darwin/x86-64/trivial-static-initializer.S (82501 of 96953)
FAIL: ORC-x86_64-darwin :: TestCases/Darwin/x86-64/trivial-tlv.S (82502 of 96953)
FAIL: ORC-x86_64-darwin :: TestCases/Darwin/x86-64/trivial-objc-methods.S (82503 of 96953)
FAIL: ORC-x86_64-darwin :: TestCases/Darwin/x86-64/trivial-cxa-atexit.S (82504 of 96953)
FAIL: ORC-x86_64-darwin :: TestCases/Darwin/x86-64/trivial-swift-types-section.S (82505 of 96953)
FAIL: flang-OldUnit :: Evaluate/folding.test (85838 of 96953)
FAIL: libomp :: ompt/loadtool/tool_available_search/tool_available_search.c (94099 of 96953)
FAIL: libomp :: tasking/hidden_helper_task/gtid.cpp (94198 of 96953)
FAIL: libomp :: worksharing/for/kmp_sch_simd_guided.c (94246 of 96953)

Hi, thanks for this release!

I’ve noticed linux / x86_64 binaries are missing from the assets, as well as from all the other point releases in the 14 series (14.0.0 provides clang+llvm-14.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz) - is this expected?

1 Like

I have run into the same problem. According to the thread for 14.0.0, it was @androm3da who created the Ubuntu binaries. What is the situation with this? Not having a Debian/Ubuntu package at all seems like a major issue with regards to portability and accessibility of the release.

Most of the users will use the packages provided by the distro or https://apt.llvm.org/
So, not sure it is a major issue.

Using the packages by the distro would require you to have a distro that supplies new(er) packages than already available. Ubuntu 20.04 ships with offering only LLVM 12 as the newest option.

Using the APT repository requires the user’s ability to be able to edit the apt sources, which is only possible if one is a superuser. (Containers are not a solution here either, because to run a Docker container, you’d still need to be “some sort of a” superuser.)

I’ve just run into the problem that I wanted to run a test with a more newer LLVM than what we had, and I happened to be on a system which does not offer me superuser rights because <corporate reasons I do not agree with, but whatever>. Thankfully, this machine in question has plenty of CPU and RAM so I could self-compile, but having a single compressed archive which is just downloaded and extracted and then run, versus having to manually grab (on another system, in a container; or from a browser from a directory structure that is rather uninituitive) several DEB files and extract them together and then hope you get the right format… the latter one is certainly not a meaningful alternative.

Good point, this is a good use case for this :slight_smile: thanks!

In fact… if we do have the infrastructure to produce the release builds of a tag, could we just grab those binaries that would go up into the PPA anyway, package them, and send them the maintainers’ way to upload to GitHub? (So at least we do not waste effort by compiling things multiple times.)

I’m currently trying to build a 14.0.6 artifact using the command:

./llvm/utils/release/test-release.sh -release 14.0.6 -triple x86_64-linux-gnu-rhel-8.4 -final -j 8

but I get an error when compiling. Anyone know what this issue is?

cd /home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/projects/libcxxabi/src && /usr/bin/c++ -DHAVE___CXA_THREAD_ATEXIT_IMPL -D_GNU_SOURCE -D_LIBCPP_BUILDING_LIBRARY -D_LIBCPP_DISABLE_EXTERN_TEMPLATE -D_LIBCXXABI_BUILDING_LIBRARY -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/projects/libcxxabi/src -I/home/user/llvm-project/final/llvm-project/libcxxabi/src -I/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include -I/home/user/llvm-project/final/llvm-project/llvm/include -I/home/user/llvm-project/final/llvm-project/libcxxabi/include -I/home/user/llvm-project/final/llvm-project/libcxxabi/../libcxx/src -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wmisleading-indentation -ffunction-sections -fdata-sections  -O3 -DNDEBUG -fPIC -nostdinc++ -Werror=return-type -W -Wall -Wchar-subscripts -Wconversion -Wmissing-braces -Wunused-function -Wshadow -Wsign-compare -Wsign-conversion -Wstrict-aliasing=2 -Wstrict-overflow=4 -Wunused-parameter -Wunused-variable -Wwrite-strings -Wundef -Wno-suggest-override -Wno-error -pedantic -fstrict-aliasing -funwind-tables -D_DEBUG -UNDEBUG -I/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1 -std=c++2a -MD -MT projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_aux_runtime.cpp.o -MF CMakeFiles/cxxabi_shared.dir/cxa_aux_runtime.cpp.o.d -o CMakeFiles/cxxabi_shared.dir/cxa_aux_runtime.cpp.o -c /home/user/llvm-project/final/llvm-project/libcxxabi/src/cxa_aux_runtime.cpp
In file included from /home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/exception:84,
                 from /home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/new:93,
                 from /home/user/llvm-project/final/llvm-project/libcxxabi/src/cxa_aux_runtime.cpp:13:
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:554:53: error: there are no arguments to ‘__is_same’ that depend on a template parameter, so a declaration of ‘__is_same’ must be available [-fpermissive]
 struct _LIBCPP_TEMPLATE_VIS is_same : _BoolConstant<__is_same(_Tp, _Up)> { };
                                                     ^~~~~~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:554:53: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:554:72: error: template argument 1 is invalid
 struct _LIBCPP_TEMPLATE_VIS is_same : _BoolConstant<__is_same(_Tp, _Up)> { };
                                                                        ^
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:558:48: error: expected primary-expression before ‘,’ token
 inline constexpr bool is_same_v = __is_same(_Tp, _Up);
                                                ^
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:558:53: error: expected primary-expression before ‘)’ token
 inline constexpr bool is_same_v = __is_same(_Tp, _Up);
                                                     ^
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:558:35: error: there are no arguments to ‘__is_same’ that depend on a template parameter, so a declaration of ‘__is_same’ must be available [-fpermissive]
 inline constexpr bool is_same_v = __is_same(_Tp, _Up);
                                   ^~~~~~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:569:31: error: there are no arguments to ‘__is_same’ that depend on a template parameter, so a declaration of ‘__is_same’ must be available [-fpermissive]
 using _IsSame = _BoolConstant<__is_same(_Tp, _Up)>;
                               ^~~~~~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:569:50: error: template argument 1 is invalid
 using _IsSame = _BoolConstant<__is_same(_Tp, _Up)>;
                                                  ^
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:572:35: error: there are no arguments to ‘__is_same’ that depend on a template parameter, so a declaration of ‘__is_same’ must be available [-fpermissive]
 using _IsNotSame = _BoolConstant<!__is_same(_Tp, _Up)>;
                                   ^~~~~~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:572:54: error: template argument 1 is invalid
 using _IsNotSame = _BoolConstant<!__is_same(_Tp, _Up)>;
                                                      ^
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:576:5: error: ‘_IsSame’ was not declared in this scope
     _IsSame<_Tp, typename _Tp::__primary_template>::value
     ^~~~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:576:5: note: suggested alternative: ‘ptsname’
     _IsSame<_Tp, typename _Tp::__primary_template>::value
     ^~~~~~~
     ptsname
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:576:50: error: template argument 1 is invalid
     _IsSame<_Tp, typename _Tp::__primary_template>::value
                                                  ^
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:580:5: error: ‘__test_for_primary_template’ was not declared in this scope
     __test_for_primary_template, _Tp
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:581:3: error: template argument 1 is invalid
   >;
   ^
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:1241:5: error: ‘_IsNotSame’ was not declared in this scope
     _IsNotSame<decltype(__is_referenceable_impl::__test<_Tp>(0)), __two>::value> {};
     ^~~~~~~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:1241:72: error: template argument 2 is invalid
     _IsNotSame<decltype(__is_referenceable_impl::__test<_Tp>(0)), __two>::value> {};
                                                                        ^
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:1241:73: error: expected ‘{’ before ‘::’ token
     _IsNotSame<decltype(__is_referenceable_impl::__test<_Tp>(0)), __two>::value> {};
                                                                         ^~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:1345:35: error: expected template-name before ‘<’ token
 struct __is_same_uncvref : _IsSame<typename __uncvref<_Tp>::type,
                                   ^
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:1345:35: error: expected ‘{’ before ‘<’ token
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:1378:17: error: ‘_IsSame’ was not declared in this scope
                 _IsSame<typename remove_cv<_Tp>::type, void>::value>
                 ^~~~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:1378:17: note: suggested alternative: ‘ptsname’
                 _IsSame<typename remove_cv<_Tp>::type, void>::value>
                 ^~~~~~~
                 ptsname
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:1378:54: error: expected ‘(’ before ‘,’ token
                 _IsSame<typename remove_cv<_Tp>::type, void>::value>
                                                      ^
                                                      (
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:1378:56: error: ‘void’ is not a valid type for a template non-type parameter
                 _IsSame<typename remove_cv<_Tp>::type, void>::value>
                                                        ^~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:1378:63: error: ‘value’ in namespace ‘::’ does not name a type
                 _IsSame<typename remove_cv<_Tp>::type, void>::value>
                                                               ^~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:1378:61: note: suggested alternative: ‘valloc’
                 _IsSame<typename remove_cv<_Tp>::type, void>::value>
                                                             ^~
                                                             valloc
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:1381:29: error: ‘__add_pointer_impl’ is not a class template
 template <class _Tp> struct __add_pointer_impl<_Tp, false>
                             ^~~~~~~~~~~~~~~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:2053:30: error: ‘_IsNotSame’ was not declared in this scope
    static const bool value = _IsNotSame<type, void>::value;
                              ^~~~~~~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:2053:45: error: expected primary-expression before ‘,’ token
    static const bool value = _IsNotSame<type, void>::value;
                                             ^
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:2053:47: error: expected unqualified-id before ‘void’
    static const bool value = _IsNotSame<type, void>::value;
                                               ^~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:2371:9: error: ‘_IsSame’ was not declared in this scope
         _IsSame<_Tp, typename decay<_Tp>::type>::value && _IsSame<_Up, typename decay<_Up>::type>::value,
         ^~~~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:2371:9: note: suggested alternative: ‘ptsname’
         _IsSame<_Tp, typename decay<_Tp>::type>::value && _IsSame<_Up, typename decay<_Up>::type>::value,
         ^~~~~~~
         ptsname
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:2371:47: error: wrong number of template arguments (2, should be 3)
         _IsSame<_Tp, typename decay<_Tp>::type>::value && _IsSame<_Up, typename decay<_Up>::type>::value,
                                               ^
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:543:33: note: provided for ‘template<bool _Bp, class _If, class _Then> struct std::__1::conditional’
     struct _LIBCPP_TEMPLATE_VIS conditional {typedef _If type;};
                                 ^~~~~~~~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:2371:48: error: expected ‘{’ before ‘::’ token
         _IsSame<_Tp, typename decay<_Tp>::type>::value && _IsSame<_Up, typename decay<_Up>::type>::value,
                                                ^~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:3666:7: error: ‘_IsNotSame’ was not declared in this scope
       _IsNotSame<_Result, __nat>::value,
       ^~~~~~~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:3666:32: error: wrong number of template arguments (2, should be 3)
       _IsNotSame<_Result, __nat>::value,
                                ^
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:543:33: note: provided for ‘template<bool _Bp, class _If, class _Then> struct std::__1::conditional’
     struct _LIBCPP_TEMPLATE_VIS conditional {typedef _If type;};
                                 ^~~~~~~~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:3665:12: error: expected nested-name-specifier
   typename conditional<
            ^~~~~~~~~~~~
       _IsNotSame<_Result, __nat>::value,
       ~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:3674:29: error: ‘type’ has not been declared
   static const bool value = type::value;
                             ^~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:3915:31: error: ‘_IsNotSame’ was not declared in this scope
     static const bool value = _IsNotSame<__swap1, __nat>::value
                               ^~~~~~~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:3915:49: error: expected primary-expression before ‘,’ token
     static const bool value = _IsNotSame<__swap1, __nat>::value
                                                 ^
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:3915:51: error: expected ‘;’ at end of member declaration
     static const bool value = _IsNotSame<__swap1, __nat>::value
                                                   ^~~~~
                                                        ;
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:3915:56: error: expected unqualified-id before ‘>’ token
     static const bool value = _IsNotSame<__swap1, __nat>::value
                                                        ^
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:4110:19: error: ‘_IsSame’ was not declared in this scope
     : conditional<_IsSame<_RawValTy, _Key>::value, __extract_key_self_tag,
                   ^~~~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:4110:19: note: suggested alternative: ‘ptsname’
     : conditional<_IsSame<_RawValTy, _Key>::value, __extract_key_self_tag,
                   ^~~~~~~
                   ptsname
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:4110:42: error: wrong number of template arguments (2, should be 3)
     : conditional<_IsSame<_RawValTy, _Key>::value, __extract_key_self_tag,
                                          ^
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:543:33: note: provided for ‘template<bool _Bp, class _If, class _Then> struct std::__1::conditional’
     struct _LIBCPP_TEMPLATE_VIS conditional {typedef _If type;};
                                 ^~~~~~~~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:4110:43: error: expected ‘{’ before ‘::’ token
     : conditional<_IsSame<_RawValTy, _Key>::value, __extract_key_self_tag,
                                           ^~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:4115:19: error: ‘_IsSame’ was not declared in this scope
     : conditional<_IsSame<typename remove_const<_First>::type, _Key>::value,
                   ^~~~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:4115:19: note: suggested alternative: ‘ptsname’
     : conditional<_IsSame<typename remove_const<_First>::type, _Key>::value,
                   ^~~~~~~
                   ptsname
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:4115:68: error: wrong number of template arguments (2, should be 3)
     : conditional<_IsSame<typename remove_const<_First>::type, _Key>::value,
                                                                    ^
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:543:33: note: provided for ‘template<bool _Bp, class _If, class _Then> struct std::__1::conditional’
     struct _LIBCPP_TEMPLATE_VIS conditional {typedef _If type;};
                                 ^~~~~~~~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:4115:69: error: expected ‘{’ before ‘::’ token
     : conditional<_IsSame<typename remove_const<_First>::type, _Key>::value,
                                                                     ^~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:4124:31: error: ‘_IsSame’ was not declared in this scope
     : integral_constant<bool, _IsSame<_RawValTy, _Key>::value> {};
                               ^~~~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:4124:31: note: suggested alternative: ‘ptsname’
     : integral_constant<bool, _IsSame<_RawValTy, _Key>::value> {};
                               ^~~~~~~
                               ptsname
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:4124:54: error: wrong number of template arguments (3, should be 2)
     : integral_constant<bool, _IsSame<_RawValTy, _Key>::value> {};
                                                      ^
In file included from /home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/exception:84,
                 from /home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/new:93,
                 from /home/user/llvm-project/final/llvm-project/libcxxabi/src/cxa_aux_runtime.cpp:13:
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:434:29: note: provided for ‘template<class _Tp, _Tp __v> struct std::__1::integral_constant’
 struct _LIBCPP_TEMPLATE_VIS integral_constant
                             ^~~~~~~~~~~~~~~~~
In file included from /home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/exception:84,
                 from /home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/new:93,
                 from /home/user/llvm-project/final/llvm-project/libcxxabi/src/cxa_aux_runtime.cpp:13:
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:4124:55: error: expected ‘{’ before ‘::’ token
     : integral_constant<bool, _IsSame<_RawValTy, _Key>::value> {};
                                                       ^~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits: In function ‘constexpr bool std::__1::is_constant_evaluated()’:
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:4135:10: error: ‘__builtin_is_constant_evaluated’ was not declared in this scope
   return __builtin_is_constant_evaluated();
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:4135:10: note: suggested alternative: ‘is_constant_evaluated’
   return __builtin_is_constant_evaluated();
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          is_constant_evaluated
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits: In function ‘constexpr bool std::__1::__libcpp_is_constant_evaluated()’:
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:4140:58: error: ‘__builtin_is_constant_evaluated’ was not declared in this scope
 bool __libcpp_is_constant_evaluated() _NOEXCEPT { return __builtin_is_constant_evaluated(); }
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/llvm-project/final/Phase1/Release/llvmCore-14.0.6-final.obj/include/c++/v1/type_traits:4140:58: note: suggested alternative: ‘__libcpp_is_constant_evaluated’
 bool __libcpp_is_constant_evaluated() _NOEXCEPT { return __builtin_is_constant_evaluated(); }
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                          __libcpp_is_constant_evaluated

libc++/libc++abi require a version of clang/gcc newer than LLVM in general. I think we fixed the test-release script for LLVM 15 to use the just-built clang to avoid running into issues with that, but those fixes didn’t make it into LLVM 14.

You can use the environment variables CC/CXX to override the compiler used to build LLVM.

I tried but and unfortunately ran into another problem

CMake Error at /usr/share/cmake/Modules/CMakeDetermineCCompiler.cmake:49 (message):
  Could not find compiler set in environment variable CC:


  /home/user/llvm-project/clang+llvm-15.0.0-x86_64-linux-gnu-rhel-8.4/bin/clang.
Call Stack (most recent call first):
  CMakeLists.txt:49 (project)


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

After doing a bit of research I found what seems like potential fixes but they’re all code changes to CMake. Has this issue come up in the past and is there a command line option that would allow me to move past this?

It looks as if you have specified the compiler incorrectly as /home/user/llvm-project/clang+llvm-15.0.0-x86_64-linux-gnu-rhel-8.4/bin/clang.. Try without that trailing .? Or double-check the path in general.

CMake confusingly appends the . to make it a full sentence for some of these error messages, including CC’s.

1 Like

Exactly what jrtc27 said.

Does the compiler work if you run it outside CMake? Just with --version or something?