From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: chroot/aarch64 issues Date: Tue, 05 Jul 2016 10:45:51 +0200 Message-ID: <87oa6czd4w.fsf@gnu.org> References: <20160704104248.GA32334@debian-netbook> <87h9c5ed87.fsf@gnu.org> <20160704141514.GB32334@debian-netbook> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKLzV-0003V7-23 for guix-devel@gnu.org; Tue, 05 Jul 2016 04:46:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKLzP-0006KI-TD for guix-devel@gnu.org; Tue, 05 Jul 2016 04:46:00 -0400 In-Reply-To: <20160704141514.GB32334@debian-netbook> (Efraim Flashner's message of "Mon, 4 Jul 2016 17:15:14 +0300") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Efraim Flashner Cc: guix-devel@gnu.org Efraim Flashner skribis: > On Mon, Jul 04, 2016 at 03:37:12PM +0200, Ludovic Court=C3=A8s wrote: >> Hi! >>=20 >> Efraim Flashner skribis: >>=20 >> > On the side I'm working on the aarch64 port, and I've come across a >>=20 >> Woohoo! >>=20 >> > snag. I've been unable to actually get anything to build. When I start >> > the daemon as: >> > `sudo ./pre-inst-env guix-daemon --build-users-group=3Dguixbuild', >> > when I attempt to build hello I get back the error: >> > guix build: error: build failed: cloning builder process: Invalid argu= ment >>=20 >> Could you strace the daemon itself? >>=20 >> sudo ./pre-inst-env strace -f -o log guix-daemon \ >> --build-users-group=3Dguixbuild >>=20 >> I presume EINVAL is returned by clone(2), but it would be good to see >> that syscall precisely. > > attached The culprit is: 4871 clone(child_stack=3D0x7fd850d338, flags=3DCLONE_NEWNS|CLONE_NEWUTS|CL= ONE_NEWIPC|CLONE_NEWPID|CLONE_NEWNET|SIGCHLD) =3D -1 EINVAL (Invalid argume= nt) >> What Linux version is this? > > $ uname -a > Linux odroid-jessie64 3.14.65+ #2 SMP PREEMPT Sun Jul 3 18:29:45 > UTC 2016 aarch64 GNU/Linux According to clone(2), this version supports all of the above flags. Also, the kernel config you posted has all the namespace options enabled: --8<---------------cut here---------------start------------->8--- CONFIG_UTS_NS=3Dy CONFIG_IPC_NS=3Dy CONFIG_USER_NS=3Dy CONFIG_PID_NS=3Dy CONFIG_NET_NS=3Dy --8<---------------cut here---------------end--------------->8--- If the kernel config corresponds to this kernel, I don=E2=80=99t see which = of the other EINVAL reasons given in clone(2) would apply. Does =E2=80=98dmes= g=E2=80=99 show something? Could you maybe try a C program that invokes clone(2) and progressively remove CLONE_ flags until you find the one that=E2=80=99s causing EINVAL? Thanks, Ludo=E2=80=99.