You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is Clang 11.0.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/local/bin/clang++
-- Check for working CXX compiler: /usr/local/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- /tmp/foundationdb /tmp/build
-- Setting build type to 'Release' as none was specified
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Looking for stdatomic.h
-- Looking for stdatomic.h - not found
CMake Error at cmake/ConfigureCompiler.cmake:89 (message):
C compiler does not support c11 atomics
Call Stack (most recent call first):
CMakeLists.txt:64 (include)
-- Configuring incomplete, errors occurred!
See also "/tmp/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/build/CMakeFiles/CMakeError.log".
CMakeError.log:
Determining if the pthread_create exist failed with the following output:
Change Dir: /tmp/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/ninja" "cmTC_99735"
[1/2] Building C object CMakeFiles/cmTC_99735.dir/CheckSymbolExists.c.o
[2/2] Linking C executable cmTC_99735
FAILED: cmTC_99735
: && /usr/bin/cc CMakeFiles/cmTC_99735.dir/CheckSymbolExists.c.o -o cmTC_99735 && :
CMakeFiles/cmTC_99735.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
File /tmp/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the include file stdatomic.h exists failed with the following output:
Change Dir: /tmp/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/ninja" "cmTC_7ac2d"
[1/2] Building C object CMakeFiles/cmTC_7ac2d.dir/CheckIncludeFile.c.o
FAILED: CMakeFiles/cmTC_7ac2d.dir/CheckIncludeFile.c.o
/usr/bin/cc -Istdlib.h -Imalloc.h -std=gnu11 -o CMakeFiles/cmTC_7ac2d.dir/CheckIncludeFile.c.o -c CheckIncludeFile.c
CheckIncludeFile.c:1:23: fatal error: stdatomic.h: No such file or directory
#include <stdatomic.h>
^
compilation terminated.
ninja: build stopped: subcommand failed.
The text was updated successfully, but these errors were encountered:
There is some missing documentation on how to use the official dockerfile to build FoundationDB. You need to source some files in order to use the right compiler. Here’s an example taken from some github actions:
I'm getting an error when I try to build FoundationDB within
foundationdb/build
Docker container (latest
tag).What I did:
docker run -ti --rm foundationdb/build
cd /tmp
git clone https://github.com/apple/foundationdb.git
mkdir build
cd build
cmake -G Ninja /tmp/foundationdb
Output:
CMakeError.log:
The text was updated successfully, but these errors were encountered: