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

[request] andreasbuhr-cppcoro/latest #16621

Closed
akshit-sharma opened this issue Mar 19, 2023 · 0 comments · Fixed by #20611
Closed

[request] andreasbuhr-cppcoro/latest #16621

akshit-sharma opened this issue Mar 19, 2023 · 0 comments · Fixed by #20611

Comments

@akshit-sharma
Copy link
Contributor

Package Name/Version

andreasbuhr-cppcoro/latest

Changelog

https://github.com/lewissbaker/cppcoro

Context about the new update

The version which is on conan.io fails to compile with clang.
For conan install andreasbuhr-cppcoro/cci.20210113@_/_ --profile clang --build=missing, it says

Output
andreasbuhr-cppcoro/cci.20210113: WARN: Package binary is corrupted, removing: ce7925f094948675ea74d23df83a42941d85bfdd
Installing package: andreasbuhr-cppcoro/cci.20210113
Requirements
andreasbuhr-cppcoro/cci.20210113 from 'conancenter' - Cache
Packages
andreasbuhr-cppcoro/cci.20210113:ce7925f094948675ea74d23df83a42941d85bfdd - Build

Installing (downloading, building) binaries...
andreasbuhr-cppcoro/cci.20210113: WARN: Build folder is dirty, removing it: /home/akshit/.conan/data/andreasbuhr-cppcoro/cci.20210113/_/_/build/ce7925f094948675ea74d23df83a42941d85bfdd
andreasbuhr-cppcoro/cci.20210113: Copying sources to build folder
andreasbuhr-cppcoro/cci.20210113: Building your package in /home/akshit/.conan/data/andreasbuhr-cppcoro/cci.20210113/_/_/build/ce7925f094948675ea74d23df83a42941d85bfdd
andreasbuhr-cppcoro/cci.20210113: Generator cmake created conanbuildinfo.cmake
andreasbuhr-cppcoro/cci.20210113: Aggregating env generators
andreasbuhr-cppcoro/cci.20210113: Calling build()
-- The CXX compiler identification is Clang 15.0.7
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Conan: called by CMake conan helper
-- Conan: called inside local cache
-- Conan: Adjusting output directories
-- Conan: Using cmake global configuration
-- Conan: Adjusting default RPATHs Conan policies
-- Conan: Adjusting language standard
-- Conan: Adjusting fPIC flag (ON)
-- Conan: Compiler Clang>=8, checking major version 15
-- Conan: Checking correct version: 15
-- Conan: C++ stdlib: libstdc++11
C++ version not set. Defaulting to CMAKE_CXX_STANDARD=20
-- Performing Test _CXX_COROUTINES_SUPPORTS_MS_FLAG
-- Performing Test _CXX_COROUTINES_SUPPORTS_MS_FLAG - Failed
-- Performing Test _CXX_COROUTINES_SUPPORTS_MS_HEAPELIDE_FLAG
-- Performing Test _CXX_COROUTINES_SUPPORTS_MS_HEAPELIDE_FLAG - Failed
-- Performing Test _CXX_COROUTINES_SUPPORTS_TS_FLAG
-- Performing Test _CXX_COROUTINES_SUPPORTS_TS_FLAG - Success
-- Performing Test _CXX_COROUTINES_SUPPORTS_CORO_FLAG
-- Performing Test _CXX_COROUTINES_SUPPORTS_CORO_FLAG - Failed
-- Looking for C++ include coroutine
-- Looking for C++ include coroutine - found
-- Performing Test _CXX_COROUTINES_FINAL_HEADER_COMPILES
-- Performing Test _CXX_COROUTINES_FINAL_HEADER_COMPILES - Success
-- Performing Test CXX_COROUTINES_NO_AWAIT_NEEDED
-- Performing Test CXX_COROUTINES_NO_AWAIT_NEEDED - Success
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

CMAKE_EXPORT_NO_PACKAGE_REGISTRY
CMAKE_INSTALL_BINDIR
CMAKE_INSTALL_DATAROOTDIR
CMAKE_INSTALL_INCLUDEDIR
CMAKE_INSTALL_LIBDIR
CMAKE_INSTALL_LIBEXECDIR
CMAKE_INSTALL_OLDINCLUDEDIR
CMAKE_INSTALL_SBINDIR


