Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 May 2015 16:53:32 +0000
From:      Brooks Davis <brooks@freebsd.org>
To:        sbruno@freebsd.org
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Re: Trying to use clang/head and XCC
Message-ID:  <20150519165332.GA36377@spindle.one-eyed-alien.net>
In-Reply-To: <555B638E.4020405@ignoranthack.me>
References:  <555B638E.4020405@ignoranthack.me>

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

--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

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.

> Two items of note.
>  -- The bootstrap bits *completely* ignore XCC and build with the host
> cc/c++

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.

>  -- No documentation of what CFLAGS are required to build and ignore
> warnings.

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.

-- Brooks

>=20
> Anyone out there have success doing this?
>=20
> sean
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>=20
> iQF8BAEBCgBmBQJVW2OLXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
> ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx
> MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5k3mQIAKuOxH8h1AdG19pVCks2N91i
> u50m/EWqyhOqJtW9PzHgFhmph8dtzZQVXbh3JG2Ac8bQjHdvuFP4yG5PJKISK3ZQ
> 2JhD+8B2qrJlv6kocE39WiSEXZRf6nQkbrh/DNzRN0tDHPtxsJ6vfN7j5oWap32j
> ZKVMq4I61zmACN/trb/8Ns2bmwRKd003F5vmytx4FG1vA3Q14l/URvcBmFstPGDq
> nmcvMf2oU190R2XQEwuqmkTGouaIkJ1j28x4/I4lH+tLKPKkErklpZxxm+jf+QQd
> j++8+zoiEQVYrEPKEoc5xd1V393vvt5+kc7Kqo2kqJrK4+EjsLpSQMuQ9tDgQRU=3D
> =3DwYq7
> -----END PGP SIGNATURE-----
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
>=20

--AqsLC8rIMeq19msA
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJVW2qLAAoJEKzQXbSebgfAxbMH/jI7ia+dO/b4uaxHmVe1rZLf
uPXkv8N4gG8ShJL262F9SOmyqPFOCEl0+VwN+3ICthKCOFhv5RXcOEdpEoLKO//B
H/SN2xAFVhYPb7qhI0I4ORJ+z43CejD0vHcloawz3QeTSpMQY4bgFZy2ZZYbOoat
0L4mHzNbQLlPnsHiCvd7CH9KeHHdwn3+WqJO1c/DU59ZCuwkDzS2urAWzRuHeUA5
cpRtS4TMBp5RnCZsznziaEQzYPHwjKApUXzh5vE8Gk1rYgDMIA5p2jxY1ksND1S4
M5mmd5HpT4VLxuVthMNFJiTqF6SptS3mwsXAxfGUK5acvXiFMQyTDjOfu6pstVU=
=0GjU
-----END PGP SIGNATURE-----

--AqsLC8rIMeq19msA--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150519165332.GA36377>