Commit Graph

68 Commits

Author SHA1 Message Date
Andrew Noyes 666075cdf2 Add a hint for the GO path
Before this, cmake would not find the go binary in the docker image.
After this, cmake finds it.
2022-10-24 09:26:15 -07:00
Andrew Noyes e363030a35 Re-enable aws sdk + arm
This is fixed since f13c8525e3
2022-10-07 10:54:38 -07:00
Andrew Noyes 129edebb91 Limit BUILD_AWS_BACKUP to x86_64 for now
With aarch64, in the current docker image, linking curl statically doesn't work yet.

This is the diagnostic:

```
fdbclient/awssdk-build/curl/lib/strerror.c:32:6: error: #error "strerror_r MUST be either POSIX, glibc or vxworks-style"
2022-09-22 16:05:30   #    error "strerror_r MUST be either POSIX, glibc or vxworks-style"
2022-09-22 16:05:30        ^~~~~
```

The root cause is that curl's cmake feature detection logic gets
confused since it can't build binaries that execute successfully with
the link flags it wants:

```
$ cc test.c -lssl
$ ./a.out
./a.out: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
```
2022-09-22 09:35:38 -07:00
Russell Sears a4fd0c0a9e
Fix clang build in current dev container (#8121)
* Fix clang build in current dev container

* Fix RocksDB build w/ clang

* Fix cmake warning about download timestamp semantics

* Disable RocksDB build on windows.
2022-09-12 12:03:40 -05:00
1inker db888245ed
Pass compilers choice to subprojects (#8135) 2022-09-09 11:53:48 -07:00
Andrew Noyes 52e9990d32 Python_Interpreter_FOUND -> Python3_Interpreter_FOUND 2022-07-29 14:57:29 -07:00
Andrew Noyes efc3045834 Disallow python2 for cmake scripts
The fdb c shim build requires python3. Let's not allow python2 to get
used there.

Otherwise we can see something like this:
```
FAILED: bindings/c/libfdb_c.so.init.c bindings/c/libfdb_c.so.tramp.S
cd /home/anoyes/workspace/foundationdb/build/bindings/c && /usr/bin/python2.7 /home/anoyes/workspace/foundationdb/contrib/Implib.so/implib-gen.py --target aarch64 --outdir /home/anoyes/workspace/foundationdb/build/bindings/c --dlopen-callback=fdb_shim_dlopen_callback /home/anoyes/workspace/foundationdb/build/lib/libfdb_c.so
  File "/home/anoyes/workspace/foundationdb/contrib/Implib.so/implib-gen.py", line 27
    sys.stderr.write(f'{me}: warning: {msg}\n')
```
2022-07-29 14:57:29 -07:00
Mohamed Oulmahdi 6fcbf5784c Formatting 2022-06-30 00:10:47 +02:00
Mohamed Oulmahdi 7af9b2fae3 Enhance TOML dependencies 2022-06-29 23:45:28 +02:00
Andrew Noyes 39e085938c Use libcoro for valgrind 2022-05-12 09:47:51 -07:00
sfc-gh-tclinkenbeard 8ea68154bf Remove WITH_TLS CMake variable 2022-05-02 22:45:00 -07:00
sfc-gh-tclinkenbeard ea00ae3a25 Remove DISABLE_TLS CMake argument 2022-05-02 22:31:46 -07:00
Sam Gwydir 5403a29ecb
add WolfSSL support (#6682)
remove extraneous include
2022-04-28 16:53:38 -07:00
Josh Slocum ace2750ae3 Build AWS SDK as part of FDB, and use it to acquire blob credentials. This supports IAM role-based authentication, in addition to all existing credential types. 2022-03-24 10:09:06 -05:00
Aaron Molitor 96dd86ebf8 update RocskDB and Boost
add Finduring, and include into fdbserver
add BOOST asio/uring settings to fdbserver compile
move portable rocks, liburing up to be configurable at build time.
2022-02-09 10:48:18 -06:00
Mohamed Oulmahdi 0ca3d96506 Reintroduce HAVE_OPENSSL parameter 2022-01-17 19:10:20 +01:00
Mohamed Oulmahdi b0f4c65388 Enable TLS Support for Windows (main) 2022-01-17 09:46:33 +01:00
Markus Pilman 8b77c8d79a Remove unused OpenSSL code 2022-01-11 10:34:37 -08:00
Andrew Noyes 79116ea887 Use boost coroutines by default for sanitizers 2021-12-08 16:44:35 -08:00
Andrew Noyes b6fd402a3c Add option to use boost or libcoro
By default, use boost everywhere except windows and linux x86 (for
performance reasons)
2021-11-29 13:14:15 -08:00
Pierre Zemb b1dce03e0d
Add warning on CMake when bindings requirements are not reached 2021-08-19 17:39:03 +02:00
Eric Dong c6ed0f94bf Fix the wording of a CMake message for SSL on Windows 2021-08-13 13:02:49 -07:00
Pierre Zemb 415bf2afc0
add CMake's option for bindings 2021-08-05 21:55:45 +02:00
Andrew Noyes ccc8404faa Disable go bindings for sanitizer builds 2021-03-09 20:55:41 +00:00
A.J. Beamon aaf0a9aa7b Merge branch 'release-6.3' into merge-release-6.3-into-master
# Conflicts:
#	build/docker-compose.yaml
#	cmake/ConfigureCompiler.cmake
#	fdbclient/FileBackupAgent.actor.cpp
#	fdbrpc/AsyncFileCached.actor.h
#	fdbrpc/IAsyncFile.h
#	fdbrpc/IRateControl.h
#	fdbrpc/simulator.h
#	fdbserver/KeyValueStoreSQLite.actor.cpp
#	fdbserver/storageserver.actor.cpp
#	fdbservice/ServiceBase.cpp
2021-02-08 12:58:34 -08:00
A.J. Beamon b70c69e099 Address review note that some variables need to be set earlier. 2021-02-08 10:42:07 -08:00
A.J. Beamon 67e783acf8 Merge branch 'release-6.2' into merge-release-6.2-into-release-6.3
# Conflicts:
#	cmake/CompileBoost.cmake
#	cmake/FDBComponents.cmake
#	fdbrpc/AsyncFileCached.actor.h
#	fdbrpc/simulator.h
#	fdbserver/KeyValueStoreSQLite.actor.cpp
#	fdbserver/Knobs.cpp
#	fdbserver/Knobs.h
#	fdbserver/storageserver.actor.cpp
#	flow/Knobs.h
#	flow/network.h
2021-02-08 09:20:28 -08:00
Russell Sears 85e21c1ba1 CMake support for BoringSSL 2021-01-22 22:45:51 +00:00
Markus Pilman b149069b58 link statically against jemalloc 2021-01-21 13:35:27 -07:00
Daniel Smith 7d1db8a66e Restore building RocksDB by default with GCC 2020-11-05 09:11:58 -08:00
Daniel Smith 6b1bbc49e3 Restore building RocksDB by default with GCC 2020-11-05 17:07:53 +00:00
Daniel Smith 8ed7d296b4 Fix the ability to disable building RocksDB with GCC 2020-11-04 14:58:24 -08:00
Daniel Smith b1194801b1 Fix the ability to disable building RocksDB with GCC 2020-11-04 21:59:14 +00:00
Markus Pilman 5c506908ab
Update cmake/FDBComponents.cmake 2020-10-22 14:13:24 -06:00
Markus Pilman 4b12b9fc01 Fix toml11 cmake 2020-10-22 13:27:06 -06:00
Meng Xu a3c861b59d
Merge pull request #3777 from apple/release-6.3
Merge Release 6.3 into master
2020-09-14 10:32:50 -07:00
Daniel Smith 1b4aead939 Enable the RocksDB engine by default with GCC 2020-09-08 16:30:23 +00:00
Alex Miller 0a8f61b967 Make TOML mandatory. 2020-07-12 19:43:38 -07:00
Alex Miller f08f0255cc Copy paste cmake code until it seems like it maybe downloads TOML11 2020-07-12 14:47:39 -07:00
Daniel Smith 31db90963d factor out duplicate include directories 2020-06-10 21:45:40 +00:00
Daniel Smith 9b3a5f8e13
Fix typo
Co-authored-by: Markus Pilman <markus.pilman@snowflake.com>
2020-06-10 17:34:00 -04:00
Daniel Smith dae91bb05f Add RocksDB to FDBComponents.cmake 2020-06-10 21:07:49 +00:00
Dave Cottlehuber 99d6e9497b cmake: skip OpenJDK on FreeBSD 2020-04-30 18:11:23 +00:00
Andrew Noyes 27043ee92f
Update cmake/FDBComponents.cmake
Co-Authored-By: Markus Pilman <markus@pilman.ch>
2020-04-29 15:45:33 -07:00
Andrew Noyes 05614d33cc Add include(CheckSymbolExists) 2020-04-29 22:16:43 +00:00
Andrew Noyes 7659b1bff6 Use check_symbol_exists 2020-04-29 15:11:35 -07:00
Andrew Noyes c62a4aef97 Upgrade TLS symbol not found message to WARNING 2020-04-29 15:06:02 -07:00
Andrew Noyes fee9a5117f Don't config TLS if OpenSSL is missing OPENSSL_INIT_NO_ATEXIT 2020-04-25 17:59:17 -07:00
A.J. Beamon 083e3f38f3
Merge pull request #2688 from schedutron/py3doc-cmake
Have CMake build docs with Python3
2020-02-24 11:53:41 -08:00
Alvin Moore 3354e6b278 Enabled TLS for CMake Mac builds
Disabled TLS for CMake Windows builds
2020-02-21 11:23:51 -08:00