-- Build files have been written to: /home/akshit/.conan/data/andreasbuhr-cppcoro/cci.20210113/_/_/build/ce7925f094948675ea74d23df83a42941d85bfdd
[ 15%] Building CXX object source_subfolder/lib/CMakeFiles/cppcoro.dir/async_mutex.cpp.o
[ 26%] Building CXX object source_subfolder/lib/CMakeFiles/cppcoro.dir/cancellation_token.cpp.o
[ 15%] Building CXX object source_subfolder/lib/CMakeFiles/cppcoro.dir/cancellation_state.cpp.o
[ 26%] Building CXX object source_subfolder/lib/CMakeFiles/cppcoro.dir/async_manual_reset_event.cpp.o
[ 26%] Building CXX object source_subfolder/lib/CMakeFiles/cppcoro.dir/async_auto_reset_event.cpp.o
[ 31%] Building CXX object source_subfolder/lib/CMakeFiles/cppcoro.dir/cancellation_source.cpp.o
[ 36%] Building CXX object source_subfolder/lib/CMakeFiles/cppcoro.dir/cancellation_registration.cpp.o
[ 47%] Building CXX object source_subfolder/lib/CMakeFiles/cppcoro.dir/ip_address.cpp.o
[ 47%] Building CXX object source_subfolder/lib/CMakeFiles/cppcoro.dir/lightweight_manual_reset_event.cpp.o
[ 52%] Building CXX object source_subfolder/lib/CMakeFiles/cppcoro.dir/ipv4_address.cpp.o
[ 57%] Building CXX object source_subfolder/lib/CMakeFiles/cppcoro.dir/ip_endpoint.cpp.o
[ 63%] Building CXX object source_subfolder/lib/CMakeFiles/cppcoro.dir/ipv4_endpoint.cpp.o
[ 68%] Building CXX object source_subfolder/lib/CMakeFiles/cppcoro.dir/ipv6_address.cpp.o
[ 73%] Building CXX object source_subfolder/lib/CMakeFiles/cppcoro.dir/ipv6_endpoint.cpp.o
[ 78%] Building CXX object source_subfolder/lib/CMakeFiles/cppcoro.dir/static_thread_pool.cpp.o
[ 84%] Building CXX object source_subfolder/lib/CMakeFiles/cppcoro.dir/auto_reset_event.cpp.o
[ 89%] Building CXX object source_subfolder/lib/CMakeFiles/cppcoro.dir/spin_wait.cpp.o
[ 94%] Building CXX object source_subfolder/lib/CMakeFiles/cppcoro.dir/spin_mutex.cpp.o
/home/akshit/.conan/data/andreasbuhr-cppcoro/cci.20210113/_/_/build/ce7925f094948675ea74d23df83a42941d85bfdd/source_subfolder/lib/static_thread_pool.cpp:670:23: error: no member named 'exchange' in namespace 'std'; did you mean '__exchange'?
auto* next = std::exchange(tail->m_next, head);
~~~~~^~~~~~~~
__exchange
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/move.h:157:5: note: '__exchange' declared here
__exchange(_Tp& __obj, _Up&& __new_val)
^
/home/akshit/.conan/data/andreasbuhr-cppcoro/cci.20210113/_/_/build/ce7925f094948675ea74d23df83a42941d85bfdd/source_subfolder/lib/static_thread_pool.cpp:671:17: error: no member named 'exchange' in namespace 'std'; did you mean '__exchange'?
head = std::exchange(tail, next);
~~~~~^~~~~~~~
__exchange
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/move.h:157:5: note: '__exchange' declared here
__exchange(_Tp& __obj, _Up&& __new_val)
^
2 errors generated.
gmake[2]: *** [source_subfolder/lib/CMakeFiles/cppcoro.dir/build.make:272: source_subfolder/lib/CMakeFiles/cppcoro.dir/static_thread_pool.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:113: source_subfolder/lib/CMakeFiles/cppcoro.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
andreasbuhr-cppcoro/cci.20210113:
andreasbuhr-cppcoro/cci.20210113: ERROR: Package 'ce7925f094948675ea74d23df83a42941d85bfdd' build failed
andreasbuhr-cppcoro/cci.20210113: WARN: Build folder /home/akshit/.conan/data/andreasbuhr-cppcoro/cci.20210113/_/_/build/ce7925f094948675ea74d23df83a42941d85bfdd
ERROR: andreasbuhr-cppcoro/cci.20210113: Error in build() method, line 82
cmake.build()
ConanException: Error 2 while executing cmake --build '/home/akshit/.conan/data/andreasbuhr-cppcoro/cci.20210113/_/_/build/ce7925f094948675ea74d23df83a42941d85bfdd' '--' '-j12'
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=clang
compiler.libcxx=libstdc++11
compiler.version=15
os=Linux
os_build=Linux
[options]
[build_requires]
[env]
CC=/usr/bin/clang
CXX=/usr/bin/clang++

This error is fixed in the updated version of the library.

Thanks

@akshit-sharma akshit-sharma changed the title [request] andreasbuhr-cppcoro/cci.20210113 [request] andreasbuhr-cppcoro/latest Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant