trantor
trantor copied to clipboard
Build error with Clang 16
% ./build.sh
Deleted folder: ./build
Created building folder: ./build
Entering folder: ./build
Start building trantor ...
-- The C compiler identification is Clang 16.0.6
-- The CXX compiler identification is Clang 16.0.6
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/local/libexec/ccache/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/local/libexec/ccache/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) in CMakeLists.txt:
A logical block opening on the line
/home/vedranmiletic/workspace/drogon/trantor/CMakeLists.txt:53 (if)
closes on the line
/home/vedranmiletic/workspace/drogon/trantor/CMakeLists.txt:55 (endif)
with mis-matching arguments.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Found OpenSSL: /usr/lib/libcrypto.so (found version "3.0.10")
-- Trantor using SSL library: OpenSSL
-- Found c-ares: /usr/local/include
-- c-ares found!
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Doxygen: /usr/local/bin/doxygen (found version "1.9.6") found components: doxygen dot missing components: dia
-- Configuring done (1.8s)
-- Generating done (0.0s)
-- Build files have been written to: /home/vedranmiletic/workspace/drogon/trantor/build
[ 3%] Building CXX object CMakeFiles/trantor.dir/trantor/utils/AsyncFileLogger.cc.o
[ 6%] Building CXX object CMakeFiles/trantor.dir/trantor/utils/ConcurrentTaskQueue.cc.o
[ 10%] Building CXX object CMakeFiles/trantor.dir/trantor/utils/Date.cc.o
[ 13%] Building CXX object CMakeFiles/trantor.dir/trantor/utils/LogStream.cc.o
[ 16%] Building CXX object CMakeFiles/trantor.dir/trantor/utils/Logger.cc.o
/home/vedranmiletic/workspace/drogon/trantor/trantor/utils/Logger.cc:396:5: error: expression result unused [-Werror,-Wunused-value]
(bool)logger;
^ ~~~~~~
1 error generated.
*** Error code 1
Stop.
make[2]: stopped in /home/vedranmiletic/workspace/drogon/trantor/build
*** Error code 1
Stop.
make[1]: stopped in /home/vedranmiletic/workspace/drogon/trantor/build
*** Error code 1
Stop.
make: stopped in /home/vedranmiletic/workspace/drogon/trantor/build
This is on FreeBSD, which might or might not be relevant.