Date: Mon, 29 Aug 2016 09:09:26 -0600 From: Sean Bruno <sbruno@freebsd.org> To: "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org> Subject: Clang/LLVM enabled builds for mips/mips64 Message-ID: <88751282-c9d2-a673-18bc-184edc02efd0@freebsd.org>
next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --91N63T181CP4a4gQWl41EnU2EEJwAdTeg Content-Type: multipart/mixed; boundary="FggPXJO80qUTLT10AAOkOjofdeaBUdoxn" From: Sean Bruno <sbruno@freebsd.org> To: "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org> Message-ID: <88751282-c9d2-a673-18bc-184edc02efd0@freebsd.org> Subject: Clang/LLVM enabled builds for mips/mips64 --FggPXJO80qUTLT10AAOkOjofdeaBUdoxn Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Made some excellent progress over the last few weeks. Here's a quick status update. I can boot(then crash) a mips64 kernel in QEMU via the MALTA64 kernconf. I can buildworld for mips32, but the kernel fails. QEMU MALTA64 kernel crash: http://people.freebsd.org/~sbruno/malta64_qemu_crash.txt MIPS32 buildkernel failure: http://people.freebsd.org/~sbruno/malta32_buildkernel.txt Clang/LLVM patches that you need to apply when using and external toolcha= in: https://reviews.llvm.org/D23652 https://reviews.llvm.org/D23795 https://reviews.llvm.org/D23497 Minor Patch to enable inline ASM by default for mips targets: http://people.freebsd.org/~sbruno/clang_mips_default_ias.diff Build the FreeBSD tree in my project branch, its got a few things changed to make it easier to build/test: https://svnweb.freebsd.org/base/projects/mips64-clang/ Use a make.conf(change XCC/XCPP/XCXX to *your* build of clang) MALLOC_PRODUCTION=3Dy NO_WERROR=3Dy TARGET=3Dmips TARGET_ARCH=3Dmips64 KERNCONF=3DMALTA64 XCC=3D/home/sbruno/bsd/clang/build/bin/clang XCPP=3D/home/sbruno/bsd/clang/build/bin/clang-cpp XCXX=3D/home/sbruno/bsd/clang/build/bin/clang++ XCFLAGS=3D-Wno-typedef-redefinition -Wno-pointer-sign -Wno-expansion-to-defined -Wno-address-of-packed-member -msoft-float -fpi= c Use a src.conf: WITHOUT_CLANG=3D"YES" WITHOUT_CLANG_EXTRAS=3D"YES" WITHOUT_CLANG_FULL=3D"YES" WITHOUT_CLANG_BOOTSTRAP=3D"YES" WITHOUT_GCC=3D"YES" WITHOUT_GDB=3D"YES" WITHOUT_TESTS=3D"YES" WITHOUT_RESCUE=3D"YES" --FggPXJO80qUTLT10AAOkOjofdeaBUdoxn-- --91N63T181CP4a4gQWl41EnU2EEJwAdTeg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJXxFAmXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5krNcH/RdS3YH3OMz6ohS7pHHGuZA0 j6TURdaE4LWGOtarX6VfoL3aZs0orAZ1eWpv+TG8L3vAqOCD4SFlzQ3Hjnez0i7E Pxbx2DIaimiHfaiqJgG3N58EY1OxrZ5cks+3vzy6EZAFoVPI6TD/2MlzO5I+xoDQ 0E22Crp55K8ZkJutSQPO9+kjafHSJPAW+6jvXAwlR3srQDbB+8WILa70/OJ9B+Jm a1QRlWPZ+ixrQq+WMhnFzLpKlMbPgCCT1xbwdcOEN/ZDIJB8zxsZGpf/eDZRHl8M +8EMkK+gVMx5np8/3wTZSoL1x6bzED5hkIX1Lrvn5Uyc/5Fr6wEegYBNV2QF010= =So7f -----END PGP SIGNATURE----- --91N63T181CP4a4gQWl41EnU2EEJwAdTeg--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?88751282-c9d2-a673-18bc-184edc02efd0>