Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 May 2015 11:55:08 -0700
From:      Garrett Cooper <yaneurabeya@gmail.com>
To:        Brooks Davis <brooks@freebsd.org>
Cc:        "sbruno@freebsd.org" <sbruno@freebsd.org>, "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Re: Trying to use clang/head and XCC
Message-ID:  <168384B2-A313-4D10-8E5C-2A7A7FC807B7@gmail.com>
In-Reply-To: <20150519165332.GA36377@spindle.one-eyed-alien.net>
References:  <555B638E.4020405@ignoranthack.me> <20150519165332.GA36377@spindle.one-eyed-alien.net>

next in thread | previous in thread | raw e-mail | index | archive | help

> On May 19, 2015, at 09:53, Brooks Davis <brooks@freebsd.org> wrote:
>=20
>> On Tue, May 19, 2015 at 09:23:42AM -0700, Sean Bruno wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA512
>>=20
>> Following the External Tool Chain instructions on the wiki seem to not
>> work:
>> https://wiki.freebsd.org/ExternalToolchain
>>=20
>> I've gotten about this far:
>> https://people.freebsd.org/~sbruno/clang_head_build_log.txt
>=20
> You need to delete
> /home/sbruno/bsd/clang/build/bin/../lib/clang/3.7.0/include/std* and
> possibly also limits.h (it's broken for libstand on mips).  If you use
> the ports/pkgs they do this.
>=20
>> Two items of note.
>> -- The bootstrap bits *completely* ignore XCC and build with the host
>> cc/c++
>=20
> That's expected.  In principle clang could be used as the cross compiler
> since it's multi-target, but gcc could never work unless the host and
> target are the same.
>=20
>> -- No documentation of what CFLAGS are required to build and ignore
>> warnings.
>=20
> It will change with every clang/gcc release.  In practice you will need
> to either fix the warnings wack-a-mole style or set NO_WERROR in the
> environment.
>=20
> -- Brooks
>=20
>>=20
>> Anyone out there have success doing this?

It'd be really nice if FreeBSD had HOST_CC, etc or something like that. It's=
 unfortunate that I can't build 10.x on hosts with clang 3.6 installed becau=
se it fails to make bootstrap-tools (which needs to be built with the host c=
ompiler) because of -Werror ;(...

Thanks,
-NGie=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?168384B2-A313-4D10-8E5C-2A7A7FC807B7>