From owner-freebsd-mips@freebsd.org Mon Aug 29 15:09:38 2016 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0FCECBC77C3 for ; Mon, 29 Aug 2016 15:09:38 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from mail.ignoranthack.me (ignoranthack.me [199.102.79.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E907623EF for ; Mon, 29 Aug 2016 15:09:37 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from [192.168.0.6] (67-0-45-125.albq.qwest.net [67.0.45.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id 4195D192908; Mon, 29 Aug 2016 15:09:31 +0000 (UTC) To: "freebsd-mips@freebsd.org" From: Sean Bruno Subject: Clang/LLVM enabled builds for mips/mips64 Message-ID: <88751282-c9d2-a673-18bc-184edc02efd0@freebsd.org> Date: Mon, 29 Aug 2016 09:09:26 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="91N63T181CP4a4gQWl41EnU2EEJwAdTeg" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2016 15:09:38 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --91N63T181CP4a4gQWl41EnU2EEJwAdTeg Content-Type: multipart/mixed; boundary="FggPXJO80qUTLT10AAOkOjofdeaBUdoxn" From: Sean Bruno To: "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--