#error when building
1 messages · Page 1 of 1 (latest)
How does including atomic change the semantics
I dont think i understand you, i added tags to show what comes as error when i try to build. I had to retype the error but i can also add image later or copy error stack. That "because i wanted" to comment is part of an error.
oh my bad, i thought you added that line
what system you on?
PopOs 22.04
here is the full message :
./build_odin.sh debug
- clang++ src/main.cpp src/libtommath.cpp -Wno-switch -Wno-macro-redefined -Wno-unused-value '-DODIN_VERSION_RAW="dev-2022-12"' '-DGIT_SHA="0829ac30"' -std=c++14 -I/usr/lib/llvm-13/include -std=c++14 -fno-exceptions -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -L/usr/lib/llvm-13/lib -g -pthread -lm -lstdc++ -ldl /usr/lib/llvm-13/lib/libLLVM-13.so '-Wl,-rpath=$ORIGIN' -o odin
In file included from src/main.cpp:3:
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)
^~~~~~~~
1 error generated.
make: *** [Makefile:10: debug] Error 1
i too cannot build odin, it was working before llvm 15, same issue now with cannot find <atomic.h> Also PopOS 22.04.
if i run apt-mark showmanual, i have the following packages (deleted most i thought irrelevant):
build-essential
clang
clang-15
clangd-15
cmake
lld
lld-15
lldb-15
llvm
llvm-14-dev
llvm-dev
lsb-release
python3
python3-pip
qemu
sharutils
sysvinit-utils
relevant maybe..? /usr/include/llvm-14/llvm/support. def not in the call paths. mine is same as above except i have 14 instead of 13.
The odin wont work with llvm15, there were some breaking changes. Atm i downloades binary, and use it like that. Building from source with llvm 13 or 14 aways fails
I am unable to say what is the issue at the moment, on fedora it works with both llvm 14 and 13,but on pop_os it wont work. Maybe its how they package it. I hope someone can provide more context what doea that error message means.
I had this issue in Pop_OS, I solved it installing this package sudo apt-get install libstdc++-12-dev
Resolves for me, hooray!
Thanks man,this worked. Maybe webpage should add this as one of the dependencies when building?