From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6546059049526362112 X-Received: by 2002:a9d:3288:: with SMTP id u8-v6mr2897228otb.15.1524144467568; Thu, 19 Apr 2018 06:27:47 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:aca:506:: with SMTP id 6-v6ls952425oif.5.gmail; Thu, 19 Apr 2018 06:27:47 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/KpOxgfIMTk91RK0bLUEkQKVsT4X1bnh7PAthZuK7Df5uxjw0t1qVnHfZtppjiUQZBEvqV X-Received: by 2002:aca:b683:: with SMTP id g125-v6mr2794037oif.30.1524144467225; Thu, 19 Apr 2018 06:27:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524144467; cv=none; d=google.com; s=arc-20160816; b=dtbi7k0KsM4S8dhfZS5l0grQ7fAJviBNOxVgJxcqLaM3xXOfndjfiYdR5baDrgk3t+ zIP1lc7uuW8EwjTsF3L0Lp4eE+gbi78HMy3CwitoSJZfy79difutUqswIA0CFkzCp+O9 TfTJHj43dncTmh6G9dizNnqJmr84bYXeCy8VEh0V9+hjTfFEEQsclBlN5HjavHnAgNmM va8/AtzY2oWMIL9SsBqDQsxMjIfLxjPmmS13/9iHOCKGsY5EBY7HgeOLi+bNWpBywbQm ll5c6YNSQJ6cCsWJOe2G6vu8ijxFn2U/Bzz2OlLrdMYcmzsXZQuNxEPN+TRLP6b1GV7H AU5g== 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=IT+ir99D2GSTWAswifrmrmIhmjbYmh0Aupta8ADPAJw=; b=AMHXd9+0EXE12wA4oO9Z/5f5dr3EV8kmnLZmh90ZBR78N5FFWAUajXXv0nLTi4aIGt ofO5U9Xn7X6AnhQV2kdn5gRpcHaZ82lVn+vzTLz38H6bPxpzLrg3QHYSSjHHJNJXwaqh voi8QrEwKa83Q0iOssPELzx+3Sq9p4VJJjOa0I7MDghSjmS2jnXFbrTvj8v1MyWQX1yN vQSGx3+ep3jCwd/fzaNL966tbijNON3WuRe0GOAgGc74SdnArfjK0VNgHeKwtvuiQ9c4 nrOzo5pg/1JsbsEzRXxNHWKO+n0H5TTl40I52cQBrznqM8sbPP6ut9b+AH1KvqWX5zEE wt1w== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@solid-run-com.20150623.gappssmtp.com header.s=20150623 header.b=gkTK6nw/; spf=pass (google.com: domain of jon@solid-run.com designates 2607:f8b0:4001:c06::22a as permitted sender) smtp.mailfrom=jon@solid-run.com Return-Path: Received: from mail-io0-x22a.google.com (mail-io0-x22a.google.com. [2607:f8b0:4001:c06::22a]) by gmr-mx.google.com with ESMTPS id s193-v6si303391oih.4.2018.04.19.06.27.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 06:27:47 -0700 (PDT) Received-SPF: pass (google.com: domain of jon@solid-run.com designates 2607:f8b0:4001:c06::22a as permitted sender) client-ip=2607:f8b0:4001:c06::22a; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@solid-run-com.20150623.gappssmtp.com header.s=20150623 header.b=gkTK6nw/; spf=pass (google.com: domain of jon@solid-run.com designates 2607:f8b0:4001:c06::22a as permitted sender) smtp.mailfrom=jon@solid-run.com Received: by mail-io0-x22a.google.com with SMTP id t123-v6so6578267iof.7 for ; Thu, 19 Apr 2018 06:27:47 -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=IT+ir99D2GSTWAswifrmrmIhmjbYmh0Aupta8ADPAJw=; b=gkTK6nw/N0vuY1bVupHfU57+q/jtbsntSYMlBkllPGDcaF1vIq4TBT4XXZuS/Oo76i ElzOcBROrPPu+hNdVby9cwJ6pjYiI/I5oOwBMMquatjA9u6pmTH7qcWXJDGBO3t6s59u pvxY24fz4XUM/R2AAhP6ZfkAjJZKa2CSVQNmy9DGNxbpE7ghfl5MIm++Yt5lNLfdGyeP xC9wB5zIiSRCq8O95W443gqTrRda+3YbTxQGEvOn6V6wF2W0CD3Apdzgvtzlg378Vh2z x6T9WDr3Vfero+rqninuZKWtbuOS+Z4P7u2WMoGKK0o4jDsClEcdyHSPoDNbPQWgcHcZ Oluw== 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=IT+ir99D2GSTWAswifrmrmIhmjbYmh0Aupta8ADPAJw=; b=tutPEKjsRrQkY4AL+WUy0NjrBdO52JJxtb9eshYp2UWJGkMyQ/C4ocX9cCp8wQKWh4 8G9WiWBQ/qLrVTPGpdO66EhCyJnBSZFxzvRdvfywZVI+J091YYL9Zu4M6/UPWrSIuXsQ SrW2NDrbhFnxWi26evY32gSFf13S+Zj2YyJz+SstffP9hYYzbLcbNuhYVlsGKU2aJoiS 36e6MGM9v9XIIZZGLlAJBUFoAbXguNq90vVdE1MEcs8R8LqpY9IW2Vgc4POdOgSmNqEN lJzuOOraZifWDf2jqkJfi2glOv4U1YYv6Pb0zTZx6lRPbeYmfg+i39BFrp+k1HMP6u92 Zu1Q== X-Gm-Message-State: ALQs6tD4LFtCOXGjxJGmA1Tooc/5F7r2FhReLDuHTjqN7nfarvmCyCi0 jZqP8W7cQlmOOxbRymuwzvWobDYXR9OBtCrejseVug== X-Received: by 2002:a6b:89e0:: with SMTP id t93-v6mr6050638ioi.230.1524144466817; Thu, 19 Apr 2018 06:27:46 -0700 (PDT) MIME-Version: 1.0 References: <20180419111904.7436c6a0@mmd1pvb1c.ad001.siemens.net> <20180419123812.7c8f9a0f@mmd1pvb1c.ad001.siemens.net> In-Reply-To: <20180419123812.7c8f9a0f@mmd1pvb1c.ad001.siemens.net> From: Jon Nettleton Date: Thu, 19 Apr 2018 13:27:36 +0000 Message-ID: Subject: Re: building custom kernel fails To: Henning Schild Cc: isar-users Content-Type: multipart/alternative; boundary="0000000000008838b6056a338917" X-TUID: alu9gpj4esGt --0000000000008838b6056a338917 Content-Type: text/plain; charset="UTF-8" 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. Jon --0000000000008838b6056a338917 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Thu, Ap= r 19, 2018 at 12:38 PM Henning Schild <henning.schild@siemens.com> wrote:
Am Thu, 19 Apr 2018 09:33:28 +0000
schrieb Jon Nettleton <jon@solid-run.com>:

