Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Dec 2016 21:44:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 215016] devel/libc++: Fix std::is_function<void() const> failed
Message-ID:  <bug-215016-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215016

            Bug ID: 215016
           Summary: devel/libc++: Fix std::is_function<void() const>
                    failed
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: https://reviews.llvm.org/D7573
                OS: Any
            Status: New
          Keywords: patch, patch-ready
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: cpm@freebsd.org
                CC: dim@FreeBSD.org
 Attachment #177620 maintainer-approval?(dim@FreeBSD.org)
             Flags:
                CC: dim@FreeBSD.org

Created attachment 177620
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D177620&action=
=3Dedit
patch

The following patch fixes chromium 54.0.2840.100 build on 10.1-RELEASE

[4200/22400] clang++39 -MMD -MF obj/third_party/flatbuffers/flatc/flatc.o.d
-DV8_DEPRECATION_WARNINGS -DENABLE_MDNS=3D1 -DENABLE_NOTIFICATIONS
-DENABLE_PEPPER_CDMS -DENABLE_PLUGINS=3D1 -DENABLE_PDF=3D1 -DENABLE_PRINTIN=
G=3D1
-DENABLE_BASIC_PRINTING=3D1 -DENABLE_PRINT_PREVIEW=3D1 -DENABLE_SPELLCHECK=
=3D1
-DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=3D1 -DUSE_PANGO=3D1 -DUSE_CAIRO=
=3D1
-DUSE_CLIPBOARD_AURAX11=3D1 -DUSE_DEFAULT_RENDER_THEME=3D1 -DUSE_GLIB=3D1
-DUSE_NSS_CERTS=3D1 -DUSE_X11=3D1 -DNO_TCMALLOC -DENABLE_WEBRTC=3D1 -DDISAB=
LE_NACL
-DENABLE_EXTENSIONS=3D1 -DENABLE_TASK_MANAGER=3D1 -DENABLE_THEMES=3D1
-DENABLE_CAPTIVE_PORTAL_DETECTION=3D1 -DENABLE_SESSION_SERVICE=3D1
-DENABLE_SUPERVISED_USERS=3D1 -DENABLE_SERVICE_DISCOVERY=3D1
-DUSE_PROPRIETARY_CODECS -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD
-DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DENABLE_MEDIA_ROUTER=3D1
-DFIELDTRIAL_TESTING_ENABLED -DCR_CLANG_REVISION=3D278861-1
-D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_F
 ORTIFY_SOURCE=3D2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=3D0 -=
I../..
-Igen -I../../third_party/flatbuffers/src/include -fno-strict-aliasing
--param=3Dssp-buffer-size=3D4 -fstack-protector -funwind-tables -fPIC -pipe
-fcolor-diagnostics
-fdebug-prefix-map=3D/wrkdirs/usr/ports/www/chromium/work/chromium-54.0.284=
0.100=3D.
-pthread -m32 -msse2 -mfpmath=3Dsse -mmmx -momit-leaf-frame-pointer
-mstack-alignment=3D16 -mstackrealign -Wall -Wextra
-Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing
-Wno-covered-switch-default -Wno-deprecated-register
-Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override
-Wno-shift-negative-value -Wno-undefined-var-template
-Wno-nonportable-include-path -O2 -fno-ident -fdata-sections
-ffunction-sections -g0 -fvisibility=3Dhidden -Wheader-hygiene
-Wstring-conversion -fno-threadsafe-statics -fvisibility-inlines-hidden
-std=3Dgnu++11 -fno-rtti -fno-exceptions -c
../../third_party/flatbuffers/src/src/flatc.cpp -o obj/third_party/flatb
 uffers/flatc/flatc.o
FAILED: obj/third_party/flatbuffers/flatc/flatc.o=20
clang++39 -MMD -MF obj/third_party/flatbuffers/flatc/flatc.o.d
-DV8_DEPRECATION_WARNINGS -DENABLE_MDNS=3D1 -DENABLE_NOTIFICATIONS
-DENABLE_PEPPER_CDMS -DENABLE_PLUGINS=3D1 -DENABLE_PDF=3D1 -DENABLE_PRINTIN=
G=3D1
-DENABLE_BASIC_PRINTING=3D1 -DENABLE_PRINT_PREVIEW=3D1 -DENABLE_SPELLCHECK=
=3D1
-DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=3D1 -DUSE_PANGO=3D1 -DUSE_CAIRO=
=3D1
-DUSE_CLIPBOARD_AURAX11=3D1 -DUSE_DEFAULT_RENDER_THEME=3D1 -DUSE_GLIB=3D1
-DUSE_NSS_CERTS=3D1 -DUSE_X11=3D1 -DNO_TCMALLOC -DENABLE_WEBRTC=3D1 -DDISAB=
LE_NACL
-DENABLE_EXTENSIONS=3D1 -DENABLE_TASK_MANAGER=3D1 -DENABLE_THEMES=3D1
-DENABLE_CAPTIVE_PORTAL_DETECTION=3D1 -DENABLE_SESSION_SERVICE=3D1
-DENABLE_SUPERVISED_USERS=3D1 -DENABLE_SERVICE_DISCOVERY=3D1
-DUSE_PROPRIETARY_CODECS -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD
-DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DENABLE_MEDIA_ROUTER=3D1
-DFIELDTRIAL_TESTING_ENABLED -DCR_CLANG_REVISION=3D278861-1
-D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE
 =3D2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=3D0 -I../.. -Igen
