From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6566555412143800320 X-Received: by 2002:aa7:d29a:: with SMTP id w26-v6mr2498040edq.8.1528980947136; Thu, 14 Jun 2018 05:55:47 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a50:fd17:: with SMTP id i23-v6ls3075094eds.6.gmail; Thu, 14 Jun 2018 05:55:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIs1CLiKAHoxRlCZ9r/wUYvbifapfTx5bzxjHEdigKn7fA2Yr4qJSMNF8IoH3n8eOp8e9gq X-Received: by 2002:aa7:c1d3:: with SMTP id d19-v6mr2490732edp.6.1528980946733; Thu, 14 Jun 2018 05:55:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528980946; cv=none; d=google.com; s=arc-20160816; b=fJrjtQtjz67ETRwKy2wgjlm8nXHzkTwl3XvaSbUrPi4MjjMPe/QRbwHHY8UodN7Zt7 u7iaxgXbSNj0ZZhJQtpplNpr/uvLTxDfI7O230BWavT5huS5dtBOj/esSYe4x2zCKPZ4 VNoGCzuaAdVUg2gcKQqLUjxJ7ZuMRcN2WloHcmuCmB5lAfSE6Zqf3CcytK9PiUdnUzyc 1mxroMe7Ld8bGoKYgN6KgzaoTlWX4bgTd1T4Z9g+1C5L3GmwQV5zrWBAU+xR4wBcEGeF a9pZ3VQ029oPvGBXJmcGkcsyigLquQL9Q+LHyBqw4QTrJxeYy0xXCSrNfmmQ+xd/YSG2 sgaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:date:to:from:subject:message-id :arc-authentication-results; bh=1X0KVsfLXwjKNwEGABfnT98DQySwxsX2SyBbRUK3TmU=; b=lPkNoHCrdNrbFRCGlc8dC5ShHPsk4CxjG6jjvW3IUj8jTs4MCwRbM52Qpu3Bk7mMpZ ugdx9stlo7Sl2/D8CPacnPOLXtmFBjT1esF1GP+xMxZXgMHerVFMSJ0Fbkc1qWIqTe/T j2ygPYNK9nb8LlsTUF5K/dxL62BjQ+zdCHDRUkIkfYnzlGYJuhEKeZMa8/3T/UWj65fk FjSrIx+KDaxlZ6+ppT7JNuNeKOk10DwAqc3uZtam+L/3NLE7M2Tm00ZBVmwI7cbhxa6Z BLwrO9jLxGALM65mA/yYmqg7pQP0rTx6UKySsUswX8IKj6yxRqe8eVFEbt3iCluMh1ht k5lg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of ch@denx.de) smtp.mailfrom=ch@denx.de Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net. [2001:a60:0:28:0:1:25:1]) by gmr-mx.google.com with ESMTPS id l17-v6si185464edq.3.2018.06.14.05.55.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jun 2018 05:55:46 -0700 (PDT) Received-SPF: neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of ch@denx.de) client-ip=2001:a60:0:28:0:1:25:1; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of ch@denx.de) smtp.mailfrom=ch@denx.de Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4163Wk3MKpz1r9MC; Thu, 14 Jun 2018 14:55:46 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4163Wk2zBxz1r3kk; Thu, 14 Jun 2018 14:55:46 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id xMswT0JRIkVY; Thu, 14 Jun 2018 14:55:44 +0200 (CEST) X-Auth-Info: eolOuLR0VRuDxxn9uD538yrCoVOXNVIvgk+k+fVp7Ig= Received: from Orrorin (p578a821c.dip0.t-ipconnect.de [87.138.130.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 14 Jun 2018 14:55:44 +0200 (CEST) Message-ID: Subject: Re: [RFC] [PATCH 0/9] Initial cross-compilation support From: Claudius Heine To: Jan Kiszka , Alexander Smirnov , isar-users@googlegroups.com Date: Thu, 14 Jun 2018 14:55:39 +0200 In-Reply-To: <1a4f5309433280bf0e3531d673ecdf86094316eb.camel@denx.de> References: <20180613130807.2461-1-asmirnov@ilbers.de> <1b45959cb29031b6d45d3243c2449656cb9380e0.camel@denx.de> <05e6e73e-2b93-afc5-79b5-f7b3730032bd@siemens.com> <1a4f5309433280bf0e3531d673ecdf86094316eb.camel@denx.de> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-CHLe75qGRz2QXicbe2fK" X-Mailer: Evolution 3.28.2 Mime-Version: 1.0 X-TUID: xIwNJObI6W+L --=-CHLe75qGRz2QXicbe2fK Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2018-06-14 at 14:42 +0200, Claudius Heine wrote: > Hi Jan, >=20 > On Thu, 2018-06-14 at 14:30 +0200, Jan Kiszka wrote: > > On 2018-06-14 14:04, Claudius Heine wrote: > > > Hi, > > >=20 > > > On Wed, 2018-06-13 at 15:07 +0200, Alexander Smirnov wrote: > > > > Hi all, > > > >=20 > > > > this series introduces basic cross-compilation support for > > > > Isar. > > > > The > > > > implementation > > > > is based around new entity - buildchroot-cross, which is quite > > > > similar to original > > > > buildchroot, but has host architecture. > > >=20 > > > Here is a crazy idea from me and Henning: > > > Have you tried just installing an amd64-arm cross toolchain into > > > the > > > existing arm buildchroot, then switch to it from the 'native' > > > toolchain > > > using a combination of PATH variable entries, symlinks and/or > > > wrapper > > > scripts and let binfmt deal with calling the amd64 binaries of > > > the > > > toolchain in the arm chroot environment? > > >=20 > > > This way the arm system would think that you are compiling > > > nativly > > > while in fact you are using a cross compiler that is not > > > emulated. > > >=20 > > > Would that work? > >=20 > > I just heard some story from SUSE folks doing something probably > > similar > > in the past, but they had to patch binfmt to inject the native > > tools > > into the chroot. > >=20 > > How would you ensure in your proposal that the native compiler > > finds > > its > > libraries? >=20 > I would try using the wrapper scripts. Setting all the paths to the > toolchain root directory and then calling gcc and friends with ' > --sysroot /'. >=20 > I would have to try to find out if that works. There is also chrpath... As a more conventional method, you could have a cross-buildchroot with only the cross compiler and distcc and make it that way available to the buildchroot. Claudius >=20 > Cheers, > Claudius >=20 > --=20 > DENX Software Engineering GmbH, Managing Director: Wolfgang Denk > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany > Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de >=20 > PGP key: 6FF2 E59F 00C6 BC28 31D8 64C1 1173 CB19 9808 > B153 > Keyserver: hkp://pool.sks- > keyservers.net >=20 --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de PGP key: 6FF2 E59F 00C6 BC28 31D8 64C1 1173 CB19 9808 B153 Keyserver: hkp://pool.sks-keyservers.net --=-CHLe75qGRz2QXicbe2fK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEb/LlnwDGvCgx2GTBEXPLGZgIsVMFAlsiZcsACgkQEXPLGZgI sVO5qA/+INaVBBfiyHFeECCQom3aInmMcESXKkOy/My72wEOQe25I5otkJ7AMLxV EqU3NcMpIgSlN01Bgk8y9kLStmZSA1GBkv4YLIe3iLUQEpV/QY2LCiry5+4mf6z/ x10IHfaUyNrNc6oFpJM/Bhhx0xUoofTmQ7NUcRy9qqAAl0MCmj2mSuefyyM+q64K L95A31J8sVgjx9nzlzaIahyjdt2gpc6A5op8ZpOpwYNPjuU7I2ZdlsV1WDVo03KH n+u+iOWeAbtrNAHeqEauR4C5nCLEkbXUBYfjnjM33zutrBPYWG9n6EEdvTab8Zxu d1wSxjaIG8P7JQ8hZWgAXMVr5UNtjW7Hc981HtNs6xDMURFRS6BPsUSnSkWps1IR AeUP8p0QC09bVcCLPXOtuGNmHgPoPDJVu3+UrIqcNv2bJVp0SPoEUyM+4XOaj0Fe /ahIHnmE6+Tt3zj/YlsQf4IkqufisogvBsYG9X14oVPKfG1pvNfAlg9/bYE4fpdN Bc1QZLNLn3VZ8VIxmnvMjrICnGcK7MCGMmXtlZv/qUgMQVd6tISmdXBIPDyuQlo8 BJ6/3erLp43Mrz3F5EGrkNO5MuWOdx9EEKtisenzIIsj6ZZezV1i1oCSpFiaTOtC acM30WWDCQGsZ6dJCi/xDK/20L+95lUNxLnb/73udnUz8q2NtrQ= =doR/ -----END PGP SIGNATURE----- --=-CHLe75qGRz2QXicbe2fK--