Trying to use clang/head and XCC

Brooks Davis brooks at freebsd.org
Tue May 19 16:53:40 UTC 2015


On Tue, May 19, 2015 at 09:23:42AM -0700, Sean Bruno wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> Following the External Tool Chain instructions on the wiki seem to not
> work:
> https://wiki.freebsd.org/ExternalToolchain
> 
> 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

> 
> Anyone out there have success doing this?
> 
> sean
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
> 
> iQF8BAEBCgBmBQJVW2OLXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
> ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx
> MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5k3mQIAKuOxH8h1AdG19pVCks2N91i
> u50m/EWqyhOqJtW9PzHgFhmph8dtzZQVXbh3JG2Ac8bQjHdvuFP4yG5PJKISK3ZQ
> 2JhD+8B2qrJlv6kocE39WiSEXZRf6nQkbrh/DNzRN0tDHPtxsJ6vfN7j5oWap32j
> ZKVMq4I61zmACN/trb/8Ns2bmwRKd003F5vmytx4FG1vA3Q14l/URvcBmFstPGDq
> nmcvMf2oU190R2XQEwuqmkTGouaIkJ1j28x4/I4lH+tLKPKkErklpZxxm+jf+QQd
> j++8+zoiEQVYrEPKEoc5xd1V393vvt5+kc7Kqo2kqJrK4+EjsLpSQMuQ9tDgQRU=
> =wYq7
> -----END PGP SIGNATURE-----
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20150519/e477f062/attachment.sig>


More information about the freebsd-hackers mailing list