Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error with Clang 16 #296

Open
vedranmiletic opened this issue Oct 8, 2023 · 0 comments
Open

Build error with Clang 16 #296

vedranmiletic opened this issue Oct 8, 2023 · 0 comments

Comments

@vedranmiletic
Copy link
Collaborator

% ./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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant