Can't use gcc in a clang built world

Dimitry Andric dimitry at andric.com
Thu Jun 27 11:06:11 UTC 2013


On 2013-06-27 02:02, Kevin Day wrote:
> Are you supposed to be able to use gcc to build userland binaries if you built world with clang?
>
> I'm on -CURRENT as of a few days ago (using armv6 but i'm not sure if that matters).

Yes, the arch matters a lot.  For arm, adding __clear_cache() to libgcc
was explicitly disabled by Andrew here:

http://svnweb.freebsd.org/base?view=revision&revision=244382

"Don't provide clear_cache or the __sync_* functions on ARM with clang
as they are provided by clang as builtin functions."

Maybe those functions should be in libgcc after all, if other programs
depend on this.

-Dimitry


More information about the freebsd-hackers mailing list