With this patch to master:
https://ci.appveyor.com/project/hebasto/bitcoin/builds/29096172
With this patch to master:
https://ci.appveyor.com/project/hebasto/bitcoin/builds/29096172
Seems that, while an unlikely build configuration, it’s still possible to build libevent without thread support (we obviously don’t support this):
0cmake EVENT_CMAKE_OPTIONS="-DEVENT__DISABLE_THREAD_SUPPORT=ON"
Though it’s curious that the AppVeyor error is a link-time error, not a compile-time error. So apparently in the header it does still define the function signature for evthread_use_windows_threads
.
Though it’s curious that the AppVeyor error is a link-time error, not a compile-time error.
The latest builds have compile-time errors.
I’ve confirmed I get the same compiler error after installing libevent
using the latest vcpkg port. The error is caused by the line below in the port file. Commenting that line out and reinstalling the libevent package allows the build to succeed.
0thread EVENT__DISABLE_THREAD_SUPPORT
One way to fix the build issue is to create a custom libevent port and then perform the vcpkg install using:
0vcpkg install --triplet x64-windows-static --overlay-ports=..\vcpkg-custom-ports\ports berkeleydb boost-filesystem boost-multi-index boost-signals2 boost-test boost-thread libevent rapidcheck zeromq double-conversion
Any ports in the ..\vcpkg-custom-ports\ports
take precedence.
vcpkg install ...
?