From owner-freebsd-toolchain@freebsd.org Fri Feb 10 16:30:19 2017 Return-Path: Delivered-To: freebsd-toolchain@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 4EC63CD9E46; Fri, 10 Feb 2017 16:30:19 +0000 (UTC) (envelope-from freebsdml@marino.st) Received: from shepard.synsport.com (mail.synsport.com [208.69.230.148]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2A26B1699; Fri, 10 Feb 2017 16:30:18 +0000 (UTC) (envelope-from freebsdml@marino.st) Received: from [127.0.0.1] (ip72-204-83-236.fv.ks.cox.net [72.204.83.236]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by shepard.synsport.com (Postfix) with ESMTP id 89DB243C07; Fri, 10 Feb 2017 10:28:31 -0600 (CST) Subject: Re: How to get a crosscompile toolchain for aarch64 for use in poudriere[?] To: "Meyer, Wolfgang" , "'freebsd-arm@FreeBSD.org'" , "'freebsd-toolchain@FreeBSD.org'" References: From: John Marino Message-ID: Date: Fri, 10 Feb 2017 10:30:15 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 170210-1, 02/10/2017), Outbound message X-Antivirus-Status: Clean X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2017 16:30:19 -0000 On 2/10/2017 10:24, Meyer, Wolfgang wrote: >> >> I don't know if this will help, but I created a proper [1] >> cross-compiler for aarch64 last week: >> http://www.freshports.org/lang/gnatcross-aarch64/ >> >> John >> >> [1] By proper, I mean based on FreeBSD/ARM64 sysroot (currently >> only Release 11.0 available) >> > > Thanks, I will look at it next week. Is there a documentation on how > the toolchain was created, or is it basically along the lines of > normal gcc-based toolchain creation? The ports makefiles are recipes. If you want to know how something is built, you look at those. There are many cross-compiler ports in the tree. The only thing special about this one is that a bootstrap compiler is used in order to build the Ada front-end. But that's just a case of specifying it over a base compiler. > Although I somehow would prefer > if I can manage to base my cross-compile toolchain on the base system > toolchain. Good luck, since that's impossible. Cross-compilers need their own set of binutils for the target system. You're not going to be able to do better than what I did. John