Context
I can't manage to compile Odin on Debian testing (Trixie), on a x86_64. But when I compile it inside a docker image (based on the same distribution) it works.
I've tried with llvm-17 and llvm-14, still the same. I've also installed libx32stdc++-12-dev, as stated on the Getting Started page.
- Operating System & Odin Version: Debian testing (trixie), Odin commit id 8899f42 ( also retried with 510574a )
- Please paste
odin report output:
generated from the version i built with the docker image :
Odin: dev-2024-03:8899f4247
OS: Debian GNU/Linux trixie/sid, Linux 6.6.15-amd64
CPU: 12th Gen Intel(R) Core(TM) i7-12700F
RAM: 15857 MiB
Backend: LLVM 17.0.6
Expected Behavior
It should compile.
Current Behavior
It doesn't find the "atomic" c++ header.
Failure Information (for bugs)
Steps to Reproduce
I can't reproduce it since it works inside docker, with the same distribution.
Dockerfile used :
Dockerfile.txt
Failure Logs
$ make
./build_odin.sh debug
+ clang++ src/main.cpp src/libtommath.cpp -Wno-switch -Wno-macro-redefined -Wno-unused-value -DODIN_VERSION_RAW="dev-2024-04" -DGIT_SHA="510574aa7" -std=c++14 -I/usr/lib/llvm-17/include -std=c++17 -fno-exceptions -funwind-tables -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -L/usr/lib/llvm-17/lib -g -pthread -lm -lstdc++ -ldl /usr/lib/llvm-17/lib/libLLVM-17.so -Wl,-rpath=$ORIGIN -o odin
In file included from src/main.cpp:2:
src/common.cpp:30:10: fatal error: 'atomic' file not found
#include <atomic> // Because I wanted the C++11 memory order semantics, of which gb.h does not offer (because it was a C89 library)
^~~~~~~~
Context
I can't manage to compile Odin on Debian testing (Trixie), on a x86_64. But when I compile it inside a docker image (based on the same distribution) it works.
I've tried with llvm-17 and llvm-14, still the same. I've also installed libx32stdc++-12-dev, as stated on the Getting Started page.
odin reportoutput:generated from the version i built with the docker image :
Expected Behavior
It should compile.
Current Behavior
It doesn't find the "atomic" c++ header.
Failure Information (for bugs)
Steps to Reproduce
I can't reproduce it since it works inside docker, with the same distribution.
Dockerfile used :
Dockerfile.txt
Failure Logs