Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Sep 2013 23:11:15 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        S.N.Grigoriev <serguey-grigoriev@yandex.ru>
Cc:        "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>
Subject:   Re: HEADS UP: No gcc by default in -HEAD on platforms where clang is cc
Message-ID:  <5F84DAA0-5021-43D0-BDEF-B0A56AA7B50B@FreeBSD.org>
In-Reply-To: <245071379015271@web9j.yandex.ru>
References:  <245071379015271@web9j.yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <serguey-grigoriev@yandex.ru> =
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5F84DAA0-5021-43D0-BDEF-B0A56AA7B50B>