Commit Graph

186 Commits (openssl)

Author SHA1 Message Date
Fabrice Fontaine 6b33250c59 build/CMakeLists.txt: enable C language
Detection of libatomic is broken since version 2.47.0 and
b7f0d87daf
because C language is not enabled anymore:

-- Looking for __atomic_fetch_add_4 in atomic
-- Looking for __atomic_fetch_add_4 in atomic - not found
CMake Error at cmake_modules/CheckAtomic.cmake:59 (message):
  Host compiler appears to require libatomic, but cannot find it.
Call Stack (most recent call first):
  CMakeLists.txt:54 (include)

Indeed if C language is not enabled, the test will be run with the C++
compiler resulting in the following error:

Building CXX object CMakeFiles/cmTC_03d01.dir/CheckFunctionExists.cxx.o
        /home/fabrice/buildroot/output/host/bin/x86_64-linux-g++ --sysroot=/home/fabrice/buildroot/output/host/x86_64-buildroot-linux-gnu/sysroot   -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O1 -g0 -D_FORTIFY_SOURCE=2 -DCHECK_FUNCTION_EXISTS=__atomic_fetch_add_4  -DNDEBUG -o CMakeFiles/cmTC_03d01.dir/CheckFunctionExists.cxx.o -c /home/fabrice/buildroot/output/build/i2pd-2.49.0/build/CMakeFiles/CMakeScratch/TryCompile-NApnv9/CheckFunctionExists.cxx
        <command-line>: error: new declaration ‘char __atomic_fetch_add_4()’ ambiguates built-in declaration ‘unsigned int __atomic_fetch_add_4(volatile void*, unsigned int, int)’ [-fpermissive]

whereas with a C compiler, we'll get:

Building C object CMakeFiles/cmTC_7e47b.dir/CheckFunctionExists.c.o
        /home/fabrice/buildroot/output/host/bin/x86_64-linux-gcc --sysroot=/home/fabrice/buildroot/output/host/x86_64-buildroot-linux-gnu/sysroot   -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O1 -g0 -D_FORTIFY_SOURCE=2 -DCHECK_FUNCTION_EXISTS=__atomic_fetch_add_4  -DNDEBUG -o CMakeFiles/cmTC_7e47b.dir/CheckFunctionExists.c.o -c /home/fabrice/buildroot/output/build/i2pd-2.49.0/build/CMakeFiles/CMakeScratch/TryCompile-e0zFMG/CheckFunctionExists.c
        <command-line>: warning: conflicting types for built-in function ‘__atomic_fetch_add_4’; expected ‘unsigned int(volatile void *, unsigned int,  int)’ [-Wbuiltin-declaration-mismatch]

