Commit Graph

250 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) 7 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
8 months ago
r4sas a2726cf206
[cmake] print commit-based version if option is used
Signed-off-by: r4sas <r4sas@i2pmail.org>
12 months 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
Vort 10dfe39f5f
Fix architecture detection in cmake build (#1890) 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 385e592045 TargetArch.cmake: fix info re OSX arch support, update copyright year 1 year ago
R4SAS 3cee8bfcb2
Update tests and corresponding makefiles (#1862) 1 year ago
R4SAS 446bbf6b93
Merge pull request #1812 from barracuda156/tests
Add implementation of tests with CMake, plus a few minor fixes
1 year ago
Eric Long 54b7d4ef32 Fix CheckAtomic.cmake 1 year ago
barracuda156 aa5e6400e4 CMakeLists: use a fix for atomics on macOS PPC, not PPC in general 1 year ago
barracuda156 61bcfebcc8 Add CMake support for tests 1 year ago
R4SAS 8df4082d6f
[cmake] Use std::atomic on PowerPC inside boost (#1726)
Signed-off-by: R4SAS <r4sas@i2pmail.org>
1 year ago
Sergey Fedorov 7f98a8b972
Fix definitions for Darwin PPC; do not use pthread_setname_np on unsupported OS versions (#1797)
* Correct define for Darwin PPC is __POWERPC__

* util.cpp: do not use pthread_setname_np on unsupported macOS versions
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 39f14fd952
[cmake] add GetGitRevisionDecription module
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 29a4366dcf
fix mingw build script
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 bd00112562 update windows build script
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 b7e20b9b86
2.41.0
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS a5d6972913
[win] update build script license year
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS e4cb42c599
[win] add binary signing support
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 27116b9f30
2.40.0
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS 8a8e328fcf
[build] include contrib/webconsole to windows packages
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS 0c25e8f1eb [build] changes in windows build script
Signed-off-by: R4SAS <r4sas@i2pmail.org>
3 years ago
r4sas a3b172bbcb [makefile] change back directories creation, create them before compiling object files 3 years ago
r4sas ff0e23d2c4
[cmake] use GNUInstallDirs for libraries destination path (#1672)
Signed-off-by: r4sas <r4sas@i2pmail.org>
3 years ago
R4SAS 6d2c9e367b
remove unused CI and docker files
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