From owner-freebsd-current@FreeBSD.ORG Thu Sep 12 21:11:26 2013 Return-Path: Delivered-To: freebsd-current@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 ESMTP id 65FBEBD0 for ; Thu, 12 Sep 2013 21:11:26 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2203C27D6 for ; Thu, 12 Sep 2013 21:11:25 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::c8ff:9f0c:dca7:7a65] (unknown [IPv6:2001:7b8:3a7:0:c8ff:9f0c:dca7:7a65]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 295D25C44; Thu, 12 Sep 2013 23:11:24 +0200 (CEST) Content-Type: multipart/signed; boundary="Apple-Mail=_3ACEA3F6-6544-40AF-AF39-E4428339F265"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: HEADS UP: No gcc by default in -HEAD on platforms where clang is cc From: Dimitry Andric In-Reply-To: <245071379015271@web9j.yandex.ru> Date: Thu, 12 Sep 2013 23:11:15 +0200 Message-Id: <5F84DAA0-5021-43D0-BDEF-B0A56AA7B50B@FreeBSD.org> References: <245071379015271@web9j.yandex.ru> To: S.N.Grigoriev X-Mailer: Apple Mail (2.1508) Cc: "freebsd-current@freebsd.org" 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, 12 Sep 2013 21:11:26 -0000 --Apple-Mail=_3ACEA3F6-6544-40AF-AF39-E4428339F265 Content-Type: multipart/mixed; boundary="Apple-Mail=_3C52FE8D-F8B0-4422-87F3-DD04D75E11BF" --Apple-Mail=_3C52FE8D-F8B0-4422-87F3-DD04D75E11BF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Sep 12, 2013, at 21:47, S.N.Grigoriev = wrote: > after upgrading to r255423 (make buildworld && make buildkernel && = make installkernel && make installworld && reboot; make delete-old && = make delete-old-libs) I cannot build the system with the WITH_GCC=3Dyes = and WITH_GNUCXX=3Dyes options in my src.conf. The following error = occures: >=20 > --- libgssapi_krb5.so.10 --- > building shared library libgssapi_krb5.so.10 > --- gnu/lib__L --- > = /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/src/list.cc:61:3: = error: use of undeclared identifier '_List_node_base' > _List_node_base::swap(_List_node_base& __x, _List_node_base& __y) > ^ I just sent a mail to re@ to get approval for a fix for this. In the mean time, please apply the attached patch. -Dimitry --Apple-Mail=_3C52FE8D-F8B0-4422-87F3-DD04D75E11BF Content-Disposition: attachment; filename=fix-libstdc++-build.diff Content-Type: application/octet-stream; name="fix-libstdc++-build.diff" Content-Transfer-Encoding: 7bit Index: gnu/lib/libstdc++/Makefile =================================================================== --- gnu/lib/libstdc++/Makefile (revision 255472) +++ gnu/lib/libstdc++/Makefile (working copy) @@ -636,3 +636,7 @@ CLEANFILES+= ${VERSION_MAP} # Filter out libc++-specific flags, and -std= flags above c++98 or gnu++98. CXXFLAGS:= ${CXXFLAGS:N-stdlib=libc++:N-std=c++[01][13x]:N-std=gnu++[01][13x]} + +.if ${COMPILER_TYPE} == "clang" +CXXFLAGS+= -stdlib=libstdc++ +.endif Index: gnu/lib/libsupc++/Makefile =================================================================== --- gnu/lib/libsupc++/Makefile (revision 255472) +++ gnu/lib/libsupc++/Makefile (working copy) @@ -56,3 +56,7 @@ VERSION_MAP= ${.CURDIR}/Version.map # Filter out libc++-specific flags, and -std= flags above c++98 or gnu++98. CXXFLAGS:= ${CXXFLAGS:N-stdlib=libc++:N-std=c++[01][13x]:N-std=gnu++[01][13x]} + +.if ${COMPILER_TYPE} == "clang" +CXXFLAGS+= -stdlib=libstdc++ +.endif --Apple-Mail=_3C52FE8D-F8B0-4422-87F3-DD04D75E11BF Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii --Apple-Mail=_3C52FE8D-F8B0-4422-87F3-DD04D75E11BF-- --Apple-Mail=_3ACEA3F6-6544-40AF-AF39-E4428339F265 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) iEYEARECAAYFAlIyLfwACgkQsF6jCi4glqOcugCdHfOjnczAaZEhJKl+wDnDetw3 MTgAoMiX80dJyvdbEP523QEZhwULmqol =/ZAN -----END PGP SIGNATURE----- --Apple-Mail=_3ACEA3F6-6544-40AF-AF39-E4428339F265--