buildworld with clang breaks because no cc

Dimitry Andric dimitry at andric.com
Sat Nov 24 12:55:45 UTC 2012


On 2012-11-23 15:14, Beeblebrox wrote:
> Thanks for the suggestion. Build progressed a little further then had other
> problem:
>
> ===> gnu/lib/libstdc++ (all)
> building shared library libstdc++.so.6
> /usr/obj/asp/src/tmp/usr/bin/ld: warning: creating a DT_TEXTREL in a shared
> object.

I am not sure what causes this.  Maybe strange CFLAGS in make.conf?  Or
is this still with ccache?


> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> *** [libstdc++.so.6] Error code 1
> Stop in /asp/src/gnu/lib/libstdc++.
> *** [all] Error code 1
> Stop in /asp/src/gnu/lib.
> *** [gnu/lib__L] Error code 1
>
> Why is it building gcc4.2 ??

This is not gcc, it is libstdc++.  Currently, there is no way to disable
it, as many applications will still use it.  After libc++ has matured
enough, it can probably be moved to a compat port, but that will
certainly not happen in the 9.x series. :)


> Should I not be using WITH_CLANG_IS_CC= yes ?
> Bummer...

This setting should work just fine.


More information about the freebsd-stable mailing list