From owner-freebsd-arch@FreeBSD.ORG Tue Jan 6 23:12:53 2015 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E8716569 for ; Tue, 6 Jan 2015 23:12:53 +0000 (UTC) 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 C8D3AE20 for ; Tue, 6 Jan 2015 23:12:53 +0000 (UTC) Received: from [10.12.76.127] (llnw-corp-src.phx2.llnw.com [69.164.56.1]) (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 0C434192A3B for ; Tue, 6 Jan 2015 23:12:51 +0000 (UTC) Message-ID: <54AC6BEC.2020500@ignoranthack.me> Date: Tue, 06 Jan 2015 15:12:44 -0800 From: Sean Bruno Reply-To: sbruno@freebsd.org User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: freebsd-arch@freebsd.org Subject: How to use an external tool chain, mips/mips64 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jan 2015 23:12:54 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 In an effort to help out migration of our tool chains, I've started to play with clang/llvm trunk to see what the mips/mips64 support looks like. I don't know the correct-foo to do a buildworld, but this is what I've tried: Build a valid toolchain: http://clang.llvm.org/get_started.html This allows me to use /home/sbruno/build/Debug+Asserts/bin/ as my toolchain dir Symlink clang -> cc and clang++ ->cpp Try a buildworld for TARGET=3Dmips TARGET_ARCH=3Dmips make TARGET=3Dmips TARGET_ARCH=3Dmips CROSS_TOOLCHAIN_PREFIX=3D/home/sbruno/build/Debug+Asserts/bin/ buildworld= This fails, as I haven't setup the assembler correctly or something.=20 I'm not sure. https://people.freebsd.org/~sbruno/full_mips_log.txt -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJUrGvpXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5kZq0H/j/ZmVVpvUXxaqBKa4+17ERH j6A8L9dyuBU6sFlZ7KbPYq4iOQyAfPYnu1l75FPEu1m7G+GqxDLtPnXiGOsoGFKR CkNz3/oBtlHm2edWRA7kHraiTR5COW3i+DfrCumDkYV5EcRClFR6I4vl19bxs3pW VFpnFcUsnvac29J6Qlz4JBxco9eLqoeeqBjHHazuxL6AZGxew5YgjIcQY/onFhNS jQJ6PXLe/+BXSdf+lRG43wkLroNOPqO63RMwdYYIHJHGYpPvxmSIVwZPwn29UDW0 jc8Th4gwucy4LBgRQ1HFHmHQNr15vAkWz5SxGoxTUfdu4trzrHtvZl25rPEKKbI=3D =3D9IsJ -----END PGP SIGNATURE-----