From owner-freebsd-current@freebsd.org  Thu May  4 05:01:51 2017
Return-Path: <owner-freebsd-current@freebsd.org>
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 B34BDD5D9DF
 for <freebsd-current@mailman.ysv.freebsd.org>;
 Thu,  4 May 2017 05:01:51 +0000 (UTC)
 (envelope-from ohartmann@walstatt.org)
Received: from mout.gmx.net (mout.gmx.net [212.227.17.22])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 17A63168C
 for <freebsd-current@freebsd.org>; Thu,  4 May 2017 05:01:50 +0000 (UTC)
 (envelope-from ohartmann@walstatt.org)
Received: from freyja.zeit4.iv.bundesimmobilien.de ([87.138.105.249]) by
 mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id
 0Lm6IP-1dfTa33jaj-00Zd4V for <freebsd-current@freebsd.org>; Thu, 04 May 2017
 07:01:42 +0200
Date: Thu, 4 May 2017 07:01:36 +0200
From: "O. Hartmann" <ohartmann@walstatt.org>
To: freebsd-current <freebsd-current@freebsd.org>
Subject: arm64.aarch64: cross-compiling ports on AMD64 possible?
Message-ID: <20170504070136.3717d2a7@freyja.zeit4.iv.bundesimmobilien.de>
Organization: Walstatt
X-Mailer: Claws Mail 3.15.0 (GTK+ 2.24.31; amd64-portbld-freebsd12.0)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:9o77fvM97mcx/DM0P7zrwUdbTAIZN8LxgsVHvu0fwUXX6QaOVyf
 88rhGYcKWRxToy74kR+QrjU1Zy1KeWFELIc8n+olVCr0nnYBg0EK7S8eWskp0bJE4n98kV/
 4SkjgSqBkW7WxvdMv76+d7kZlDNHONa8M5+2I8s9HCWSCKLq5sDscJ5MJKl3dcKR9luEKvl
 sYHXQ4fH6bqufuQxkZ6yA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:fpW4d1CR9+o=:vxRot2PwPkO4Jvj8ON9oTQ
 ROZGL1VsZMcwQTaHgvOypkqXINi0sReVLENHEGJOO4lkI42B/0fuJZ/ANR/bY5xdw2DWkq7AZ
 3B/9PO5HRWPIv41saDtV3/ikPaRARUmjYRqWYxhWLi0QyrQrapf1RWd2v39ivLi4zloe4KOyF
 vXIuaxT4dPNBh7tO1kLVNpQfeyqqZVvOKAjRfC0/NjKcmU0+WjojU08tlveIs/BMVsXQmLrvI
 /51pcHnCmjOYlctvv4HYgTKp0AMc0Z502zJuA91LWWm9LKJ4kGV+UZLxb5ZgfuoprJInlxR6b
 YukSxX1l7dsp4mP9lKY26vDheswXMY5BOIZGRg/HplLhNAmDsyG5n+4BWxRaQh1zAfwCJj1mE
 32T/esOFwkT5Ddwph806TRU1NAiVRquXmtJEyMwbS5LMra4NSxHmz8JNOD2v4SmmJHG14OGsu
 bUgQaA1BLrmTG1+yZNjY+R9MH/SS+iCZvuulwUjOw6I205M3HHQUu81xGAe6Ojdmts5ZfTs02
 5FLWLbirj1uVtP2QRjUoBt6Ut0wamG+NpNVN8gE6/+doOur/kSDE6PkYitQco7kusxw4T9YxL
 D7yhCNyjR5KvT5EK9IETHxjH4r0aX4g73c/vSi56HHBSU0QTlno9LlEotDPigTX6IiVnZvm3y
 E/xlbkLxo4hMge7pnDRnzDIvIhj8w2gUEjrT4wTXfLKFREbrLC3K7BRolrDQOT7lvsIlcqteG
 IQn1THe+PldHrcoFaAifG9Iz4/q0YPPE9na4IgYvVTo/lU6zlCtqa8gLGvH6ZPVkKtKTSYccm
 UA19P92
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
 <freebsd-current.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/>
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 04 May 2017 05:01:51 -0000

Hello,

I've already successfully built a "world" and "kernel" on AMD64 (ath this
place a thank-you for the developers!) using the port
emulators/qemu_usr_static. /usr/src and /usr/ports are up to date on a daily
basis.

I use poudriere with a great success (and here again, thank-you towards those
who develop and maintain this nice tool!) for building the set of software we
need in the department for amd64.

Having a jail of arch type aarch64:

JAILNAME   VERSION             ARCH          METHOD
head-arm64 12.0-CURRENT        arm64.aarch64 src=/pool/sources/CURRENT/src

(date of jail is 2017-05-03 18:13:59)

This jail fails all the time initially starting to build package 

ports-mgmt/pkg

which is the prerequisite and root of all ports due to a configure_error and
this configure error states that CC isn't capable of producing working
binaries!

The host as well as the jail use "WITH_LLD_IS_LD=yes" (which is the default
for the ARM64 architecture, so unnecessary to mention) on 12-CURRENT (updated on
a daily basis). 

Well, I live under the impression that the FreeBSD ports folks do compile the
ports-tree for ARM64 as the product of fast cross compiling machines.

As recommended, I use the LLVM/CLANG/LLD 4.0.0 environment, no GCC.

Just for the record. Checking installed ports, I have aarch64-binutils-2.28,1
installed. 

So, the big question is: what am I doing wrong here or is there a general issue
with the ports and crosscompiling on amd64 for aarch64?

I'm pretty new to this cross compiling stuff.

Please CC me, I'm not a subscriber of this channel. Thanks al lot in advance,

Oliver