NetBSD Problem Report #48388
From oster@cs.usask.ca Mon Nov 18 14:35:08 2013
Return-Path: <oster@cs.usask.ca>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 05785A5676
for <gnats-bugs@gnats.NetBSD.org>; Mon, 18 Nov 2013 14:35:08 +0000 (UTC)
Message-Id: <20131118143316.94CB487D35@mickey.usask.ca>
Date: Mon, 18 Nov 2013 08:33:16 -0600 (CST)
From: oster@netbsd.org
Reply-To: oster@netbsd.org
To: gnats-bugs@gnats.NetBSD.org
Subject: devel/boost-libs fails to build on NetBSD-6.1.2/amd64
X-Send-Pr-Version: 3.95
>Number: 48388
>Category: pkg
>Synopsis: devel/boost-libs fails to build on NetBSD-6.1.2/amd64
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: adam
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 18 14:40:00 +0000 2013
>Closed-Date: Sun Nov 24 04:07:30 +0000 2013
>Last-Modified: Sun Nov 24 04:07:30 +0000 2013
>Originator: Greg Oster
>Release: NetBSD 6.1.2
>Organization:
>Environment:
System: NetBSD mickey 6.1.2 NetBSD 6.1.2 (QUAD) #0: Thu Sep 26 15:35:44 CST 2013 oster@quad:/u1/builds/build242/src/obj/amd64/u1/builds/build242/src/sys/arch/amd64/compile/QUAD amd64
Architecture: x86_64
Machine: amd64
>Description:
Building devel/boost-libs fails thusly:
./boost/wave/grammars/cpp_expression_grammar.hpp:781:9: instantiated from 'static bool boost::wave::grammars::expression_grammar_gen<TokenT>::evaluate(const typename boost::wave::grammars::expression_grammar_gen<TokenT>::token_sequence_type::const_iterator&, const typename boost::wave::grammars::expression_grammar_gen<TokenT>::token_sequence_type::const_iterator&, const typename token_type::position_type&, bool, boost::wave::grammars::value_error&) [with TokenT = boost::wave::cpplexer::lex_token<>, typename boost::wave::grammars::expression_grammar_gen<TokenT>::token_sequence_type::const_iterator = std::_List_const_iterator<boost::wave::cpplexer::lex_token<> >, typename token_type::position_type = boost::wave::util::file_position<boost::wave::util::flex_string<char, std::char_traits<char>, std::allocator<char>, boost::wave::util::CowString<boost::wave::util::AllocatorStringStorage<char> > > >]'
libs/wave/src/instantiate_cpp_exprgrammar.cpp:44:40: instantiated from here
./boost/thread/once.hpp:38:9: error: no matching function for call to 'call_once(boost::once_flag&, void (*&)())'
./boost/system/error_code.hpp: At global scope:
./boost/system/error_code.hpp:222:36: warning: 'boost::system::posix_category' defined but not used
./boost/system/error_code.hpp:223:36: warning: 'boost::system::errno_ecat' defined but not used
./boost/system/error_code.hpp:224:36: warning: 'boost::system::native_ecat' defined but not used
"g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -std=c++0x -DBOOST_ALL_NO_LIB=1 -DBOOST_THREAD_USE_LIB=1 -DNDEBUG -I"." -c -o "bin.v2/libs/wave/build/gcc-4.5.3/release/link-static/threading-multi/instantiate_cpp_exprgrammar.o" "libs/wave/src/instantiate_cpp_exprgrammar.cpp"
...failed gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.5.3/release/link-static/threading-multi/instantiate_cpp_exprgrammar.o...
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.5.3/release/link-static/threading-multi/cpplexer/re2clex/aq.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.5.3/release/link-static/threading-multi/wave_config_constant.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.5.3/release/link-static/threading-multi/token_ids.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.5.3/release/link-static/threading-multi/instantiate_re2c_lexer.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.5.3/release/link-static/threading-multi/instantiate_re2c_lexer_str.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.5.3/release/link-static/threading-multi/cpplexer/re2clex/cpp_re.o
...skipped <pbin.v2/libs/wave/build/gcc-4.5.3/release/link-static/threading-multi>libboost_wave.a(clean) for lack of <pbin.v2/libs/wave/build/gcc-4.5.3/release/link-static/threading-multi>instantiate_cpp_exprgrammar.o...
...skipped <pbin.v2/libs/wave/build/gcc-4.5.3/release/link-static/threading-multi>libboost_wave.a for lack of <pbin.v2/libs/wave/build/gcc-4.5.3/release/link-static/threading-multi>instantiate_cpp_exprgrammar.o...
...skipped <pstage/lib>libboost_wave.a for lack of <pbin.v2/libs/wave/build/gcc-4.5.3/release/link-static/threading-multi>libboost_wave.a...
...failed updating 18 targets...
...skipped 22 targets...
...updated 846 targets...
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/devel/boost-libs
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/devel/boost-libs
>How-To-Repeat:
cd /usr/pkgsrc/devel/boost-libs
make install
>Fix:
Please. Thanks.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->adam
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Mon, 18 Nov 2013 14:47:14 +0000
Responsible-Changed-Why:
Same on NetBSD-6.99.24/amd64 and Solaris and at least some versions of OS X.
From: Richard PALO <richard.palo@free.fr>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/48388 (devel/boost-libs fails to build on NetBSD-6.1.2/amd64)
Date: Wed, 20 Nov 2013 11:18:53 +0100
Le 18/11/13 15:47, wiz@NetBSD.org a écrit :
> Synopsis: devel/boost-libs fails to build on NetBSD-6.1.2/amd64
>
> Responsible-Changed-From-To: pkg-manager->adam
> Responsible-Changed-By: wiz@NetBSD.org
> Responsible-Changed-When: Mon, 18 Nov 2013 14:47:14 +0000
> Responsible-Changed-Why:
> Same on NetBSD-6.99.24/amd64 and Solaris and at least some versions of OS X.
>
>
>
>
As I indicated last week, I've been using 1_55_0 for a while on solaris,
but with the following patch to boost-jam/bjam.mk:
richard@x3200:~/src/pkgsrc$ git diff devel/boost-jam/
diff --git a/devel/boost-jam/bjam.mk b/devel/boost-jam/bjam.mk
index 9de8785..bc74bf4 100644
--- a/devel/boost-jam/bjam.mk
+++ b/devel/boost-jam/bjam.mk
@@ -17,8 +17,14 @@ BJAM_ARGS+= --disable-long-double
BJAM_ARGS+= ${BJAM_BUILD}
# GCC 4.4 and above needs this
.include "../../mk/compiler.mk"
-.if !empty(PKGSRC_COMPILER:Mgcc) && !empty(CC_VERSION:Mgcc-4.[4-7]*)
+.if !empty(PKGSRC_COMPILER:Mgcc)
+. if !empty(CC_VERSION:Mgcc-4.[4-7]*)
BJAM_ARGS+= cxxflags=-std=c++0x
+CXXFLAGS.SunOS+= -std=c++0x
+. else !empty(CC_VERSION:Mgcc-4.[89]*)
+BJAM_ARGS+= cxxflags=-std=c++11
+CXXFLAGS.SunOS+= -std=c++11
+. endif
.endif
#
.if !empty(PKGSRC_COMPILER:Mclang)
Since boost-headers uses configure to determine user.hpp, I don't
understand how any platform supports the defaults...
The following is the diff between a 'bad' and a 'good' user.hpp
> richard@x3200:~/src$ cat user.diff
> --- user.hpp.bad 2013-11-20 10:30:46.969387228 +0100
> +++ user.hpp.good 2013-11-20 10:48:58.067411485 +0100
> @@ -5,10 +5,10 @@
> //
> // Use this file to define a site and compiler specific
> // configuration policy, this version was auto-generated by
> -// configure on Wed Nov 20 09:20:49 UTC 2013
> +// configure on Wed Nov 20 09:48:43 UTC 2013
> // With the following options:
> // CXX = g++
> -// CXXFLAGS = -I./../.. -I./../../libs/config/test -O2 -I/opt/local/include -I/usr/include -DBOOST_NO_CONFIG
> +// CXXFLAGS = -I./../.. -I./../../libs/config/test -O2 -I/opt/local/include -I/usr/include -std=c++11 -DBOOST_NO_CONFIG
> // LDFLAGS = -L/opt/local/gcc48/lib/gcc/i386-sun-solaris2.11/4.8.2 -Wl,-R/opt/local/gcc48/lib/gcc/i386-sun-solaris2.11/4.8.2 -L/opt/local/gcc48/lib -Wl,-R/opt/local/gcc48/lib -L/opt/local/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/opt/local/lib
> // LIBS = -lrt -lm -lpthread
> //
> @@ -39,9 +39,13 @@
> #define BOOST_MSVC6_MEMBER_TEMPLATES
> #define BOOST_HAS_VARIADIC_TMPL
> #define BOOST_HAS_UNISTD_H
> +#define BOOST_HAS_TR1_COMPLEX_INVERSE_TRIG
> +#define BOOST_HAS_TR1_COMPLEX_OVERLOADS
> #define BOOST_HAS_STDINT_H
> +#define BOOST_HAS_STATIC_ASSERT
> #define BOOST_HAS_SIGACTION
> #define BOOST_HAS_SCHED_YIELD
> +#define BOOST_HAS_RVALUE_REFS
> #define BOOST_HAS_PTHREADS
> #define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
> #define BOOST_HAS_PARTIAL_STD_ALLOCATOR
> @@ -54,53 +58,7 @@
> #define BOOST_HAS_EXPM1
> #define BOOST_HAS_DIRENT_H
> #define BOOST_HAS_CLOCK_GETTIME
> -#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
> -#define BOOST_NO_CXX11_UNICODE_LITERALS
> -#define BOOST_NO_CXX11_TEMPLATE_ALIASES
> -#define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS
> -#define BOOST_NO_CXX11_STATIC_ASSERT
> -#define BOOST_NO_CXX11_SCOPED_ENUMS
> -#define BOOST_NO_CXX11_RVALUE_REFERENCES
> -#define BOOST_NO_CXX11_RAW_LITERALS
> -#define BOOST_NO_CXX11_RANGE_BASED_FOR
> -#define BOOST_NO_CXX11_NULLPTR
> -#define BOOST_NO_CXX11_NOEXCEPT
> -#define BOOST_NO_CXX11_LAMBDAS
> #define BOOST_NO_MS_INT64_NUMERIC_LIMITS
> -#define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS
> -#define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS
> -#define BOOST_NO_CXX11_DELETED_FUNCTIONS
> -#define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
> -#define BOOST_NO_CXX11_DECLTYPE_N3276
> -#define BOOST_NO_CXX11_DECLTYPE
> -#define BOOST_NO_CXX11_HDR_FUNCTIONAL
> -#define BOOST_NO_CXX11_USER_DEFINED_LITERALS
> -#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
> -#define BOOST_NO_CXX11_SMART_PTR
> -#define BOOST_NO_CXX11_NUMERIC_LIMITS
> -#define BOOST_NO_CXX11_HDR_UNORDERED_SET
> -#define BOOST_NO_CXX11_HDR_UNORDERED_MAP
> -#define BOOST_NO_CXX11_HDR_TYPEINDEX
> #define BOOST_NO_CXX11_HDR_TYPE_TRAITS
> -#define BOOST_NO_CXX11_HDR_TUPLE
> -#define BOOST_NO_CXX11_HDR_THREAD
> -#define BOOST_NO_CXX11_HDR_SYSTEM_ERROR
> -#define BOOST_NO_CXX11_HDR_REGEX
> -#define BOOST_NO_CXX11_HDR_RATIO
> -#define BOOST_NO_CXX11_HDR_RANDOM
> -#define BOOST_NO_CXX11_HDR_MUTEX
> -#define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
> -#define BOOST_NO_CXX11_HDR_FUTURE
> -#define BOOST_NO_CXX11_HDR_FORWARD_LIST
> -#define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE
> #define BOOST_NO_CXX11_HDR_CODECVT
> -#define BOOST_NO_CXX11_HDR_CHRONO
> -#define BOOST_NO_CXX11_HDR_ARRAY
> #define BOOST_NO_CXX11_ATOMIC_SMART_PTR
> -#define BOOST_NO_CXX11_ALLOCATOR
> -#define BOOST_NO_CXX11_ALIGNAS
> -#define BOOST_NO_CXX11_CONSTEXPR
> -#define BOOST_NO_CXX11_CHAR32_T
> -#define BOOST_NO_CXX11_CHAR16_T
> -#define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS
> -#define BOOST_NO_CXX11_AUTO_DECLARATIONS
> richard@x3200:~/src$
BTW, all the BOOST_* options seem the same between std=c++0x and
std=c++11 with gcc-4.8.2.
Not to mention that if 'icu' is in default options, the following is
still needed:
> richard@x3200:~/src/pkgsrc$ git diff master devel/boost-libs
> diff --git a/devel/boost-libs/PLIST.SunOS b/devel/boost-libs/PLIST.SunOS
> index ad3a4b7..0b491fc 100644
> --- a/devel/boost-libs/PLIST.SunOS
> +++ b/devel/boost-libs/PLIST.SunOS
> @@ -5,3 +5,7 @@ lib/libboost_math_c99l.so.${BOOST_VERSION}
> lib/libboost_math_tr1l.a
> lib/libboost_math_tr1l.so
> lib/libboost_math_tr1l.so.${BOOST_VERSION}
> +lib/libboost_locale.a
> +lib/libboost_locale.so
> +lib/libboost_locale.so.${BOOST_VERSION}
From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/48388 (devel/boost-libs fails to build on
NetBSD-6.1.2/amd64)
Date: Wed, 20 Nov 2013 22:29:06 +0900 (JST)
Hi,
adam@ has reported this isuue to upstream.
https://svn.boost.org/trac/boost/ticket/9399
As he has reported, -std=c++98 helps me.
--
Ryo ONODERA // ryo_on@yk.rim.or.jp
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB FD1B F404 27FA C7D1 15F3
From: "Adam Ciarcinski" <adam@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/48388 CVS commit: pkgsrc
Date: Wed, 20 Nov 2013 19:17:55 +0000
Module Name: pkgsrc
Committed By: adam
Date: Wed Nov 20 19:17:55 UTC 2013
Modified Files:
pkgsrc/devel/boost-build: toolset.mk
pkgsrc/devel/boost-jam: bjam.mk
pkgsrc/devel/boost-libs: PLIST
pkgsrc/meta-pkgs/boost: Makefile.common distinfo
Added Files:
pkgsrc/meta-pkgs/boost/patches: patch-boost_asio_detail_config.hpp
patch-boost_math_tools_config.hpp patch-boost_noncopyable.hpp
Removed Files:
pkgsrc/devel/boost-libs: PLIST.Darwin PLIST.DragonFly PLIST.Linux
PLIST.NetBSD PLIST.SunOS
pkgsrc/meta-pkgs/boost/patches: patch-ai patch-boost_foreach.hpp
patch-boost_foreach_fwd.hpp
Log Message:
* Fix building with GCC (PR#48388).
* Build long double math libraries on NetBSD and FreeBSD.
* Removed obsolete patches.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/devel/boost-build/toolset.mk
cvs rdiff -u -r1.14 -r1.15 pkgsrc/devel/boost-jam/bjam.mk
cvs rdiff -u -r1.22 -r1.23 pkgsrc/devel/boost-libs/PLIST
cvs rdiff -u -r1.3 -r0 pkgsrc/devel/boost-libs/PLIST.Darwin
cvs rdiff -u -r1.2 -r0 pkgsrc/devel/boost-libs/PLIST.DragonFly \
pkgsrc/devel/boost-libs/PLIST.Linux
cvs rdiff -u -r1.1 -r0 pkgsrc/devel/boost-libs/PLIST.NetBSD \
pkgsrc/devel/boost-libs/PLIST.SunOS
cvs rdiff -u -r1.41 -r1.42 pkgsrc/meta-pkgs/boost/Makefile.common
cvs rdiff -u -r1.60 -r1.61 pkgsrc/meta-pkgs/boost/distinfo
cvs rdiff -u -r1.5 -r0 pkgsrc/meta-pkgs/boost/patches/patch-ai
cvs rdiff -u -r0 -r1.1 \
pkgsrc/meta-pkgs/boost/patches/patch-boost_asio_detail_config.hpp \
pkgsrc/meta-pkgs/boost/patches/patch-boost_math_tools_config.hpp \
pkgsrc/meta-pkgs/boost/patches/patch-boost_noncopyable.hpp
cvs rdiff -u -r1.3 -r0 pkgsrc/meta-pkgs/boost/patches/patch-boost_foreach.hpp \
pkgsrc/meta-pkgs/boost/patches/patch-boost_foreach_fwd.hpp
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: =?utf-8?Q?Adam_Ciarci=C5=84ski?= <adam@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org,
oster@netbsd.org
Subject: Re: pkg/48388 (devel/boost-libs fails to build on NetBSD-6.1.2/amd64)
Date: Wed, 20 Nov 2013 20:24:33 +0100
The issue should be fixed now.
The trick was to also pass -std=3D in CXXFLAGS. (Richard, thanks for =
inspiration.)
Also, I removed additional PLISTs: all libraries should be available for =
all the OSes.
Please, test. If something fails, please, report back to me.
Kind regards,
Adam=
From: Greg Oster <oster@cs.usask.ca>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/48388 (devel/boost-libs fails to build on
NetBSD-6.1.2/amd64)
Date: Wed, 20 Nov 2013 13:32:35 -0600
On Wed, 20 Nov 2013 19:25:00 +0000 (UTC)
Adam Ciarci=C5=84ski <adam@NetBSD.org> wrote:
> The following reply was made to PR pkg/48388; it has been noted by
> GNATS.
>=20
> From: =3D?utf-8?Q?Adam_Ciarci=3DC5=3D84ski?=3D <adam@NetBSD.org>
> To: gnats-bugs@NetBSD.org
> Cc: gnats-admin@netbsd.org,
> pkgsrc-bugs@netbsd.org,
> oster@netbsd.org
> Subject: Re: pkg/48388 (devel/boost-libs fails to build on
> NetBSD-6.1.2/amd64) Date: Wed, 20 Nov 2013 20:24:33 +0100
>=20
> The issue should be fixed now.
> The trick was to also pass -std=3D3D in CXXFLAGS. (Richard, thanks for
> =3D inspiration.)
> Also, I removed additional PLISTs: all libraries should be available
> for =3D all the OSes.
> =20
> Please, test. If something fails, please, report back to me.
Builds fine for me now on NetBSD-6.1.2/amd64. Thanks!
Later...
Greg Oster
State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 24 Nov 2013 04:07:30 +0000
State-Changed-Why:
Submitter says it works on 6.1, and it works for me too on -current now.
thanks :-)
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.