From owner-freebsd-current@FreeBSD.ORG Thu Jan 31 04:38:03 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3CCF79E3; Thu, 31 Jan 2013 04:38:03 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id 5B7569B4; Thu, 31 Jan 2013 04:38:02 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) with esmtp (envelope-from ) id <1U0luT-001MwR-FN>; Thu, 31 Jan 2013 05:38:01 +0100 Received: from e178012136.adsl.alicedsl.de ([85.178.12.136] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.69) with esmtpsa (envelope-from ) id <1U0luT-00297d-9F>; Thu, 31 Jan 2013 05:38:01 +0100 Message-ID: <5109F527.2030702@zedat.fu-berlin.de> Date: Thu, 31 Jan 2013 05:37:59 +0100 From: "O. Hartmann" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: David Wolfskill Subject: Re: r246057: buildworld fails with: /usr/obj/usr/src/tmp/usr/lib/libc++.so: undefined reference to `std::bad_alloc::~bad_alloc()' References: <51079F0A.20309@zedat.fu-berlin.de> <20130129163554.GW1804@albert.catwhisker.org> In-Reply-To: <20130129163554.GW1804@albert.catwhisker.org> X-Enigmail-Version: 1.4.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig6CFC32B69C58CA091C756559" X-Originating-IP: 85.178.12.136 Cc: Current FreeBSD , David Chisnall X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2013 04:38:03 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6CFC32B69C58CA091C756559 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 01/29/13 17:35, schrieb David Wolfskill: > On Tue, Jan 29, 2013 at 11:06:02AM +0100, O. Hartmann wrote: >> I receive this error since yesterday building world and it is still >> sticky on most recent sources (r246057) and I was wondering why the >> tinderboxes do not pick this up on the 10.0-CURRENT builds ... just fo= r >> a notice for the development folks ... >> ...=20 >> =3D=3D=3D> libexec/atf/atf-check (all) >> ... >> c++ -O3 -pipe -fno-strict-aliasing -march=3Dnative -march=3Dnative >> -DHAVE_CONFIG_H -I/usr/src/libexec/atf/atf-check/../../../contrib/atf >> -Qunused-arguments -fstack-protector -Wsystem-headers -Wall >> -Wno-format-y2k -W -Wno-unused-parameter -Wpointer-arith >> -Wno-uninitialized -Wno-empty-body -Wno-string-plus-int >> -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality >> -Wno-unused-function -Wno-conversion -stdlib=3Dlibc++ -std=3Dc++11 >> -L/usr/obj/usr/src/libexec/atf/atf-check/../../../lib/atf/libatf-c++ >> -L/usr/obj/usr/src/libexec/atf/atf-check/../../../lib/atf/libatf-c -o >> atf-check atf-check.o -latf-c++ -latf-c >> /usr/obj/usr/src/tmp/usr/lib/libc++.so: undefined reference to >> `std::bad_alloc::~bad_alloc()' >> /usr/obj/usr/src/libexec/atf/atf-check/../../../lib/atf/libatf-c++/lib= atf-c++.so: >> undefined reference to `std::bad_alloc::bad_alloc()' >> /usr/obj/usr/src/libexec/atf/atf-check/../../../lib/atf/libatf-c++/lib= atf-c++.so: >> undefined reference to `std::bad_alloc::~bad_alloc()' >> /usr/obj/usr/src/tmp/usr/lib/libc++.so: undefined reference to >> `std::bad_alloc::bad_alloc()' >> c++: error: linker command failed with exit code 1 (use -v to see >> invocation) >> *** [atf-check] Error code 1 >> >> Stop in /usr/src/libexec/atf/atf-check. >> *** [all] Error code 1 >> ... >=20 > In contrast, I don't see a problem; most recent head build I have is: >=20 > FreeBSD freebeast.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #105= 7 r246057M/246068: Tue Jan 29 07:29:55 PST 2013 root@freebeast.catwh= isker.org:/usr/obj/usr/src/sys/GENERIC i386 >=20 >=20 > For reference, yesterday's was: >=20 > FreeBSD freebeast.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #105= 6 r246028M/246028: Mon Jan 28 06:49:44 PST 2013 root@freebeast.catwh= isker.org:/usr/obj/usr/src/sys/GENERIC i386 >=20 >=20 > That said (and this may be relevant), I'm using clang/clang++ to > build FreeBSD. >=20 > Peace, > david >=20 First, I suspected the c++ option "-std=3Dc++11" I issued in /etc/src.con= f when building the sources - I did this before without any problems. Then, leaving the build without "-std=3Dc++11" option, I get the followin= g error below and compilation stops. Maybe this reveals the real issue. The revision of the OS I compile on and where it fails is FreeBSD 10.0-CURRENT #2 r245995: Sun Jan 27 19:56:47 CET 2013. This is maybe of any help. The sources are at Revision: 246142 Oliver [...] /usr/obj/usr/src/tmp/usr/include/c++/v1/memory:3771:14: error: default template arguments for a function template are a C++11 extension [-Werror,-Wc++11-extensions] class =3D typename enable_if ^ ~~~~~~~~~~~~~~~~~~ fatal error: too many errors emitted, stopping now [-ferror-limit=3D] In file included from /usr/src/lib/atf/libatf-c++/../../../contrib/atf/atf-c++/detail/applicati= on.cpp:42: In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/iostream:38= : In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/ios:216: In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/__locale:15= : In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/string:434:= In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/algorithm:5= 94: In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/memory:597:= /usr/obj/usr/src/tmp/usr/include/c++/v1/__functional_base:22:1: error: inline namespaces are a C++11 feature [-Werror,-Wc++11-extensions] _LIBCPP_BEGIN_NAMESPACE_STD ^ /usr/obj/usr/src/tmp/usr/include/c++/v1/__config:275:52: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_STD' #define _LIBCPP_BEGIN_NAMESPACE_STD namespace std {inline namespace _LIBCPP_NAMESPACE { ^ /usr/obj/usr/src/tmp/usr/include/c++/v1/__config:275:52: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_STD' #define _LIBCPP_BEGIN_NAMESPACE_STD namespace std {inline namespace _LIBCPP_NAMESPACE { ^ In file included from /usr/src/lib/atf/libatf-c++/../../../contrib/atf/atf-c++/detail/applicati= on.cpp:42: In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/iostream:38= : In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/ios:216: In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/__locale:15= : In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/string:434:= In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/algorithm:5= 94: /usr/obj/usr/src/tmp/usr/include/c++/v1/memory:614:1: error: inline namespaces are a C++11 feature [-Werror,-Wc++11-extensions] _LIBCPP_BEGIN_NAMESPACE_STD ^ /usr/obj/usr/src/tmp/usr/include/c++/v1/__config:275:52: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_STD' In file included from /usr/src/lib/atf/libatf-c++/../../../contrib/atf/atf-c++/build.cpp:36: In file included from /usr/src/lib/atf/libatf-c++/../../../contrib/atf/atf-c++/build.hpp:33: In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/string:434:= In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/algorithm:5= 94: /usr/obj/usr/src/tmp/usr/include/c++/v1/memory:3764:14: error: default template arguments for a function template are a C++11 extension [-Werror,-Wc++11-extensions] class =3D typename enable_if ^ ~~~~~~~~~~~~~~~~~~ /usr/obj/usr/src/tmp/usr/include/c++/v1/memory:3771:14: error: default template arguments for a function template are a C++11 extension [-Werror,-Wc++11-extensions] class =3D typename enable_if ^ ~~~~~~~~~~~~~~~~~~ fatal error: too many errors emitted, stopping now [-ferror-limit=3D] In file included from /usr/src/lib/atf/libatf-c++/../../../contrib/atf/atf-c++/detail/applicati= on.cpp:42: In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/iostream:38= : In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/ios:216: In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/__locale:15= : In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/string:434:= In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/algorithm:5= 94: In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/memory:599:= /usr/obj/usr/src/tmp/usr/include/c++/v1/tuple:126:1: error: inline namespaces are a C++11 feature [-Werror,-Wc++11-extensions] _LIBCPP_BEGIN_NAMESPACE_STD ^ /usr/obj/usr/src/tmp/usr/include/c++/v1/__config:275:52: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_STD' #define _LIBCPP_BEGIN_NAMESPACE_STD namespace std {inline namespace _LIBCPP_NAMESPACE { ^ #define _LIBCPP_BEGIN_NAMESPACE_STD namespace std {inline namespace _LIBCPP_NAMESPACE { ^ fatal error: too many errors emitted, stopping now [-ferror-limit=3D] In file included from /usr/src/lib/atf/libatf-c++/../../../contrib/atf/atf-c++/detail/applicati= on.cpp:42: In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/iostream:38= : In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/ios:216: In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/__locale:15= : In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/string:434:= In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/algorithm:5= 94: /usr/obj/usr/src/tmp/usr/include/c++/v1/memory:614:1: error: inline namespaces are a C++11 feature [-Werror,-Wc++11-extensions] _LIBCPP_BEGIN_NAMESPACE_STD ^ /usr/obj/usr/src/tmp/usr/include/c++/v1/__config:275:52: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_STD' #define _LIBCPP_BEGIN_NAMESPACE_STD namespace std {inline namespace _LIBCPP_NAMESPACE { ^ fatal error: too many errors emitted, stopping now [-ferror-limit=3D] 20 errors generated. 20 errors generated. *** [application.o] Error code 1 *** [application.So] Error code 1 20 errors generated. *** [build.o] Error code 1 20 errors generated. *** [build.So] Error code 1 4 errors *** [all] Error code 2 1 error *** [all] Error code 2 1 error *** [lib__L] Error code 2 1 error *** [libraries] Error code 2 1 error *** [_libraries] Error code 2 1 error *** [buildworld] Error code 2 1 error --------------enig6CFC32B69C58CA091C756559 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQEcBAEBAgAGBQJRCfUpAAoJEOgBcD7A/5N8J1gH/1Yt0JRbuyugiZatFNOopv98 hH06FuWqC52RJ1OxTdhTYpvTY4roIP0u2B2KE0EQiUxt83pOX0sAJwVw3fDJhTPh od0e+5cEu24Yh2UUKJSbnoNzgs2eXSmM1r7LvWC6jqlNa7PZ7/foXnx17joRaN7m h4imA2unaJAnilAJbYHr52ych7oTNphGqaYKOhmueWrxuMlCj3NwY5Mpe9lVz1zs ss5YDonDZCTjQs/ZBGGSXPConpXrjZbV7ovP3Qd9FG82B+sbb+IbHq95P/YkhoeV p/dVXtPXEWRWL7Ki2fz+w2x0Wa51akgYvWDPfc8mf647o8wO8l1KYZ3wvuxzxQE= =o8B/ -----END PGP SIGNATURE----- --------------enig6CFC32B69C58CA091C756559--