From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6766 Path: news.gmane.org!not-for-mail From: "piranna@gmail.com" Newsgroups: gmane.linux.lib.musl.general Subject: Failed to execute /init (error -2) for system-wide musl libc Date: Wed, 31 Dec 2014 19:04:55 +0100 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1420049134 4183 80.91.229.3 (31 Dec 2014 18:05:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Dec 2014 18:05:34 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6779-gllmg-musl=m.gmane.org@lists.openwall.com Wed Dec 31 19:05:30 2014 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Y6NeD-00008D-M3 for gllmg-musl@m.gmane.org; Wed, 31 Dec 2014 19:05:29 +0100 Original-Received: (qmail 12186 invoked by uid 550); 31 Dec 2014 18:05:28 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 12174 invoked from network); 31 Dec 2014 18:05:27 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=AR2TcvEy4pVD5P43jd73gU0Y2ZiIPyiQtVgfcK7I9yA=; b=Mqp1+1rbP3zoOTRB3ELh7PqUV8eGPhaFf2y+NzWwuNLexGqHI3UJyZ1awOfnIEODP8 ax3GRwfgTv1ta7B7Fc48El2q70WKWw6MUZZxzdjeDKUKTBqzSECbIWNf7++WdgDjD94H wsgdpAsevu8pm61dxOhHU8t/sp3rmVLR+eWo/Z9Gt5V7/2RaBON0phfDe8r8ejpkRtnL fFE7Ta1PVHgsme9e9s9TVRd2Mq1ISeA6jtCMszlWJdxizwbWr+PzUf7VfsDL40fiytpZ I5ajWEcwElNlClgpH8gXkdGRd/e9s/pnXe6vHkNVZ55o919s0xSNQl5gJfGBpnA3bfRj KFfg== X-Received: by 10.181.12.17 with SMTP id em17mr117956363wid.45.1420049115951; Wed, 31 Dec 2014 10:05:15 -0800 (PST) Xref: news.gmane.org gmane.linux.lib.musl.general:6766 Archived-At: On NodeOS we are having some problems creating an i686 cross-compiler using musl (https://github.com/NodeOS/NodeOS/pull/89). The point is that by generating a fully statically linked Node.js executable it boot correctly, but by using a dynamically one we get a "Failed to execute /init (error -2)" error. We have crafted the cross-compiler following the instructions at http://clfs.org/view/clfs-embedded with no lack. The fact is that executables compiled with the cross-toolchain works on our desktops but they don't on QEmu, and we've added all the dynamic libraries that readelf request (only libc.so, libstdc++.so & libgcc_s.so). As a curious side note, when installing the musl-linked gcc libraries, the /lib/ld-musl-i386.so.1 link dissapear from the cross-toochain folder, but also adding it by hand all the dynamic linked executables refuse to load on QEmu, also a simple "Hello World" that only depends on libc.so :-/ We are getting out of ideas, any clue about what could be happening? Greetings, and Happy New Year :-) Jes=C3=BAs Legan=C3=A9s Combarro "piranna" --=20 "Si quieres viajar alrededor del mundo y ser invitado a hablar en un monton de sitios diferentes, simplemente escribe un sistema operativo Unix." =E2=80=93 Linus Tordvals, creador del sistema operativo Linux