Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Nov 2013 12:52:16 -0500
From:      Ryan Stone <rysto32@gmail.com>
To:        mva@freebsd.org
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: libc++ vs. libstdc++ usage in the ports tree (was: Re: Are clang++ and libc++ compatible?)
Message-ID:  <CAFMmRNxk25AJ3TMuceSG=EmL3qSE9Xhk_wpL5pAD8YvZrA6gkg@mail.gmail.com>
In-Reply-To: <20131113173143.Horde.a-9M7JQ_vHo3tpDIMsGK6g1@webmail.df.eu>
References:  <20131112163219.GA2834@troutmask.apl.washington.edu> <77CB2B92-216A-4C80-B033-7E582B5F0DFC@FreeBSD.org> <20131112165422.GA2939@troutmask.apl.washington.edu> <E0FE40D9-726C-4501-B31A-3622510C1C68@FreeBSD.org> <20131112175556.GA3319@troutmask.apl.washington.edu> <20131112201922.GA4330@troutmask.apl.washington.edu> <20131113173143.Horde.a-9M7JQ_vHo3tpDIMsGK6g1@webmail.df.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Nov 13, 2013 at 11:31 AM, Marcus von Appen <mva@freebsd.org> wrote:
> This brings up another point into which I am running with the previously
> discussed blender issue.
>
> Let's assume port A_defcompiler does not specify a compiler and c++ lib, it
> will default to libc++ and clang++ on 10.x or newer, correct?
> If now a port B_gnuish depends on port A_defcompiler, but at the same
> defines
> GCC + libstdc++, the resulting binary might link against libc++ and
> libstdc++
> at the same time. This in turn makes the port unusable. The same applies
> to the other way around.
>
> Right now we do not have mechanism to detect and handle those flaws.
> Maintainers
> might be even less aware of those issues. Does anyone know a proper way to
> deal
> with this at the moment on 10.x+ or is this something that was missed until
> now?

How different is this from the previous situation?  As I understand it
previously A_defcompiler would be linked against the system libstdc++
and B_gnuish would be linked against the gccXX port libstdc++.  In my
experience libstdc++ does not have good ABI stability between versions
so shouldn't you have the same potential for problems?



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