Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 98B1D780DD6 for <~alpine/users@lists.alpinelinux.org>; Fri, 27 May 2022 06:16:38 +0000 (UTC) MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ayaya.dev; s=key1; t=1653632198; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IxdppUl0W5kpnORpoP9smZyXjGwUul+XT0TwvujOVCg=; b=P+zD6k2AVMyUiF+U/NM8HAhQNtFBCEANJnshskNg4WM//tjMS77tEGwQ2PicWyJVtwKWRm ZwAPSRFRVDvxG5lAXr0bYtvdz0hgzxR6GmkHbjUNKeWeJoJR0KkYpeDDioOwjSAtv19KgF ugMpVzRIdWYvhvKWedOR6Ah1T29zdsc= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 27 May 2022 08:16:34 +0200 Message-Id: X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "alice" To: "Samarul Meu" , <~alpine/users@lists.alpinelinux.org> Cc: Subject: Re: Can't start neovim References: In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: ayaya.dev On Fri May 27, 2022 at 6:42 AM CEST, Samarul Meu wrote: > I am on Alpine 3.16 (upgraded on Wednesday) and yesterday I installed > neovim. When I try to launch it I only get this `Illegal instruction` > > Some more information > > $ uname -a > Linux alpine.cfd 5.15.41-0-lts #1-Alpine SMP Fri, 20 May 2022 21:42:55 > +0000 x86_64 GNU/Linux > > $ nvim -v > NVIM v0.7.0 > Illegal instruction this is probably because the luajit apkbuild has -msse4.2 for x86_64. there is already an issue for it[0], not sure i remember why it was set that way (aside from being recommended). you can see by crashing it in gdb: =20 gdb nvim run (see it crash) x/3i $pc (last 3 instructions) (last instructions will have names, look up the one marked with >, probably an sse4/3 one) > $ cat /etc/apk/repositories > http://ftp.halifax.rwth-aachen.de/alpine/latest-stable/main > http://ftp.halifax.rwth-aachen.de/alpine/latest-stable/community > @edge http://ftp.halifax.rwth-aachen.de/alpine/edge/main > @edge http://ftp.halifax.rwth-aachen.de/alpine/edge/community > @testing http://ftp.halifax.rwth-aachen.de/alpine/edge/testing (as an aside, you should not mix edge with stable) > $ doas dmesg | grep nvim > [ 818.148617] traps: nvim[3261] trap invalid opcode ip:7f61f0d819d3 > sp:7fffaad810e0 error:0 in libluajit-5.1.so.2.1.0[7f61f0d6f000+4c000] > [ 1081.218916] traps: nvim[3461] trap invalid opcode ip:7f8742fa79d3 > sp:7fffcecf42c0 error:0 in libluajit-5.1.so.2.1.0[7f8742f95000+4c000] > [ 1160.212726] traps: nvim[3522] trap invalid opcode ip:7f65de9b29d3 > sp:7fff3de8ed60 error:0 in libluajit-5.1.so.2.1.0[7f65de9a0000+4c000] > [ 1163.965717] traps: nvim[3527] trap invalid opcode ip:7f67763929d3 > sp:7ffcc468ead0 error:0 in libluajit-5.1.so.2.1.0[7f6776380000+4c000] > > > Thanks for your help! [0]: https://gitlab.alpinelinux.org/alpine/aports/-/issues/13688