Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

24.09 Release - O3DE doesn't build with clang version 19 #18470

Open
darkeststar opened this issue Nov 14, 2024 · 0 comments
Open

24.09 Release - O3DE doesn't build with clang version 19 #18470

darkeststar opened this issue Nov 14, 2024 · 0 comments
Assignees
Labels
kind/bug-2409 Used for stabilization/24.09 issues needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. sig/build Categorizes an issue or PR as relevant to SIG Build.

Comments

@darkeststar
Copy link
Contributor

Bug Description

Building O3DE with clang 18 works correctly, while building with clang 19 results in the following error:

FAILED: Code/Framework/AzCore/CMakeFiles/O3DEKernel.dir/profile/AzCore/Module/Environment.cpp.o 
/usr/bin/clang++-19 -DAZ_BUILD_CONFIGURATION_TYPE=\"profile\" -DAZ_ENABLE_DEBUG_TOOLS -DAZ_ENABLE_TRACING -DAZ_PROFILE_BUILD -DLINUX -DLINUX64 -DNDEBUG -DO3DEKernel_EXPORTS -D_FORTIFY_SOURCE=2 -D_HAS_EXCEPTIONS=0 -D_PROFILE -D__linux__ -DCMAKE_INTDIR=\"profile\" -I/home/o3de/o3de/Code/Framework/AzCore/. -I/home/o3de/o3de/Code/Framework/AzCore/Platform/Linux -I/home/o3de/o3de/Code/Framework/AzCore/Platform/Common -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Wno-inconsistent-missing-override -Wrange-loop-analysis -Wno-unknown-warning-option -Wno-parentheses -Wno-reorder -Wno-switch -Wno-undefined-var-template -msse4.1  -O2 -g -fstack-protector-all -fstack-check -std=c++17 -fPIC -MD -MT Code/Framework/AzCore/CMakeFiles/O3DEKernel.dir/profile/AzCore/Module/Environment.cpp.o -MF Code/Framework/AzCore/CMakeFiles/O3DEKernel.dir/profile/AzCore/Module/Environment.cpp.o.d -o Code/Framework/AzCore/CMakeFiles/O3DEKernel.dir/profile/AzCore/Module/Environment.cpp.o -c /home/o3de/o3de/Code/Framework/AzCore/AzCore/Module/Environment.cpp
In file included from /home/o3de/o3de/Code/Framework/AzCore/AzCore/Module/Environment.cpp:11:
In file included from /home/o3de/o3de/Code/Framework/AzCore/./AzCore/Memory/OSAllocator.h:11:
In file included from /home/o3de/o3de/Code/Framework/AzCore/./AzCore/Memory/AllocatorBase.h:10:
In file included from /home/o3de/o3de/Code/Framework/AzCore/./AzCore/Memory/IAllocator.h:11:
In file included from /home/o3de/o3de/Code/Framework/AzCore/./AzCore/RTTI/RTTI.h:12:
/home/o3de/o3de/Code/Framework/AzCore/./AzCore/RTTI/TypeInfo.h:518:5: error: call to 'GetTemplateIdentity' is ambiguous
  518 |     AZ_TYPE_INFO_INTERNAL_SPECIALIZED_TEMPLATE_BOTHFIX_UUID_DECL(AZStd::basic_fixed_string, AZ_TYPE_INFO_INTERNAL_TYPENAME, AZ_TYPE_INFO_INTERNAL_AUTO, AZ_TYPE_INFO_INTERNAL_TYPENAME);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/o3de/o3de/Code/Framework/AzCore/./AzCore/RTTI/TemplateInfo.h:277:5: note: expanded from macro 'AZ_TYPE_INFO_INTERNAL_SPECIALIZED_TEMPLATE_BOTHFIX_UUID_DECL'
  277 |     AZ_TEMPLATE_INFO_INTERNAL_BOTHFIX_UUID_DECL(_TemplateName) \
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/o3de/o3de/Code/Framework/AzCore/./AzCore/RTTI/TemplateInfo.h:263:18: note: expanded from macro 'AZ_TEMPLATE_INFO_INTERNAL_BOTHFIX_UUID_DECL'
  263 |         decltype(AZ::AzGenericTypeInfo::Internal::GetTemplateIdentity<_TemplateName>()));
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/o3de/o3de/Code/Framework/AzCore/./AzCore/RTTI/TemplateInfo.h:108:10: note: candidate function [with T = AZStd::basic_fixed_string]
  108 |     auto GetTemplateIdentity() ->
      |          ^
/home/o3de/o3de/Code/Framework/AzCore/./AzCore/RTTI/TemplateInfo.h:111:10: note: candidate function [with T = AZStd::basic_fixed_string]
  111 |     auto GetTemplateIdentity() -> TemplateIdentityTypeAutoType<T>;
      |          ^

Clang version used:

$ /usr/bin/clang --version
clang version 19.1.0 (Fedora 19.1.0-1.fc41)
Target: x86_64-redhat-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Configuration file: /etc/clang/x86_64-redhat-linux-gnu-clang.cfg

Assets-Required

None

Steps to Reproduce

  1. Install clang 19
  2. Ensure that o3de is configured to use clang 19.
  3. Build O3DE

Expected Behavior

O3DE to compile without error.

Actual Behavior

Building results in the error above.

Screenshots/Videos

N/A

Found In Branch

I believe that this issue is prevalent in all branches although, I've only tested development and point-release/24091

Commit ID From

966e713013363c645a3b365391164b8a27e34ca5

Desktop/Device

PC
Fedora Linux 41
Clang: clang version 19.1.0 (Fedora 19.1.0-1.fc41)

Additional Context

No response

@darkeststar darkeststar added kind/bug-2409 Used for stabilization/24.09 issues needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Nov 14, 2024
@michalpelka michalpelka added sig/build Categorizes an issue or PR as relevant to SIG Build. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug-2409 Used for stabilization/24.09 issues needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. sig/build Categorizes an issue or PR as relevant to SIG Build.
Projects
None yet
Development

No branches or pull requests

3 participants