Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Sep 2013 17:58:16 +0200
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        freebsd-current@freebsd.org, kde@FreeBSD.org, freebsd-ports@freebsd.org, rakuco@FreeBSD.org
Subject:   Re: ports/181913: devel/qt4-script: /usr/include/c++/v1/type_traits:3175:22: error: call to 'swap' is ambiguous
Message-ID:  <20130908175816.1b9680c6@thor.walstatt.dyndns.org>
In-Reply-To: <0F2C94E4-A544-482F-A479-B7E70D49E615@FreeBSD.org>
References:  <201309072249.r87MnsLP052803@freefall.freebsd.org> <20130908081445.242f77c7@thor.walstatt.dyndns.org> <0F2C94E4-A544-482F-A479-B7E70D49E615@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/ZYZSQm5RiR9GFU6ZUZ0As2g
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

On Sun, 8 Sep 2013 14:57:01 +0200
Dimitry Andric <dim@FreeBSD.org> wrote:

> On Sep 8, 2013, at 08:14, O. Hartmann <ohartman@zedat.fu-berlin.de>
> wrote:
> > On Sat, 7 Sep 2013 22:49:54 GMT
> > rakuco@FreeBSD.org wrote:
> >=20
> >> Synopsis:
> >> devel/qt4-script: /usr/include/c++/v1/type_traits:3175:22: error:
> >> call to 'swap' is ambiguous
> >>=20
> >> State-Changed-From-To: open->patched
> >> State-Changed-By: rakuco
> >> State-Changed-When: Sat Sep 7 22:47:43 UTC 2013
> >> State-Changed-Why:=20
> >> I don't think the previous version worked.
> >>=20
> >> From your description, it looks like you've switched to building
> >> with libc++ whereas libstdc++ was being used before.
> >>=20
> >> The upcoming Qt 4.8.5 plus a few patches which only made it to
> >> 4.8.6 (but we've backported) will finally make Qt build with
> >> libc++.
> >>=20
> >> We've just sent an exp-run request for Qt 4.8.5, and will hopefully
> >> fix all these errors once it is committed.
> >>=20
> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=3D181913
> >=20
> > I build the world/kernel since early this year with=20
> >=20
> > CXXFLAGS+=3D              -stdlib=3Dlibc++
> > CXXFLAGS+=3D              -std=3Dc++11
> >=20
> >=20
> > in /etc/src.conf. I do not use those flags
> > in /etc/make.conf! /etc/src.conf is supposed to target ONLY
> > the /usr/src world, not the ports - this is as I interpret the man
> > page for /etc/src.conf and it would be logical. But this
> > rule/thinking seems to be broken by some includes
> > from /usr/ports/Mk ingredients.
>=20
> Since r255321, -stdlib=3Dlibc++ is effectively the default, at least
> when you haven't set gcc as the default compiler.  So it also applies
> to ports, which unavoidably will lead to a bit of fallout.  My
> personal experience is that most C++-based ports compile fine with
> libc++ instead of libstdc++, except for a few that rely on internal
> libstdc++ details.
>=20
> However, -std=3Dc++11 is *not* yet the default, and C++11 has different
> rules here and there, so some ports might fail to compile due to this.
> For some ports, too much hacking may be required to make them work
> with C++11.  So in case of trouble, try removing -std=3D, or setting it
> to different values (c++0x, c++98, gnu++98, etc), to get the port to
> compile.
>=20
> Note the base system should have no problems with -std=3Dc++11, so
> please continue to use the option in src.conf, and report any
> problems if you encounter them, so we can fix them. :-)
>=20
> -Dimitry
>=20

Hello Dimitry.

I ONLY use -std=3Dc++11 in /etc/src.conf. The base system had never
problems so far since I use it. In /etc/make.conf, I avoid it.

But, and this is obviously a logical incosistency, the ports system
includes also /etc/src.conf, and I consider /etc/src.conf as base
system only as the man page suggests.

But the discussion has already been on the list. Somewhere in the
basd.*.mk files, /etc/src.conf is included. And I guess therefore it
comes to problems.=20

Oliver


--Sig_/ZYZSQm5RiR9GFU6ZUZ0As2g
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.21 (FreeBSD)

iQEcBAEBAgAGBQJSLJ6eAAoJEOgBcD7A/5N8Sj8IAI9ka6C2ttIBi5QjUknmuv9C
MRs+fAedC0FMssosmXx2r474fWm/lzxWor1boFheaN1bU36bshVRXvREXoDQWAFq
R2jfh55NZaPVqozozNV7DdFHX3TAbjUeR01n/XyTxuTomzO6d7qxwvbsQTQFj5Ln
B6hL7IZ42CM98LHGz9X/mLrQWQGDWnXQElckZ7pu+ssz910fOiESyWErtzDliAJf
Yv/3+gmTkWjfxEaF3oUrFaF4zbFlrP7iUSElF4DBFnd/J7/7hAUGBUly/vQlhrH4
XMgIk5t/s5EnkvwIb2VDCpVZNWhQ7ycXkFdB6Zf1zkfwJ8MTbBql5KNXHZc8aSg=
=K68D
-----END PGP SIGNATURE-----

--Sig_/ZYZSQm5RiR9GFU6ZUZ0As2g--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130908175816.1b9680c6>