From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6270 Path: news.gmane.org!not-for-mail From: Samuel Holland Newsgroups: gmane.linux.lib.musl.general Subject: Re: libgcc errors Date: Tue, 07 Oct 2014 17:59:26 -0500 Message-ID: <5434704E.8080504@sholland.net> References: <20141007195156.GV21835@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1412722787 29854 80.91.229.3 (7 Oct 2014 22:59:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Oct 2014 22:59:47 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6283-gllmg-musl=m.gmane.org@lists.openwall.com Wed Oct 08 00:59:40 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XbdjI-0002dj-Cx for gllmg-musl@plane.gmane.org; Wed, 08 Oct 2014 00:59:40 +0200 Original-Received: (qmail 17609 invoked by uid 550); 7 Oct 2014 22:59:39 -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 17597 invoked from network); 7 Oct 2014 22:59:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sholland.net; s=key1; t=1412722735; bh=IhvACNb17H5cd6vcktnqRjbb4FqrgnLvJ5pCPpV8Jeo=; h=Date:From:To:Subject:References:In-Reply-To; b=i+19MIr/uIxeSpcMrIkXKvpykE20P2JCvGa+aubEHW6R100P/4E8nlPvfdzg96lkC NlafdxY9s8A0H3IUPgBy1ys0WPS+qF4IxOCtlNDFJHvuUBPjetjXMOePBRmWE/Ccq/ BwBQ6EBfrY7uUdonypPcl8pq8wsJ7qSNixpeY8f8= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:6270 Archived-At: 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