> On Thu, Apr 19, 2018 at 11:19 AM Henning Schild
> <he= nning.schild@siemens.com> wrote:
>
> > 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 so= urces,
> > > the kernel compile goes fine.=C2=A0 The deb-pkg is failing b= ecause 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 defa= ult distribution of
> > > 'unstable' in the changelog
> > > 2018-04-19 07:11:17 - INFO=C2=A0 =C2=A0 =C2=A0- | Install ls= b-release or set
> > > $KDEB_CHANGELOG_DIST explicitly
> > > 2018-04-19 07:11:17 - INFO=C2=A0 =C2=A0 =C2=A0- | /usr/bin/x= args: md5sum:
> > > Argument list too long
> > > 2018-04-19 07:11:17 - INFO=C2=A0 =C2=A0 =C2=A0- | scripts/pa= ckage/Makefile:90:
> > > recipe for target '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- | Makefi= le: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: e= xit code 2 from a
> > > shell command.
> > >
> > > looks like on large kernel builds the file lists will need t= o 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 seems to ca= use
> > problems for very long argument lists.
> > In my case it was a "make clean" and i removed the file= s from
> > outside the buildchroot. But since it now happened again it is > > probably something worth looking into.
> >
> > Henning
> >=C2=A0
>
> Oh interesting.=C2=A0 I wonder if this has something to do with the bi= nfmt
> support in CentOS vs Debian.=C2=A0 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.=C2=A0 I just went through the pain of building qemu=C2=A02.9.1 for= Centos7...and all the dependencies that were needed by it.=C2=A0 =C2=A0Tha= t has fixed the custom kernel build issues.=C2=A0 Thanks for all the pointe= rs.

I would say for now if anyone asks you can con= sider Centos 7 a no go.=C2=A0 If there is interest I may add a build to Cop= r for other users.=C2=A0 Fedora 26 and newer should be fine.

=
Jon
--0000000000008838b6056a338917--