HEADS UP: No gcc by default in -HEAD on platforms where clang is cc
David Chisnall
theraven at FreeBSD.org
Mon Sep 9 13:38:00 UTC 2013
On 9 Sep 2013, at 14:27, Ulrich Spörlein <uqs at FreeBSD.org> wrote:
> Case in point, I only recently switched to clang in base and now the
> newsbeuter port crashes during startup (yeah, it builds fine). So all
> I'm asking for now is: how can I override a random port to be built with
> gcc (either from base or ports, I don't care). And what special
> considerations need to be done when the port uses C++.
Setting USE_GCC=any to build with any gcc, or USE_GCC=yes to build with a gcc from ports (they should do the same thing on a no-gcc-in-base system)
For C++ ports, can you check whether the error is from libc++ or clang, by first building libstdc++ from base and then setting CXXFLAGS=-stdlib=libstdc++ and LDFLAGS=-stdlib=libstdc++? This will build it with libstdc++ and if that works then it narrows the issue down.
Also, don't forget to report bugs to the port maintainer...
David
More information about the freebsd-current
mailing list