From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6597651406325284864 X-Received: by 2002:a7b:c199:: with SMTP id y25-v6mr172903wmi.8.1536151711909; Wed, 05 Sep 2018 05:48:31 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:afda:: with SMTP id y26-v6ls642249wrd.3.gmail; Wed, 05 Sep 2018 05:48:31 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYpkBuohLOCz8/uLJy+D7UT/W8NYC9vFE66APSqgAYb9UF8fMDJLhKg6H3S49EchEEqsIk0 X-Received: by 2002:a5d:55cd:: with SMTP id i13-v6mr3427261wrw.2.1536151711393; Wed, 05 Sep 2018 05:48:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536151711; cv=none; d=google.com; s=arc-20160816; b=YBfiWW7pLsUkJj+Scb57TT5hgyf+RrqpMXLComaXZVvaDo0t9jt9R+qq8EdgJ6oBPh vMuf+Ng9YuBFmmBeAGnvsBESoVXQ8DvEKG2cKepEO7CD1dJTbAN6QvncbgtMDDn+YskX mUz3BNux7ZrqwMWSOoT9Ny8pZ6SdDhe9yZkiLXR0+9DEhQBT1N9AJzaezXTI3YFT59A2 rWbPK8GX8igBAKTZ2ZJRwroEGi3IGpmWoeoVhX1FZ/i6KyC6n8a0JBpx1h1St7Ps1o7p v7aJIXQ0CYTPr+Y/3hlvK2s4oNmql2QzlE7GS9NsRyYl392PrcJ8smc10hRmzbRLiuac jkPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:references:to:from:subject; bh=l1keXZM0EjXzrmPixkhTZG8plQhnVnlaH+UqTjqdSC8=; b=nV87dKXiKto74cMnkgDdyjXNjEeeD1ljCUX7FPm9OnnyLAyzsEHNjX8K263V+lA4VT c9khkxbI93+l59Geu8IsOLBtlIhWf5M9f7Jseyzev35zgSyqa710fSsbNK7rYF8dlN1b eXrzHRaReX+7u6EpdR3oTnczZWI3s0fFSfV+1Tsht9IQo7LMMLijK6YhavZ/X/qQzllV ZayeSxlDfXTtd8902/+fFzLyBq3aXq7deHL42cGtIM46hHhaZSrlx2whSuK84ZLGVYvH F5mlsSxGrWicK7Ljgfq8BJK2EeQeRj5rr/3liTxjZLQGjYFeqD1gWNfwo3QYC1sYp3pN 2WVg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id x7-v6si50755wmh.0.2018.09.05.05.48.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 05:48:31 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w85CmUd1020265 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 5 Sep 2018 14:48:30 +0200 Received: from [139.25.68.37] (md1q0hnc.ad001.siemens.net [139.25.68.37] (may be forged)) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id w85CmUxF019967; Wed, 5 Sep 2018 14:48:30 +0200 Subject: Re: [PATCH v2 2/2] cross-compilation: Fixes build broken with host-distro != target-distro From: Jan Kiszka To: "Maxim Yu. Osipov" , isar-users@googlegroups.com References: <20180905081639.23667-1-mosipov@ilbers.de> <20180905081639.23667-3-mosipov@ilbers.de> Message-ID: <66483d08-1f04-7a39-c88c-7b8e71d61c6f@siemens.com> Date: Wed, 5 Sep 2018 14:48:30 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: lLSLYHJeYOVa On 2018-09-05 10:29, [ext] Jan Kiszka wrote: > On 2018-09-05 10:16, Maxim Yu. Osipov wrote: >> From: Jan Kiszka >> >> Signed-off-by: Jan Kiszka > > It's good the see that my workaround is apparently also a solution. But > this still lacks the explanation, and I'm still unable to provide that. > So please help, specifically by answering the questions I raised in the > original bug report. > [...] >> --- a/meta/recipes-devtools/buildchroot/buildchroot-host.bb >> +++ b/meta/recipes-devtools/buildchroot/buildchroot-host.bb >> @@ -30,5 +30,5 @@ BUILDCHROOT_PREINSTALL_append_arm64 += >> "binutils-aarch64-linux-gnu \ >>                                           crossbuild-essential-arm64" >> -PARAMS = "--host-arch" >> +PARAMS = "--host-arch --host-distro" >>   do_build[depends] = "isar-apt:do_cache_config >> isar-bootstrap-host:do_bootstrap" >> For this part of the commit, I originally had the following written in my queue: "Because we were not passing --host-distro to setup_root_file_system, that helper defaulted to the target distro. And that broke the crossbuild if the target distro differed from the host one." If you can provide a reasoning for the first half, either in this patch or in form of a separate one (I suspect that this will look nicer), I would be happy. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux