From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6546059049526362112 X-Received: by 2002:aca:a8d7:: with SMTP id r206-v6mr2637481oie.40.1524147989069; Thu, 19 Apr 2018 07:26:29 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:aca:5a06:: with SMTP id o6-v6ls932615oib.23.gmail; Thu, 19 Apr 2018 07:26:28 -0700 (PDT) X-Google-Smtp-Source: AIpwx49SrRdoV6/HmDilA1KiWY0GB+Bq2gkL9psu+56UJ1sdqw6cY6bSlIeGKEFFQ2mvJe4xeIRr X-Received: by 2002:aca:e18a:: with SMTP id y132-v6mr2781320oig.29.1524147988783; Thu, 19 Apr 2018 07:26:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524147988; cv=none; d=google.com; s=arc-20160816; b=phzoIKtdsdB1F6ls+cA9CX32kTl1FKxgnZFwXGJlKpTeZvSqQn+UAS1MFbK2iCcUaz 6Ev1Q/1Kp+Xw2oxdo60+M38oCJcWmFPjZs0/R6AUfhuImDb5U9fBM3ltqAKGhGh6NQsM oJJJYRfkjNEtR6UOFDEhgysauo/CJ8tpAont77Gmwr99Rpt8OWxNTQGc+dhg/4SIKqCU ZAVI+Dlg69Q0RCW9LQQNXrsWnH936yGPx3MRD6XUSnHoBQQJuofoR1/bGqUrIl18a2wr ksiNLWXhbs/CKWcUhq+ZS65BlznSG19ZYwvj4Jji3ZWPQM2qXPXSJ5snOQRHDcxO2ux0 mLGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature:arc-authentication-results; bh=+glYrItRqJAmaf1WUGGzGQ77mYfqni4m8E2u7YLGrls=; b=fTE37GRb4uGFt41IDe0AqOlfNMDPSlTp64qoCV4aaPqNrhbXq+40x5Z7c4mKAUm4Ia rAKtbIpmDn69/QR1oi851bnSQi3Kvbo8PagvLOGa5pnE1TdhEqoPWNqWxAWdlzQuw8AF p5MaTz/Tinr/yFhrZt92K+WSAOtfPoZJDG18eA8qSQlw0KVkybGCaC+KHY1TnIITRD6C NPea4KNkojLA9PuyNvOXxM639+3YKvY/VnAIDBpNqgQP6LLDfx+XIib7+FMjbvmvPpCL 2uSClRUybAezjituPgXyku5zNnPoggTth6Ca30hbDxcgKMDyBQCvfLYsYS77ki6B12Ku GgYQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@solid-run-com.20150623.gappssmtp.com header.s=20150623 header.b=Iv8l042G; spf=pass (google.com: domain of jon@solid-run.com designates 2607:f8b0:4001:c06::22b as permitted sender) smtp.mailfrom=jon@solid-run.com Return-Path: Received: from mail-io0-x22b.google.com (mail-io0-x22b.google.com. [2607:f8b0:4001:c06::22b]) by gmr-mx.google.com with ESMTPS id c6-v6si322550oig.1.2018.04.19.07.26.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 07:26:28 -0700 (PDT) Received-SPF: pass (google.com: domain of jon@solid-run.com designates 2607:f8b0:4001:c06::22b as permitted sender) client-ip=2607:f8b0:4001:c06::22b; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@solid-run-com.20150623.gappssmtp.com header.s=20150623 header.b=Iv8l042G; spf=pass (google.com: domain of jon@solid-run.com designates 2607:f8b0:4001:c06::22b as permitted sender) smtp.mailfrom=jon@solid-run.com Received: by mail-io0-x22b.google.com with SMTP id y128-v6so6810832iod.4 for ; Thu, 19 Apr 2018 07:26:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=solid-run-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+glYrItRqJAmaf1WUGGzGQ77mYfqni4m8E2u7YLGrls=; b=Iv8l042GItko9/iKi2V8PXDF/MTXrKWZUarHN0g/35puvKoC9vyjzz8VhJ5RIiUs44 2hZTtRLDQjvEGKb/dMXMG9SHtA6rc9Bqijr2gE7a07E2zMD5H5v9cLK+DkX43smnn//H olN3VzBz7fhat1GYv3h++NiJiMUGzU4YiSz2mMdfMYXqCoF6Y/9Fk+b41wUoHP2U7LMb 5xeCJ1ITd487G1qdrQ9rPVWq6+21J2+dfTF1EnID91xvTaO5E8cVdga4B92tKXMxkAr2 TFYzJKEAX4PZfwjY582NLJfElVHQQYXebQ85nK/kxNupAaXuIF5iO/tE6VNRWkHqvquE vH+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+glYrItRqJAmaf1WUGGzGQ77mYfqni4m8E2u7YLGrls=; b=ktifSauO5PHmh6w6W6XCppZtFE61KIz519ihlPW4YyC2adP05Akk5Az3XtFLua63/u oJUWvK6giEGPasCPVUWvDG0gohgaLBQV607gytjZx6jP1qrotwdRvj0zuERV9yPES+Uw w9/sqqOzMDDQ5WG+UAstDeMZe3WZHawZRU3eCu8Vv/3BumhRNbEoEPuqiRCHhqshIE43 zAkPATEkNbnAxZnhrwnfMk7YmWNxU/4vGixbrZwKGvFX7I5LRlVbaiwZ266CxKZn5Za+ wnfmLTha4BqrlthxuGF+R4+kYc7l1Hv8BQU3BTOOQ7xer6YQ1yCbLF9eS5TlKsYEPmr6 dgqA== X-Gm-Message-State: ALQs6tD1JriibJaDFjHnK1Toa6GUwcWkXjkxFefvlOx2Ybjs8IY6T4k4 LaA8Dz4p9jJ3oUslrYk0AJ+dSbWexsJDTCUMpwitbg== X-Received: by 2002:a6b:6f04:: with SMTP id k4-v6mr6784882ioc.93.1524147988406; Thu, 19 Apr 2018 07:26:28 -0700 (PDT) MIME-Version: 1.0 References: <20180419111904.7436c6a0@mmd1pvb1c.ad001.siemens.net> <20180419123812.7c8f9a0f@mmd1pvb1c.ad001.siemens.net> <20180419154713.35046708@mmd1pvb1c.ad001.siemens.net> In-Reply-To: <20180419154713.35046708@mmd1pvb1c.ad001.siemens.net> From: Jon Nettleton Date: Thu, 19 Apr 2018 14:26:18 +0000 Message-ID: Subject: Re: building custom kernel fails To: Henning Schild Cc: isar-users Content-Type: multipart/alternative; boundary="0000000000006f5eda056a345bec" X-TUID: OJvO0XW+Z2Xc --0000000000006f5eda056a345bec Content-Type: text/plain; charset="UTF-8" On Thu, Apr 19, 2018 at 3:47 PM Henning Schild wrote: > Am Thu, 19 Apr 2018 13:27:36 +0000 > schrieb Jon Nettleton : > > > On Thu, Apr 19, 2018 at 12:38 PM Henning Schild > > wrote: > > > > > Am Thu, 19 Apr 2018 09:33:28 +0000 > > > schrieb Jon Nettleton : > > > > > > > On Thu, Apr 19, 2018 at 11:19 AM Henning Schild > > > > wrote: > > > > > > > > > Am Thu, 19 Apr 2018 00:32:21 -0700 > > > > > schrieb : > > > > > > > > > > > I am now building a custom debian package from our kernel > > > > > > sources, the kernel compile goes fine. The deb-pkg is > > > > > > failing because the number of files passed to xarg is too > > > > > > long. > > > > > > > > > > > > Error message is. > > > > > > > > > > > > 2018-04-19 07:11:17 - INFO - | Using default distribution > > > > > > of 'unstable' in the changelog > > > > > > 2018-04-19 07:11:17 - INFO - | Install lsb-release or set > > > > > > $KDEB_CHANGELOG_DIST explicitly > > > > > > 2018-04-19 07:11:17 - INFO - | /usr/bin/xargs: md5sum: > > > > > > Argument list too long > > > > > > 2018-04-19 07:11:17 - INFO - | > > > > > > scripts/package/Makefile:90: recipe for target 'deb-pkg' > > > > > > failed 2018-04-19 07:11:17 - INFO - | make[1]: *** > > > > > > [deb-pkg] Error 126 2018-04-19 07:11:17 - INFO - | > > > > > > Makefile:1347: recipe for target 'deb-pkg' failed > > > > > > 2018-04-19 07:11:17 - INFO - | make: *** [deb-pkg] Error 2 > > > > > > 2018-04-19 07:11:17 - INFO - | WARNING: exit code 2 from a > > > > > > shell command. > > > > > > > > > > > > looks like on large kernel builds the file lists will need to > > > > > > be broken up. > > > > > > > > > > > > > > > > I have seen that before. It happens in buildchroot when using > > > > > qemu-arm-static binfmt magic. Something in that chain seems to > > > > > cause problems for very long argument lists. > > > > > In my case it was a "make clean" and i removed the files from > > > > > outside the buildchroot. But since it now happened again it is > > > > > probably something worth looking into. > > > > > > > > > > Henning > > > > > > > > > > > > > Oh interesting. I wonder if this has something to do with the > > > > binfmt support in CentOS vs Debian. I will look into it and > > > > report back. > > > > > > I saw it on Gentoo building in a debian docker container. So i guess > > > the problem might be related to the binfmt wrapping in general, not > > > distro specific. > > > > > > Henning > > > > > > > > It looks like that was the problem. I just went through the pain of > > building qemu 2.9.1 for Centos7...and all the dependencies that were > > needed by it. That has fixed the custom kernel build issues. > > Thanks for all the pointers. > > > > I would say for now if anyone asks you can consider Centos 7 a no > > go. If there is interest I may add a build to Copr for other users. > > Fedora 26 and newer should be fine. > > Isar calls "random" sudos all over the place. Someone actually allowing > this on a productive system surprises me ... to say the least. > > My advise it to use a VM or container to run Isar in, and in that case > going for Debian9 is easy. One example, used by many of us, is > https://hub.docker.com/r/kasproject/kas-isar/ > > Henning > > Yes that is what I am using to build with. I can only imagine that the newer build of qemu brings in a configuration to the host os that is required for things to build properly. Jon --0000000000006f5eda056a345bec Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Thu, Ap= r 19, 2018 at 3:47 PM Henning Schild <henning.schild@siemens.com> wrote:
Am Thu, 19 Apr 2018 13:27:36 +0000
schrieb Jon Nettleton <jon@solid-run.com>:

