From owner-freebsd-current@freebsd.org Wed Sep 28 06:07:21 2016 Return-Path: Delivered-To: freebsd-current@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 35CE3C00DA3 for ; Wed, 28 Sep 2016 06:07:21 +0000 (UTC) (envelope-from mikael.urankar@gmail.com) Received: from mail-ua0-x236.google.com (mail-ua0-x236.google.com [IPv6:2607:f8b0:400c:c08::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E433AB8A; Wed, 28 Sep 2016 06:07:20 +0000 (UTC) (envelope-from mikael.urankar@gmail.com) Received: by mail-ua0-x236.google.com with SMTP id q42so29474513uaq.2; Tue, 27 Sep 2016 23:07:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=fuOZgmGfdvOqQma7cD9pcq/X8lUhBiM170OerQR6PNQ=; b=DTzm4zzOk6Fit6DqhkGYBPPRxMi2h+RP/EoJCdmw/BTpKYWwSG+JK2SKtfDjMWNTFe JW1A6kC+E47SBSBuZ7/kkJVu6qg2ERI6FMylXPzEjW6S4Vs36SDcCGGW7Kp8RC42jTsh OLm85WtckRBY7y3/jwHkU/tf+v5gvMRsA6Xdol+zPy4wWW48VlJttP5ncTMxnK5+K1pN 5VRvTEkI3TdwIF2rbPbuNt0y9gBycs4kJyMe3B2mMe7hAjQUb13RbVxfLkqh1o6ZvynT BL5wfz3mBDw7OV1FIsNRaup6/0xxn29YiAnCysP/kZI0xkf2MlVnStncCP55IOVT9gGs fPYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=fuOZgmGfdvOqQma7cD9pcq/X8lUhBiM170OerQR6PNQ=; b=gxOf5HRrtF/RMap5+dfjgg/6pK3AfnLDRFTT+1ez3Tdj5XPCKfoCUfJmx3PufvR2dV GKMxCDjc23QqF0myhWmyB2cCJEA0H2RKGQms9uczpCPSmJRi9KGCVcDcj9m31Qywhj64 NoT7BvaZCk/wubE7j6MQnEd6IHshkMcR/4UVPBsm7AvwWRtICM5Qhw5K25uefggl7Lx5 HUDRF4FRT45KH+wpbm91cWPZnFK3Bvsz1cinUjQ/WmCB9y0lfWdD+UN1Y604asboq++6 dJgcrtYD/7Zvs7kTVIpyiZ/1z797lOaTLTJvJWhUIq/ko90EqvBIYXSH2mjJTKUgP/pI 3L/g== X-Gm-Message-State: AA6/9RlruSthM+jeW+7bC4i71IyodU6slfET8hOJ7egqykVjvqZZdP23RoHEh/GsMDk0RFq9uBijpA1F/QUU8A== X-Received: by 10.176.82.122 with SMTP id j55mr5370939uaa.169.1475042839554; Tue, 27 Sep 2016 23:07:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.13.70 with HTTP; Tue, 27 Sep 2016 23:06:39 -0700 (PDT) In-Reply-To: <20160928042254.GL86426@FreeBSD.org> References: <20160928042254.GL86426@FreeBSD.org> From: =?UTF-8?Q?Mika=C3=ABl_Urankar?= Date: Wed, 28 Sep 2016 08:06:39 +0200 Message-ID: Subject: Re: should aarch64 cross-build work at amd64? To: Glen Barber Cc: Ross Alexander , freebsd-current@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 06:07:21 -0000 2016-09-28 6:22 GMT+02:00 Glen Barber : >> The more I read this, the less I understand. I've built and install'd >> aarch64-binutils on my poud box, then created an "-x -a arm64.aarch64 -m svn" >> jail - which worked fine - but that jail won't build anything. No >> /usr/bin/ld, so toolchain is borked, so can't build ports-mgmt/pkg. >> What utterly obvious thing have I missed? I've spent hours trying to >> fake out the nxb-bin stuff, or to find some other point of entry, no >> joy. You need this ld: http://people.freebsd.org/~andrew/arm64/ld and put it in your jail (something like that): zfs destroy zroot/poudriere/jails/JAILNAME@clean cp ld /usr/local/poudriere/jails/JAILNAME/nxb-bin/usr/bin cp ld /usr/local/poudriere/jails/JAILNAME/usr/bin zfs create zroot/poudriere/jails/JAILNAME@clean