From owner-freebsd-toolchain@freebsd.org Sun Apr 1 18:44:12 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5792EF73F0F for ; Sun, 1 Apr 2018 18:44:12 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) Received: from sonic307-3.consmr.mail.bf2.yahoo.com (sonic307-3.consmr.mail.bf2.yahoo.com [74.6.134.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E46F07886C for ; Sun, 1 Apr 2018 18:44:11 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) X-YMail-OSG: qA49C_oVM1kz7EoepKysBQBFbGjYNAsz7tkFdaTkTnykQNo.V2at8JWSrBOOKFW ysdTaDH4ZZVrIKztukU8wdRWs1K0QeWh.rYm9UP0364vfZ5zyM022vitLyZ0W_xQR0_lPTx95g7R mhh7AeeFGnUhGpUKzjqYVvIbRircuoB2cu7KdUq7FNTGUtK84ltoYV7f5Ew65e7_8qO_uWY5OfQG ANT0Gvgn.MmCKkm.lfcbseUjlImrMeg69m28GkvTsFs6QJJ0_hWj1viXtBT9QZ.25C8NT4I2akwf iozvdf0YBw1__DOCLJWfwFxaLIvbZEW_T7hkhXgnyqLawln38gVEJbR3IC0PW2ot8pAQotd4QtsM uk1uepxWI71OdYKnlDkv_5gmv_5.QrNJtTtQ_Dkboq1WSzk_yo0KWEMYuTedJLZcKfDzThbVIE6x 3R10.2puJhzivYTX8Fvzt38FlrRgstmsE7KLcxeY0Wg2VcKSohWhwBJk3r2JLYmx1GNUuVVVmNTG 59G.F4mnKQT.BCafFMQnTa8dmFvb7cANjB21qTA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.bf2.yahoo.com with HTTP; Sun, 1 Apr 2018 18:44:04 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp424.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 1b85a55ceeace52a196075af82115a4e; Sun, 01 Apr 2018 18:44:03 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: Looking for std::map::merge when compiling for Clang... Message-Id: Date: Sun, 1 Apr 2018 11:44:01 -0700 To: wjw@digiware.nl, freebsd-toolchain@freebsd.org X-Mailer: Apple Mail (2.3445.6.18) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2018 18:44:12 -0000 Willem Jan Withagen wjw at digiware.nl wrote on Sun Apr 1 12:19:35 UTC 2018 : > I'm trying to compile a src file with Ceph that has been upgrade to use > more of the C++17 features, but it fails on a missing function: > > /home/jenkins/workspace/ceph-master/src/mds/OpenFileTable.cc:349:26: > error: no member named 'merge' in > 'std::__1::map, ceph::buffer::list, > std::__1::less >, > std::__1::allocator, > ceph::buffer::list> > >' > ctl.journaled_update.merge(ctl.to_update); > ~~~~~~~~~~~~~~~~~~~~ ^ If you can get ahold of the text for the compile command, it would be a good idea to send that out as additional information. A point about clang as a standard in FreeBSD, with the system and ports there are many alternatives. (Although having some level of C++17 support does cut down the size of the list.) In a C++17 context: #include should have defined merge for std::map. The error message suggests complete lack of a definition, rather than an unsupported type of argument (overload mismatch) or other such. Such might be because the compile did not indicate to use C++17 --or some other point that is outside OpenFileTable.cc . See the command that generated the error would likely help with identifying the proper context for fixing the issue. === Mark Millard marklmi26-fbsd at yahoo.com ( dsl-only.net went away in early 2018-Mar)