From: "Matias A. Fonzo" <selk@dragora.org>
To: "piranna@gmail.com" <piranna@gmail.com>
Cc: musl@lists.openwall.com
Subject: Re: Failed to execute /init (error -2) for system-wide musl libc
Date: Wed, 31 Dec 2014 18:09:49 -0300 [thread overview]
Message-ID: <20141231180949.75845507@dragora.org> (raw)
In-Reply-To: <CAKfGGh0EoXAb7FH2pn2FW1ND7Bts8XSjj2ur-aoc6Ugbb6atNw@mail.gmail.com>
El Wed, 31 Dec 2014 21:46:48 +0100
"piranna@gmail.com" <piranna@gmail.com> escribió:
> > 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="${CLFS_TARGET}-"
> > to the environment.
>
> 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 :-)
>
With CC="${CLFS_TARGET}-gcc" you won't get musl linked against
cross-binutils. CROSS_COMPILE will use $TARGET-ld.
next prev parent reply other threads:[~2014-12-31 21:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-31 18:04 piranna
2014-12-31 19:35 ` Szabolcs Nagy
2014-12-31 19:49 ` piranna
2014-12-31 20:08 ` Matias A. Fonzo
[not found] ` <CAKfGGh0EoXAb7FH2pn2FW1ND7Bts8XSjj2ur-aoc6Ugbb6atNw@mail.gmail.com>
2014-12-31 21:09 ` Matias A. Fonzo [this message]
2014-12-31 21:25 ` piranna
2014-12-31 19:40 ` Isaac Dunham
2014-12-31 20:17 ` piranna
2014-12-31 20:36 ` piranna
2014-12-31 21:55 ` Isaac Dunham
2015-01-01 20:02 ` piranna
2015-01-03 23:37 ` Andy Lutomirski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141231180949.75845507@dragora.org \
--to=selk@dragora.org \
--cc=musl@lists.openwall.com \
--cc=piranna@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).