#error when building

1 messages · Page 1 of 1 (latest)

pale roost
#

[Start of error]
Src/common.cpp; 30:10 fatal error atomic file not found

#include atomic //because i wanted the c++11 memory order semantics, of ehich gb.h does not offer (because it was c89 library)
[End of error]

This is more or less the error i get when i try building the odin.

zinc pollen
pale roost
zinc pollen
#

what system you on?

pale roost
#

PopOs 22.04

pale roost
#

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
untold minnow
#

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
untold minnow
#

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.

pale roost
#

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.

last briar
#

I had this issue in Pop_OS, I solved it installing this package sudo apt-get install libstdc++-12-dev

pale roost