-I../../third_party/flatbuffers/src/include -fno-strict-aliasing
--param=3Dssp-buffer-size=3D4 -fstack-protector -funwind-tables -fPIC -pipe
-fcolor-diagnostics
-fdebug-prefix-map=3D/wrkdirs/usr/ports/www/chromium/work/chromium-54.0.284=
0.100=3D.
-pthread -m32 -msse2 -mfpmath=3Dsse -mmmx -momit-leaf-frame-pointer
-mstack-alignment=3D16 -mstackrealign -Wall -Wextra
-Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing
-Wno-covered-switch-default -Wno-deprecated-register
-Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override
-Wno-shift-negative-value -Wno-undefined-var-template
-Wno-nonportable-include-path -O2 -fno-ident -fdata-sections
-ffunction-sections -g0 -fvisibility=3Dhidden -Wheader-hygiene
-Wstring-conversion -fno-threadsafe-statics -fvisibility-inlines-hidden
-std=3Dgnu++11 -fno-rtti -fno-exceptions -c
../../third_party/flatbuffers/src/src/flatc.cpp -o
obj/third_party/flatbuffers/flatc/
 flatc.o
In file included from ../../third_party/flatbuffers/src/src/flatc.cpp:17:
In file included from
../../third_party/flatbuffers/src/include/flatbuffers/flatbuffers.h:26:
In file included from /usr/include/c++/v1/string:439:
In file included from /usr/include/c++/v1/algorithm:624:
/usr/include/c++/v1/type_traits:433:76: error: no matching function for cal=
l to
'__source'
    : public integral_constant<bool,
sizeof(__is_function_imp::__test<_Tp>(__is_function_imp::__source<_Tp>())) =
=3D=3D
1>
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/v1/type_traits:438:14: note: in instantiation of template
class 'std::__1::__libcpp_is_function<void (unsigned char *) const, false>'
requested here
    : public __libcpp_is_function<_Tp> {};
             ^
/usr/include/c++/v1/type_traits:443:97: note: in instantiation of template
class 'std::__1::is_function<void (unsigned char *) const>' requested here
template <class _Tp, class _Up> struct __libcpp_is_member_function_pointer<=
_Tp
_Up::*> : public is_function<_Tp> {};
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20
                ^
/usr/include/c++/v1/type_traits:446:14: note: in instantiation of template
class 'std::__1::__libcpp_is_member_function_pointer<void
(flatbuffers::simple_allocator::*)(unsigned char *) const>' requested here
    : public __libcpp_is_member_function_pointer<typename remove_cv<_Tp>::t=
ype>
{};
             ^
/usr/include/c++/v1/type_traits:3065:17: note: in instantiation of template
class 'std::__1::is_member_function_pointer<void
(flatbuffers::simple_allocator::*)(unsigned char *) const>' requested here
                is_member_function_pointer<typename
remove_reference<_Fp>::type>::value &&
                ^
/usr/include/c++/v1/type_traits:3072:1: note: in instantiation of default
argument for '__invoke<void (flatbuffers::simple_allocator::*)(unsigned cha=
r *)
const, flatbuffers::simple_allocator &, unsigned char *&>' required here
__invoke(_Fp&& __f, _A0&& __a0, _Args&& ...__args)
^~~~~~~~
/usr/include/c++/v1/type_traits:3118:13: note: (skipping 6 contexts in
backtrace; use -ftemplate-backtrace-limit=3D0 to see all)
            __invoke(_VSTD::declval<_Fp>(), _VSTD::declval<_Args>()...)
            ^
/usr/include/c++/v1/type_traits:3118:13: note: while substituting deduced
template arguments into function template '__invoke' [with _Fp =3D
std::__1::__bind<void (flatbuffers::simple_allocator::*)(unsigned char *)
const, const flatbuffers::simple_allocator &, unsigned char *&> &, _Args =3D
<unsigned char *>]
/usr/include/c++/v1/type_traits:3126:11: note: in instantiation of template
class 'std::__1::__invokable_imp<std::__1::__bind<void
(flatbuffers::simple_allocator::*)(unsigned char *) const, const
flatbuffers::simple_allocator &, unsigned char *&> &, unsigned char *>'
requested here
          __invokable_imp<_Fp, _Args...>::value>
          ^
