From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6600026910278811648 X-Received: by 2002:a1c:13d3:: with SMTP id 202-v6mr157786wmt.1.1536747343101; Wed, 12 Sep 2018 03:15:43 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:ad2e:: with SMTP id p43-v6ls452297wrc.12.gmail; Wed, 12 Sep 2018 03:15:42 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaStLIJLLv6nKAM+3ttl7fqO354OCteGAkTYzFoVqOHxIXJc+FqC/CGW57vXhWhw2OM6m3c X-Received: by 2002:adf:f787:: with SMTP id q7-v6mr106029wrp.5.1536747342628; Wed, 12 Sep 2018 03:15:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536747342; cv=none; d=google.com; s=arc-20160816; b=YfgmcQnVphBJqPrBA0MeGcy5t+q2Dv5lKjvKR64qXn4rYcYUPVGuWIGlzVHKiXTawe mh5lvU537LbjkQa7YsetlTGuRQd1sgNnqzhT/7/weLKQDOgi+e8J2+Z7CwYMSR1TiPvB uAwmyvelEoqhQ1sz6ACP6xmGdR6lN0zYlF6BEAMo/7Jr6+8z4JsSlOdIzJ7CUzNoQsx0 7lzDefPraa54cDecqUqy+NSy2GbmS5S9fA+ZIkrfE/EEWzO6Awb8HTqI0eV9FjjfBAS2 jK+Xg4R1elsDIrAY5NkhGl1/GezuHCwRo1kNx73zuJbb8UQDhfmbuwmzM/c5wYrKlyOV 3LMA== 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:from:references:cc:to:subject; bh=nmiQhJFfEuAbmmv+jLBn54lZoR9jwJpUwhKuuuBxly0=; b=CybO1G9wcCiYkxtsbFGIWCHsTZIgCnuxbRG+k8/HgGGgPYdKbEGErYhBVltDgekTpK wfd2OKOvQh1e1zkTDAUqAzw4iiT+u89DCXLFKu+JxHv9Unz+nqw+bsbtk9DeeH+n5avJ QjfmcS3FmViVEVJAo2WfIpT/Q4qLAcD4X2gK0bTpraV+ySoHU5lk1WcEHqqexRq9cSBb 6At4kYyFDj2rPvFUfiqAuAN5ixjw72axkIWfI/+nl9oWecpdX2JbaZNngGzoOYj2m+Iy YomKBduIFNr8qdCVFw0DYZVwNC6Jddy5wb5TOn5aV7IdDtTPz4t750fF2qkQu0R3xOcA yXeQ== 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 t23-v6si257262wmh.4.2018.09.12.03.15.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Sep 2018 03:15:42 -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 mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w8CAFg26017139 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 12 Sep 2018 12:15:42 +0200 Received: from [167.87.35.124] ([167.87.35.124]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id w8CAFf2i032219; Wed, 12 Sep 2018 12:15:41 +0200 Subject: Re: SDK feedback To: "Maxim Yu. Osipov" , Henning Schild Cc: isar-users References: <0480aa78-5c48-4194-8900-e1b17798b531@siemens.com> From: Jan Kiszka Message-ID: <99c2c7b3-5cfd-659f-1bcd-5ce8a5b932ef@siemens.com> Date: Wed, 12 Sep 2018 12:15:40 +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: Y4wAagr3Iah+ On 12.09.18 09:42, Maxim Yu. Osipov wrote: > Hi Jan, > > On 09/11/2018 08:57 PM, Jan Kiszka wrote: >> On 11.09.18 19:55, Jan Kiszka wrote: >>> Hi Maksim, >>> >>> finally, I actually used the SDK on an ARM target, and it worked nicely! One >>> question and one feature request, though: >>> >>> I did not do the chroot dance and rather looked for a way to use the cross >>> compiler directly. And it /seems/ to work, at least for the trivial case: >>> >>> export LD_LIBRARY_PATH=/path-to-sdk/usr/lib/x86_64-linux-gnu/ >>> sdk/usr/bin/arm-linux-gnueabihf-gcc --sysroot /path-to-sdk \ >>>      -o hello hello.c >>> >>> Does this make sense, at least for the classic "I need a crosscompiler and >>> the corresponding target libs" case? When will it start to break? > > Honestly I always played with chroot and never tried LD_LIBRARY_PATH approach in > more complicated case, so I can't say which problems may pop up. Henning, maybe once worth a try on some of the recent examples we now have (just for testing, they are normally built as part of a custom Isar layer). > >> Forgot to state: my host was a SUSE 42.2. > > Nice to hear that it works under SUSE too > (I only tried sdk on Fedora box). > >> >>> >>> >>> And then I noticed that the deployed SDK image could be a bit slimmer, >>> specifically by purging /var/cache/apt prior to packaging. Too lazy now to >>> write my own patch. :) > > Got it ;) (I will prepare the patch). TIA! BTW, if that direct call model works, we may shrink the SDK archive for that purpose even further (as there is no need to have a complete chroot anymore). Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux