Re: HEADS UP: No gcc by default in -HEAD on platforms where clang is cc

From: David Chisnall <theraven_at_FreeBSD.org>
Date: Mon, 9 Sep 2013 14:37:51 +0100
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
Received on Mon Sep 09 2013 - 11:38:00 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:41 UTC