ld.lld: error: undefined symbol: std::__glibcxx_assert_fail(char const*, int, char const*, char const*)
>>> referenced by atomic_base.h:485 (/usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/bits/atomic_base.h:485)
>>> projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_csupport.cpp.o:(__kmpc_critical_with_hint)
>>> referenced by atomic_base.h:486 (/usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/bits/atomic_base.h:486)
>>> projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_csupport.cpp.o:(__kmpc_critical_with_hint)
>>> referenced by atomic_base.h:485 (/usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/bits/atomic_base.h:485)
>>> projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_csupport.cpp.o:(__kmpc_critical_with_hint)
>>> referenced 419 more times
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
LIBGL_ALWAYS_SOFTWARE=1 ./DDNet "gfx_backend opengl"
works fine, I'm guessing I somehow broke the drivercmake -S llvm -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DLLVM_OPTIMIZED_TABLEGEN=ON \
-DLLVM_ENABLE_PROJECTS="clang;lld;mlir;clang-tools-extra;lldb" \
-DLLVM_USE_LINKER=lld \
-DLLVM_USE_SPLIT_DWARF=ON \
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DLLVM_CCACHE_BUILD=ON
priv_net_create_socket
in src/base/system.cpp2023-04-14 14:09:08 I net: failed to bind socket with domain 2 and type 2 (10048 'Only one usage of each socket address (protocol/network address/port) is normally permitted. ')
2023-04-14 14:09:08 I net: failed to bind socket with domain 23 and type 2 (10049 'The requested address is not valid in its context. ')
2023-04-14 14:09:08 I net: failed to bind socket with domain 2 and type 2 (10048 'Only one usage of each socket address (protocol/network address/port) is normally permitted. ')
2023-04-14 14:09:08 I net: failed to bind socket with domain 23 and type 2 (10049 'The requested address is not valid in its context. ')
bindaddr
in your config? If so, remove that line.settings_ddnet.cfg
with a text editor and search for the textDDNet "bindaddr 192.168.0.100"
(with your local IP address)DummyStruct *Dummies[8] = {0}
for (auto& Dummy : Dummies)
std::cout << (Dummy == 0) << std::endl;
for (auto Dummy : Dummies)
std::cout << (Dummy == 0) << std::endl;