latest git won't build on clang/libstdc++

Open Beginner friendly
#2,218 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
cmake, cpp
Domain
build-system

Research direction

Start with src/xrCore/xrMemory.h and the Externals/luabind submodule revision shown in the issue. Add the missing type traits header, update the luabind submodule as described, then try building with clang 23 and libc++ 23. Done when that build succeeds.

Written by the indexing model from the issue text.

Description

Bug

Describe the bug
Won't compile. Needs a bunch of headers, some of which are in the Externals but this one is from this repo and unlocks the build with clang 23 and libc++ 23

This Fixes it

diff --git a/Externals/luabind b/Externals/luabind
--- a/Externals/luabind
+++ b/Externals/luabind
@@ -1 +1 @@
-Subproject commit 8da131b830f2615115c65438d48ac52cb9b7fa00
+Subproject commit 8da131b830f2615115c65438d48ac52cb9b7fa00-dirty
diff --git a/src/xrCore/xrMemory.h b/src/xrCore/xrMemory.h
index 6b46fcc..2680296 100644
--- a/src/xrCore/xrMemory.h
+++ b/src/xrCore/xrMemory.h
@@ -3,6 +3,7 @@
 #include "xr_types.h"
 
 #include <new>
+#include <type_traits>
 
 class XRCORE_API xrMemory
 {

Additional context

$ c++ -stdlib=libc++ -v
Debian clang version 23.1.6 (1)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-23/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/11
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/14
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/15
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/16
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/16
Candidate multilib: .;@m64
Selected multilib: .;@m64
Found CUDA installation: /usr/local/cuda, version 
Found HIP installation: /opt/rocm, version 7.16.26385
Dominant language
C++
Stars
3.6k
Forks
565
Avg merge
9h 54m
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenXRay/xray-16

All issues in OpenXRay/xray-16

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.