mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Samuel Holland <samuel@sholland.net>
To: musl@lists.openwall.com
Subject: Re: libgcc errors
Date: Tue, 07 Oct 2014 17:59:26 -0500	[thread overview]
Message-ID: <5434704E.8080504@sholland.net> (raw)
In-Reply-To: <CAA7aPHiA61n82-pw=M0JNTG8XBMp8e_YtHg3Z+7xgkG9AKt+zg@mail.gmail.com>

On 10/07/2014 04:32 PM, Stephen Turner wrote:
> I apologize for my lack of experience with building toolchains. if
> there is a known good tutorial for this i will gladly ref it however
> the best i have found is lfs embedded which i am currently using (and
> not working).

Embedded/Cross LFS make things much more complicated than you need. You
can use the main LFS instructions to generate a native complier, 
applying these modifications:

1. $LFS_TGT needs to be $ARCH-linux-musl
2. Patch gcc every time you compile it
3. Use a non-broken version of gcc; I recommend 4.7.x
4. Of course, replace glibc with musl
5. You may need to disable some extra math/optimization libraries that
come with gcc; the musl-cross build script[0] may give you some hints.

Sysroot is generally more of a problem than it solves. It's really only 
useful for cross-compilers where you have a complete copy of your 
target's /usr somewehere. Another warning: gcc does not look in /lib or 
/include like you would want it to without patching like LFS does for 
/tools.

[0] 
https://bitbucket.org/GregorR/musl-cross/src/2dfead9ed81aa590a69f1e33992935da37dee931/build.sh?at=default#cl-131

-- 
Regards,
Samuel Holland <samuel@sholland.net>


  reply	other threads:[~2014-10-07 22:59 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-07 18:54 stephen Turner
2014-10-07 19:51 ` Szabolcs Nagy
2014-10-07 21:32   ` stephen Turner
2014-10-07 22:59     ` Samuel Holland [this message]
2014-10-09 12:13       ` Andrew Bradford
2014-10-09 14:46         ` stephen Turner
2014-10-09 15:49           ` stephen Turner
2014-10-09 19:38         ` Samuel Holland
2014-10-09 21:08           ` stephen Turner
2014-10-09 21:43             ` Samuel Holland
2014-10-09 21:55               ` stephen Turner
2014-10-09 22:17                 ` stephen Turner
2014-10-10 21:01                   ` stephen Turner
2014-10-10 21:21                     ` Rich Felker
2014-10-10 21:28                       ` Samuel Holland
2014-10-10 21:30                     ` Samuel Holland
2014-10-16 17:35                       ` stephen Turner
2014-10-09 22:04               ` writeonce

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=5434704E.8080504@sholland.net \
    --to=samuel@sholland.net \
    --cc=musl@lists.openwall.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).