> On Thu, Apr 19, 2018 at 12:38 PM Henning Schild
> <he= nning.schild@siemens.com> wrote:
>
> > Am Thu, 19 Apr 2018 09:33:28 +0000
> > schrieb Jon Nettleton <jon@solid-run.com>:
> >=C2=A0
> > > On Thu, Apr 19, 2018 at 11:19 AM Henning Schild
> > > <henning.schild@siemens.com> wrote:
> > >=C2=A0
> > > > Am Thu, 19 Apr 2018 00:32:21 -0700
> > > > schrieb <jon@solid-run.com>:
> > > >=C2=A0
> > > > > I am now building a custom debian package from our= kernel
> > > > > sources, the kernel compile goes fine.=C2=A0 The d= eb-pkg is
> > > > > failing because the number of files passed to xarg= is too
> > > > > long.
> > > > >
> > > > > Error message is.
> > > > >
> > > > > 2018-04-19 07:11:17 - INFO=C2=A0 =C2=A0 =C2=A0- | = Using default distribution
> > > > > of 'unstable' in the changelog
> > > > > 2018-04-19 07:11:17 - INFO=C2=A0 =C2=A0 =C2=A0- | = Install lsb-release or set
> > > > > $KDEB_CHANGELOG_DIST explicitly
> > > > > 2018-04-19 07:11:17 - INFO=C2=A0 =C2=A0 =C2=A0- | = /usr/bin/xargs: md5sum:
> > > > > Argument list too long
> > > > > 2018-04-19 07:11:17 - INFO=C2=A0 =C2=A0 =C2=A0- |<= br> > > > > > scripts/package/Makefile:90: recipe for target = 9;deb-pkg'
> > > > > failed 2018-04-19 07:11:17 - INFO=C2=A0 =C2=A0 =C2= =A0- | make[1]: ***
> > > > > [deb-pkg] Error 126 2018-04-19 07:11:17 - INFO=C2= =A0 =C2=A0 =C2=A0- |
> > > > > Makefile:1347: recipe for target 'deb-pkg'= failed
> > > > > 2018-04-19 07:11:17 - INFO=C2=A0 =C2=A0 =C2=A0- | = make: *** [deb-pkg] Error 2
> > > > > 2018-04-19 07:11:17 - INFO=C2=A0 =C2=A0 =C2=A0- | = WARNING: exit code 2 from a
> > > > > shell command.
> > > > >
> > > > > looks like on large kernel builds the file lists w= ill need to
> > > > > be broken up.
> > > > >=C2=A0
> > > >
> > > > I have seen that before. It happens in buildchroot when= using
> > > > qemu-arm-static binfmt magic. Something in that chain s= eems to
> > > > cause problems for very long argument lists.
> > > > In my case it was a "make clean" and i remove= d the files from
> > > > outside the buildchroot. But since it now happened agai= n it is
> > > > probably something worth looking into.
> > > >
> > > > Henning
> > > >=C2=A0
> > >
> > > Oh interesting.=C2=A0 I wonder if this has something to do w= ith the
> > > binfmt support in CentOS vs Debian.=C2=A0 I will look into i= t and
> > > report back.=C2=A0
> >
> > I saw it on Gentoo building in a debian docker container. So i gu= ess
> > the problem might be related to the binfmt wrapping in general, n= ot
> > distro specific.
> >
> > Henning
> >
> >=C2=A0
> It looks like that was the problem.=C2=A0 I just went through the pain= of
> building qemu 2.9.1 for Centos7...and all the dependencies that were > needed by it.=C2=A0 =C2=A0That has fixed the custom kernel build issue= s.
> Thanks for all the pointers.
>
> I would say for now if anyone asks you can consider Centos 7 a no
> go.=C2=A0 If there is interest I may add a build to Copr for other use= rs.
> Fedora 26 and newer should be fine.

Isar calls "random" sudos all over the place. Someone actually al= lowing
this on a productive system surprises me ... to say the least.

My advise it to use a VM or container to run Isar in, and in that case
going for Debian9 is easy. One example, used by many of us, is
https://hub.docker.com/r/kasproject/kas-isar/

Henning


Yes that is what I am=C2=A0= using to build with.=C2=A0 I can only imagine that the newer build of qemu= brings in a configuration to the host os that is required for things to bu= ild properly.

Jon
--0000000000006f5eda056a345bec--