From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6773 Path: news.gmane.org!not-for-mail From: "Matias A. Fonzo" Newsgroups: gmane.linux.lib.musl.general Subject: Re: Failed to execute /init (error -2) for system-wide musl libc Date: Wed, 31 Dec 2014 18:09:49 -0300 Message-ID: <20141231180949.75845507@dragora.org> References: <20141231193540.GD3156@port70.net> <20141231170852.7e17953d@dragora.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1420060052 32601 80.91.229.3 (31 Dec 2014 21:07:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Dec 2014 21:07:32 +0000 (UTC) Cc: musl@lists.openwall.com To: "piranna@gmail.com" Original-X-From: musl-return-6786-gllmg-musl=m.gmane.org@lists.openwall.com Wed Dec 31 22:07:25 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 1Y6QUF-0008Lk-Tk for gllmg-musl@m.gmane.org; Wed, 31 Dec 2014 22:07:24 +0100 Original-Received: (qmail 11341 invoked by uid 550); 31 Dec 2014 21:07:22 -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 11330 invoked from network); 31 Dec 2014 21:07:21 -0000 In-Reply-To: X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.10; x86_64-dragora-linux-gnu) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - titan.astranetwork.net X-AntiAbuse: Original Domain - lists.openwall.com X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - dragora.org X-Get-Message-Sender-Via: titan.astranetwork.net: authenticated_id: selk@dragora.org X-Source: X-Source-Args: X-Source-Dir: Xref: news.gmane.org gmane.linux.lib.musl.general:6773 Archived-At: El Wed, 31 Dec 2014 21:46:48 +0100 "piranna@gmail.com" escribi=F3: > > You've used CLFS-embedded, right?. Probably you are getting > > dynamic-link issues because the steps used for musl in CLFS-embedded > > are not linked with the cross binutils (or the binutils from the > > clfs-toolchain). You need to add CROSS_COMPILE=3D"${CLFS_TARGET}-" > > to the environment. >=20 > Yes, cross-compiler is based on CLFS-embedded. I think what you say > it's not an issue because I'm explicitly using $TARGET-gcc, but > definitely is a good idea to also define the environment variable just > to be sure :-) >=20 With CC=3D"${CLFS_TARGET}-gcc" you won't get musl linked against cross-binutils. CROSS_COMPILE will use $TARGET-ld.