From owner-freebsd-office@FreeBSD.ORG Wed Dec 11 12:27:50 2013 Return-Path: Delivered-To: office@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3E704B08; Wed, 11 Dec 2013 12:27:50 +0000 (UTC) Received: from marvin.harmless.hu (marvin.harmless.hu [195.56.55.204]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F16B312BC; Wed, 11 Dec 2013 12:27:49 +0000 (UTC) Received: from 86ff421f.mobile.pool.telekom.hu ([134.255.66.31] helo=unknown) by marvin.harmless.hu with esmtpsa (SSLv3:AES128-SHA:128) (Exim 4.75 (FreeBSD)) (envelope-from ) id 1Vqioc-000Dry-FW; Wed, 11 Dec 2013 13:22:58 +0100 Date: Wed, 11 Dec 2013 13:22:55 +0100 From: Gergely CZUCZY To: office@freebsd.org Subject: devel/boost issues regarding boost/chrono/duration.hpp constexpr definitions with clang Message-ID: <20131211132255.00004886@unknown> Organization: Harmless Digital X-Mailer: Claws Mail 3.9.2-55-g74b05b (GTK+ 2.16.6; i586-pc-mingw32msvc) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org X-BeenThere: freebsd-office@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Office applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Dec 2013 12:27:50 -0000 Hello, Could you please update boost to 1.55? There's seems to be some issues with the current version, which might be fixed later. Namely, on a 9.x default install, built with defaults (gcc as defcc), when one is trying to include boost/thread/shared_mutex.hpp and build that file with clang: --- BEGIN boostmtx.cc --- #include int main() { return 0; } --- END boostmtx.cc --- And when trying to build it: $ CXXFLAGS="-Werror -pedantic -std=c++11 -I/usr/local/include" CXX=clang++ make boostmtx clang++ -Werror -pedantic -std=c++11 -I/usr/local/include boostmtx.cc -o boostmtx In file included from boostmtx.cc:1: In file included from /usr/local/include/boost/thread/shared_mutex.hpp:21: In file included from /usr/local/include/boost/thread/pthread/shared_mutex.hpp:13: In file included from /usr/local/include/boost/thread/mutex.hpp:16: In file included from /usr/local/include/boost/thread/pthread/mutex.hpp:12: In file included from /usr/local/include/boost/thread/locks.hpp:18: In file included from /usr/local/include/boost/chrono/time_point.hpp:33: /usr/local/include/boost/chrono/duration.hpp:667:28: error: 'constexpr' non-static member function will not be implicitly 'const' in C++1y; add 'const' to avoid a change in behavior [-Werror,-Wconstexpr-not-const] BOOST_CONSTEXPR bool operator()(const LhsDuration& lhs, const RhsDuration& rhs) ^ const /usr/local/include/boost/chrono/duration.hpp:677:28: error: 'constexpr' non-static member function will not be implicitly 'const' in C++1y; add 'const' to avoid a change in behavior [-Werror,-Wconstexpr-not-const] BOOST_CONSTEXPR bool operator()(const LhsDuration& lhs, const LhsDuration& rhs) ^ const /usr/local/include/boost/chrono/duration.hpp:686:28: error: 'constexpr' non-static member function will not be implicitly 'const' in C++1y; add 'const' to avoid a change in behavior [-Werror,-Wconstexpr-not-const] BOOST_CONSTEXPR bool operator()(const LhsDuration& lhs, const RhsDuration& rhs) ^ const /usr/local/include/boost/chrono/duration.hpp:696:28: error: 'constexpr' non-static member function will not be implicitly 'const' in C++1y; add 'const' to avoid a change in behavior [-Werror,-Wconstexpr-not-const] BOOST_CONSTEXPR bool operator()(const LhsDuration& lhs, const LhsDuration& rhs) ^ const 4 errors generated. *** [boostmtx] Error code 1 FreeBSD dirk.bealak.harmless.lan 9.2-STABLE FreeBSD 9.2-STABLE #0: Sat Sep 28 13:31:29 CEST 2013 toor@dirk.bealak.harmless.lan:/usr/obj/usr/src/sys/DIRK amd64 Could you please look into this issue? This should pretty much work with the clang in base. Best regards, Gergely