/usr/include/c++/v1/functional:1427:33: note: in instantiation of template
class 'std::__1::__invokable<std::__1::__bind<void
(flatbuffers::simple_allocator::*)(unsigned char *) const, const
flatbuffers::simple_allocator &, unsigned char *&> &, unsigned char *>'
requested here
                                __invokable<_Fp&, _ArgTypes...>::value>
                                ^
/usr/include/c++/v1/functional:1454:41: note: in instantiation of default
argument for '__callable<std::__1::__bind<void
(flatbuffers::simple_allocator::*)(unsigned char *) const, const
flatbuffers::simple_allocator &, unsigned char *&> >' required here
                                        __callable<_Fp>::value &&
                                        ^~~~~~~~~~~~~~~
./../third_party/flatbuffers/src/include/flatbuffers/flatbuffers.h:467:7: n=
ote:
while substituting deduced template arguments into function template 'funct=
ion'
[with _Fp =3D std::__1::__bind<void (flatbuffers::simple_allocator::*)(unsi=
gned
char *) const, const flatbuffers::simple_allocator &, unsigned char *&>]
      std::bind(&simple_allocator::deallocate, allocator_, buf_));
      ^
/usr/include/c++/v1/type_traits:424:28: note: candidate template ignored:
substitution failure [with _Tp =3D void (unsigned char *) const]: reference=
 to
function type 'void (unsigned char *) const' cannot have 'const' qualifier
template <class _Tp> _Tp&  __source();
                     ~~~   ^
In file included from ../../third_party/flatbuffers/src/src/flatc.cpp:17:
./../third_party/flatbuffers/src/include/flatbuffers/flatbuffers.h:466:36:
error: no matching constructor for initialization of 'std::function<void
(uint8_t *)>' (aka 'function<void (unsigned char *)>')
    std::function<void(uint8_t *)> deleter(
                                   ^
/usr/include/c++/v1/functional:1448:5: note: candidate constructor not viab=
le:
no known conversion from '__bind<void
(flatbuffers::simple_allocator::*)(unsigned char *) const, const
flatbuffers::simple_allocator &, unsigned char *&>' to 'nullptr_t' for 1st
argument
    function(nullptr_t) _NOEXCEPT : __f_(0) {}
    ^
/usr/include/c++/v1/functional:1449:5: note: candidate constructor not viab=
le:
no known conversion from '__bind<void
(flatbuffers::simple_allocator::*)(unsigned char *) const, const
flatbuffers::simple_allocator &, unsigned char *&>' to 'const
std::__1::function<void (unsigned char *)>' for 1st argument
    function(const function&);
    ^
/usr/include/c++/v1/functional:1450:5: note: candidate constructor not viab=
le:
no known conversion from '__bind<void
(flatbuffers::simple_allocator::*)(unsigned char *) const, const
flatbuffers::simple_allocator &, unsigned char *&>' to 'std::__1::function<=
void
(unsigned char *)>' for 1st argument
    function(function&&) _NOEXCEPT;
    ^
/usr/include/c++/v1/functional:1454:41: note: candidate template ignored:
disabled by 'enable_if' [with _Fp =3D std::__1::__bind<void
(flatbuffers::simple_allocator::*)(unsigned char *) const, const
flatbuffers::simple_allocator &, unsigned char *&>]
                                        __callable<_Fp>::value &&
                                        ^
/usr/include/c++/v1/functional:1460:7: note: candidate constructor template=
 not
viable: requires 2 arguments, but 1 was provided
      function(allocator_arg_t, const _Alloc&) _NOEXCEPT : __f_(0) {}
      ^
/usr/include/c++/v1/functional:1463:7: note: candidate constructor template=
 not
viable: requires 3 arguments, but 1 was provided
      function(allocator_arg_t, const _Alloc&, nullptr_t) _NOEXCEPT : __f_(=
0)
{}
      ^
/usr/include/c++/v1/functional:1465:7: note: candidate constructor template=
 not
viable: requires 3 arguments, but 1 was provided
      function(allocator_arg_t, const _Alloc&, const function&);
      ^
/usr/include/c++/v1/functional:1467:7: note: candidate constructor template=
 not
viable: requires 3 arguments, but 1 was provided
      function(allocator_arg_t, const _Alloc&, function&&);
      ^
/usr/include/c++/v1/functional:1469:7: note: candidate constructor template=
 not
viable: requires at least 3 arguments, but 1 was provided
      function(allocator_arg_t, const _Alloc& __a, _Fp __f,
      ^
/usr/include/c++/v1/functional:1446:5: note: candidate constructor not viab=
le:
requires 0 arguments, but 1 was provided
    function() _NOEXCEPT : __f_(0) {}
    ^
2 errors generated.
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
make: stopped in /usr/ports/www/chromium


See the reference URL associated with this bug for further details.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-215016-13>