Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jan 2018 20:12:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 225456] shells/fish fails to build with Clang 6.0
Message-ID:  <bug-225456-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 225456
           Summary: shells/fish fails to build with Clang 6.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: asomers@FreeBSD.org

The Clang 6 upgrade in FreeBSD head has broken shells/fish.  It fails with
errors like this:

src/builtin_test.cpp:281:20: error: call to 'make_unique' is ambiguous
            return make_unique<unary_operator>(tok, range_t(start,
subject->range.end),
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/v1/memory:3076:1: note: candidate function [with _Tp =3D
test_expressions::unary_operator, _Args =3D <test_expressions::token_t &,
test_expressions::range_t, std::__1::unique_ptr<test_expressions::expressio=
n,
std::__1::default_delete<test_expressions::expression> >>]
make_unique(_Args&&... __args)

The problem is that Clang isn't defining the feature test macro
__cpp_lib_make_unique.  I can fix the build by simply replacing references =
to
that macro with 1, but I'm not sure that's the best thing to do.

--=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-225456-13>