Fix #1908

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
6 months ago
Vort 0a519d8072 Fix MSVC compilation for std::max 7 months ago
hfsfox 0cf656cd76
Add Haiku OS support (#1970) 8 months ago
R4SAS 7b6aa41ca8
CPU: remove AVX code, switch to __builtin for AES detection (#1959)
* [cpu] remove avx detect and code blocks, try to switch to __builtin
* [cpu] use __builtin_* only on x86 systems
* [cpu] perform check in separate function
* [cpu] set AES definition on MSVC
* update x86 and aes support checks at compile time
* [cmake] update comment about AES on MSVC
9 months ago
r4sas a2726cf206
[cmake] print commit-based version if option is used
Signed-off-by: r4sas <r4sas@i2pmail.org>
1 year ago
R4SAS e96f0bfb14
[msvc] fix warnings, revert cmake boost libs linking list
Signed-off-by: R4SAS <r4sas@i2pmail.org>
1 year ago
R4SAS 8677cd54bd
[cmake] win32: do not use static boost libs without WITH_STATIC
Signed-off-by: R4SAS <r4sas@i2pmail.org>
1 year ago
R4SAS b6d1d8117b
[GHA] Windows MSVC workflow (#1904) 1 year ago
R4SAS 0a8da6bc2f
[cmake] msvc build revision
Signed-off-by: R4SAS <r4sas@i2pmail.org>
1 year ago
Vort 231c02c058 Make Win32NetState compatible with MSVC 1 year ago
Vort a199084c99 Add MSVC support to CMake build 1 year ago
R4SAS b7f0d87daf
GHA and Cmake changes (#1888)
Done with Vort's (https://github.com/Vort) cooperation

Signed-off-by: R4SAS <r4sas@i2pmail.org>
1 year ago
barracuda156 00c75a7afa CMakeLists.txt: update comment re Boost and atomics on PPC 1 year ago
barracuda156 aa5e6400e4 CMakeLists: use a fix for atomics on macOS PPC, not PPC in general 2 years ago
barracuda156 61bcfebcc8 Add CMake support for tests 2 years ago
R4SAS 8df4082d6f
[cmake] Use std::atomic on PowerPC inside boost (#1726)
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
orignal 2470ba76f0 fixed cmake build 2 years ago
orignal d32475440a fixed cmake build 2 years ago
R4SAS 3a5295dbb9
[cmake] remove unnecessary target link
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS 4d59df9f59
[cmake] add support of getting version from git (as in makefiles)
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS 9b2ac4349e [cmake] use Threads::Threads (closes #1735)
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS 9c87fe79ea
[openssl] suppress deprecation messages
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS 70dca81c40 dropped MESHNET build option
Dropping MESHNET build option due to lack of usage. That change won't
affect on usage with currently supported Yggdrasil network.

Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS dceb0fb8c5
[cmake] add warning about MESHNET option
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS 05c1856389
[cmake] do not use CMAKE_OSX_ARCHITECTURES for check
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS dc5cba60d1
[cmake] add MAC_OSX define for Mac
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS a272a2cb7e
[cmake] update min version, drop PCH
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS 43b990afe6
[cmake] disable deprecation warning when OpenSSL 3 is used
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS 31242401e5 [cmake] update TargetArch.cmake (#1724)
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
r4sas ff0e23d2c4
[cmake] use GNUInstallDirs for libraries destination path (#1672)
Signed-off-by: r4sas <r4sas@i2pmail.org>
3 years ago
R4SAS 9fb8e8a582
[cmake] build translations as library
Signed-off-by: R4SAS <r4sas@i2pmail.org>
3 years ago
R4SAS 0292227a6b
[cmake] switch to glob instead filling sources list
Signed-off-by: R4SAS <r4sas@i2pmail.org>
3 years ago
R4SAS ebce1e34d8
[i18n] enable Ukrainian in source
Signed-off-by: R4SAS <r4sas@i2pmail.org>
3 years ago
R4SAS 919bf4e144
[i18n] add cmake build
Signed-off-by: R4SAS <r4sas@i2pmail.org>
3 years ago
R4SAS 62cd9fffa3
Automate AES-NI and AVX detection on runtime, make it default on x86-based systems (#1578)
Rework CPU extensions detection code and build with AES-NI and AVX support by default
4 years ago
orignal 57d6c7a3b3 Added TunnelConfig.cpp. Removed CryptoWroker.h 4 years ago
orignal faae2709d9 removed NTCP 4 years ago
R4SAS db6a0e6ad9
[cmake] remove windows build support (#1517)
Removes support for MSVC, MSYS, MinGW and included NSIS installer in cmake
4 years ago
R4SAS a9436aa9af drop i2lua
Signed-off-by: R4SAS <r4sas@i2pmail.org>
4 years ago
R4SAS dd8200e8b0
cleanup websocks
Signed-off-by: R4SAS <r4sas@i2pmail.org>
4 years ago
R4SAS 2f56547d5f
Merge pull request #1477 from PurpleI2P/drop-websockets
drop websockets support
4 years ago
R4SAS 2ac2da41cf
cmake: fix else statement 4 years ago
R4SAS ed574f9d79
use C++17 if available when configuring with cmake 4 years ago
R4SAS bca0809918
cleanup removed websockets funtions
Signed-off-by: R4SAS <r4sas@i2pmail.org>
4 years ago
R4SAS 00db527377
drop websockets support
Signed-off-by: R4SAS <r4sas@i2pmail.org>
4 years ago
orignal f651baab25 ECIESX25519AEADRatchetSession added 4 years ago
orignal 29f0e10411 Elligator added 5 years ago
Alexey Korepanov 7147a3694c link libi2pd to boost and zlib 5 years ago
orignal 39400fd381 move key blinding code from LeaseSet.cpp to Blinding.cpp 5 years ago
l-n-s 1db4076bbd CMake: bump version of ZLib 5 years ago