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

Unbreak build with libc++ 13 #196

Merged
merged 1 commit into from
Nov 10, 2021
Merged

Unbreak build with libc++ 13 #196

merged 1 commit into from
Nov 10, 2021

Conversation

jbeich
Copy link
Contributor

@jbeich jbeich commented Nov 10, 2021

Regressed by llvm/llvm-project@0849427faeab8. Affects future FreeBSD versions: 14.0, 13.1, 12.4.

Clang/libc++ error:

$ export CC=clang13 CXX=clang++13 CXXFLAGS="-stdlib=libc++"
$ meson setup _build
$ meson compile -C _build
[...]
In file included from bar/bar.cc:12:
common/nwg_classes.h:200:33: error: no viable constructor or deduction guide for deduction of template arguments of 'array'
    static constexpr std::array MAGIC { 'i', '3', '-', 'i', 'p', 'c' };
                                ^
/usr/include/c++/v1/__tuple:219:64: note: candidate function template not viable: requires 1 argument, but 6 were provided
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
/usr/include/c++/v1/__tuple:219:64: note: candidate function template not viable: requires 0 arguments, but 6 were provided

GCC/libc++ error:

$ export CC=gcc11 CXX=g++11 CXXFLAGS="-nostdinc++ -isystem/usr/include/c++/v1"
$ meson setup _build
$ meson compile -C _build
[...]
In file included from bar/bar.cc:12:
common/nwg_classes.h:200:70: error: class template argument deduction failed:
  200 |     static constexpr std::array MAGIC { 'i', '3', '-', 'i', 'p', 'c' };
      |                                                                      ^
common/nwg_classes.h:200:70: error: no matching function for call to 'array(char, char, char, char, char, char)'
In file included from /usr/include/c++/v1/utility:212,
                 from /usr/include/c++/v1/__functional_base:26,
                 from /usr/include/c++/v1/string:520,
                 from common/nwg_classes.h:14,
                 from bar/bar.cc:12:
/usr/include/c++/v1/__tuple:219:64: note: candidate: 'template<class _Tp, long unsigned int _Size> array()-> std::__1::array<_Tp, _Size>'
  219 | template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
      |                                                                ^~~~~
/usr/include/c++/v1/__tuple:219:64: note:   template argument deduction/substitution failed:
In file included from bar/bar.cc:12:
common/nwg_classes.h:200:70: note:   candidate expects 0 arguments, 6 provided
  200 |     static constexpr std::array MAGIC { 'i', '3', '-', 'i', 'p', 'c' };
      |                                                                      ^
In file included from /usr/include/c++/v1/utility:212,
                 from /usr/include/c++/v1/__functional_base:26,
                 from /usr/include/c++/v1/string:520,
                 from common/nwg_classes.h:14,
                 from bar/bar.cc:12:
/usr/include/c++/v1/__tuple:219:64: note: candidate: 'template<class _Tp, long unsigned int _Size> array(std::__1::array<_Tp, _Size>)-> std::__1::array<_Tp, _Size>'
  219 | template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
      |                                                                ^~~~~
/usr/include/c++/v1/__tuple:219:64: note:   template argument deduction/substitution failed:
In file included from bar/bar.cc:12:
common/nwg_classes.h:200:70: note:   mismatched types 'std::__1::array<_Tp, _Size>' and 'char'
  200 |     static constexpr std::array MAGIC { 'i', '3', '-', 'i', 'p', 'c' };
      |                                                                      ^

http://www.ipv6proxy.net/go.php?u=http://gohan04.nyi.freebsd.org/data/mainamd64PR258209-default/2021-10-16_18h41m03s/logs/errors/nwg-launchers-0.6.3.log

In file included from bar/bar.cc:12:
common/nwg_classes.h:200:33: error: no viable constructor or deduction guide for deduction of template arguments of 'array'
    static constexpr std::array MAGIC { 'i', '3', '-', 'i', 'p', 'c' };
                                ^
/usr/include/c++/v1/__tuple:219:64: note: candidate function template not viable: requires 1 argument, but 6 were provided
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
/usr/include/c++/v1/__tuple:219:64: note: candidate function template not viable: requires 0 arguments, but 6 were provided
@Siborgium Siborgium merged commit f123f43 into nwg-piotr:master Nov 10, 2021
@Siborgium
Copy link
Collaborator

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants