From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6566555412143800320 X-Received: by 2002:a1c:f514:: with SMTP id t20-v6mr191811wmh.22.1528980153865; Thu, 14 Jun 2018 05:42:33 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:864a:: with SMTP id i71-v6ls1640754wmd.11.gmail; Thu, 14 Jun 2018 05:42:33 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJDx6elV9gqpnlXrp0ckyFFtT2Heyd+snNVvarDbTAM4piJP84t0NRD9dhZvVOez46flNNP X-Received: by 2002:a1c:8bca:: with SMTP id n193-v6mr211152wmd.11.1528980153483; Thu, 14 Jun 2018 05:42:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528980153; cv=none; d=google.com; s=arc-20160816; b=fIZ2BskjrPBlnPMtNwGZPYb+x57ELPaS5NRPLefstGc8NPbHPE+/oiSOuGxd4u57mw bIHc5q/etCJgOFBbjX7A4VZtmuwpkBZrBBsSEhhwajCt3Z/yFeszZzYm4W67She7Ueg4 4qdJEntF8d5iRfxh0HJi87+RZ3YEbze4YMfJCB5md36CBg24uWQqeXt3uSQl/nzIoyX7 f8POSDT/BQMyEEZ+VXWmDgrHkJALg+8QEGS1w/Vipy3P4PO08jU+3FALgTF7fnL18nm9 QxUxg9GPxiXjyG82zaT7uTZWw3G+rEo1C1XpXPLiDizJbVdfL5q+WjzP0OyvandCl3eh NHCw== 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=Y705gCZ93KGsS61Id1t6WrH39a1c9MsxRKv1i4rbYKk=; b=Hvo0HioWWg0/V8sbwI3Hfxu9sSUE7oE8PCPeUPH55+ZA4SFBxANQVlDNpMODRUlW1G FqvtbYNVoYtzCnMFNwy6WLIl9/hQ5UZlaQ0uxYR4Bq861FONHEmNA9+u96OCsrV/OZ+Z x3o6r+O7IP7NGYEk42sVnYaM/oTF9hlBIycY6bLqOspTy0FQQ9U17dl8ju/97uAW44pJ dx4L2dmc7GtHllkvRJHbAvhh6GmxrfSiElx3LR16lkFMYdmzpPJ94BH9m8oCKK3d2MKK RTaD1ELR+yLctYkXOAN93kAkhTSYIupglIcZ89gBkTJdrzfzcsoapc58DF/iVDx+1Iz+ DPgQ== 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 x7-v6si170749wmh.2.2018.06.14.05.42.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jun 2018 05:42:33 -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 4163DT1bTMz1r4Hp; Thu, 14 Jun 2018 14:42:33 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4163DT19jnz1r3kj; Thu, 14 Jun 2018 14:42:33 +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 OrJaWBWEiCmm; Thu, 14 Jun 2018 14:42:31 +0200 (CEST) X-Auth-Info: w0L6nYsuG2ed3A3SJl6RPOLszQgN5ERHK9skGmpmtDo= 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:42:31 +0200 (CEST) Message-ID: <1a4f5309433280bf0e3531d673ecdf86094316eb.camel@denx.de> 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:42:30 +0200 In-Reply-To: <05e6e73e-2b93-afc5-79b5-f7b3730032bd@siemens.com> References: <20180613130807.2461-1-asmirnov@ilbers.de> <1b45959cb29031b6d45d3243c2449656cb9380e0.camel@denx.de> <05e6e73e-2b93-afc5-79b5-f7b3730032bd@siemens.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-d7aJDAG5NJhZgJoZ5/pj" X-Mailer: Evolution 3.28.2 Mime-Version: 1.0 X-TUID: /wV+q01gScwV --=-d7aJDAG5NJhZgJoZ5/pj Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Jan, 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? I would try using the wrapper scripts. Setting all the paths to the toolchain root directory and then calling gcc and friends with ' --sysroot /'. I would have to try to find out if that works. Cheers, Claudius --=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 --=-d7aJDAG5NJhZgJoZ5/pj 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/LlnwDGvCgx2GTBEXPLGZgIsVMFAlsiYrYACgkQEXPLGZgI sVP9GA/9GmZp0+9fxI02zKF7vOxgBJalqdYKkZbeF2rpZtHK4h3HJh4Qnh8CspJQ 33CMwdpATrVUOsNxotBm2gKZ7aWnHTJ4ql3NkQCFS6JPAXE+B4/kO6O3sLW64mvb Te4qnkrYSOun+2FxsNsfZRrzfKeu9cjxseld4p0dq7lamAcSaehXcElTGdU19kPi mXQ/yIQEHelmO76okX4PTZHgaQ+b72d3OHKcrcgN0yoWZngj54wtxiYfVw4FHRQ1 tPe4T6z8c4pSvOgSTJOtsHpdZwmy3H7G904fRJCDgssIEVw1IA8y4V+DPUDactpF L7agf9dFZ/tT4IY2SesOH7Ka3s/DZMkZfjyks8EyQiwaBBGn8pcU0cTttnWF2rIr Oj4N2nY/ARgIThCvVbCley7unnxBAKaFQMR/HWz7sZGsuGPuuykG7WpGH3D470Vx WLP9+GB+ZNtYTKliWatDu6wqcRP198jbh6P2dXjkwE+O3kdgkvpS8GTDyVa2EGx+ 0x/RqBjwxbWm/lwPthqZ4x1uBWIKzQ9FlxynDht6WqwwSsTbfC8kWFIoyNaIGjn0 3Oe+jeKP3F/QZVMK3N5418BTofEr32keuRYEiXb70kA7UcJ2qKD7RkvoKXnt4eHM wekxLJR+RmylBYB6og9CE0WE22AwVbbZHgvTKwb70w1vTK1RdLQ= =n/t3 -----END PGP SIGNATURE----- --=-d7aJDAG5NJhZgJoZ5/pj--