Unable to compile with libc++-6.0 #22324

issue MarcoFalke openend this issue on June 23, 2021
  1. MarcoFalke commented at 11:52 am on June 23, 2021: member

    Steps to reproduce on current master (567670bec5ecf9bc252e91370382be53fd81ccee):

     0# ./configure CC=clang CXX="clang++ -stdlib=libc++"
     1...
     2
     3
     4# make V=1
     5Making all in src
     6make[1]: Entering directory '/bitcoin/src'
     7make[2]: Entering directory '/bitcoin/src'
     8make[3]: Entering directory '/bitcoin'
     9make[3]: Leaving directory '/bitcoin'
    10/usr/bin/ccache clang++ -stdlib=libc++ -std=c++17 -DHAVE_CONFIG_H -I. -I../src/config   -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -I. -I./secp256k1/include  -DBOOST_SP_USE_STD_ATOMIC -DBOOST_AC_USE_STD_ATOMIC -I/usr/include -I./leveldb/include -I./leveldb/helpers/memenv -I./univalue/include    -pthread -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -DPROVIDE_FUZZ_MAIN_FUNCTION -fdebug-prefix-map=/bitcoin/src=. -Wstack-protector -fstack-protector-all -Wall -Wextra -Wgnu -Wformat -Wformat-security -Wvla -Wshadow-field -Wswitch -Wthread-safety -Wrange-loop-analysis -Wredundant-decls -Wunused-variable -Wunused-member-function -Wdate-time -Wconditional-uninitialized -Wsign-compare -Woverloaded-virtual -Wunreachable-code-loop-increment -Wno-unused-parameter -Wno-self-assign -Wno-unused-local-typedef -Wno-implicit-fallthrough    -fPIE -g -O2 -MT libbitcoin_server_a-httprpc.o -MD -MP -MF .deps/libbitcoin_server_a-httprpc.Tpo -c -o libbitcoin_server_a-httprpc.o `test -f 'httprpc.cpp' || echo './'`httprpc.cpp
    11In file included from httprpc.cpp:11:
    12In file included from ./rpc/server.h:11:
    13In file included from ./rpc/util.h:10:
    14./outputtype.h:23:38: error: no viable constructor or deduction guide for deduction of template arguments of 'array'
    15static constexpr auto OUTPUT_TYPES = std::array{
    16                                     ^
    17/usr/include/c++/v1/__tuple:223:64: note: candidate function template not viable: requires 0 arguments, but 3 were provided
    18template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
    19                                                               ^
    20/usr/include/c++/v1/__tuple:223:64: note: candidate function template not viable: requires 1 argument, but 3 were provided
    211 error generated.
    22Makefile:8260: recipe for target 'libbitcoin_server_a-httprpc.o' failed
    23make[2]: *** [libbitcoin_server_a-httprpc.o] Error 1
    24make[2]: Leaving directory '/bitcoin/src'
    25Makefile:15489: recipe for target 'all-recursive' failed
    26make[1]: *** [all-recursive] Error 1
    27make[1]: Leaving directory '/bitcoin/src'
    28Makefile:820: recipe for target 'all-recursive' failed
    29make: *** [all-recursive] Error 1
    30
    31
    32
    33# clang++ --version 
    34clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
    35Target: x86_64-pc-linux-gnu
    36Thread model: posix
    37InstalledDir: /usr/bin
    
  2. MarcoFalke added the label Bug on Jun 23, 2021
  3. MarcoFalke added the label Build system on Jun 23, 2021
  4. MarcoFalke commented at 11:55 am on June 23, 2021: member

    Closing because there are no documented guarantees about libc++ compatibility and no one other than myself has reported this.

    Clang-5 with libstdc++ 7 should work fine according to doc/dependencies.md.

  5. MarcoFalke closed this on Jun 23, 2021

  6. MarcoFalke removed the label Bug on Jun 26, 2021
  7. hebasto commented at 9:35 am on June 26, 2021: member
    Can confirm that libc++ 6.0 is not enough for successful build.
  8. hebasto commented at 9:50 am on June 26, 2021: member

    Closing because there are no documented guarantees about libc++ compatibility and no one other than myself has reported this.

    Documented in #22339.

  9. fanquake referenced this in commit ac238f76bf on Jun 28, 2021
  10. DrahtBot locked this on Aug 18, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 03:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me