From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6256 Path: news.gmane.org!not-for-mail From: Samuel Holland Newsgroups: gmane.linux.lib.musl.general Subject: Re: converting gcc from glibc to musl Date: Thu, 02 Oct 2014 15:47:44 -0500 Message-ID: <568b5df17f2616f03b76474101240cbe@mail.sholland.net> References: <20141001161020.GO21835@port70.net> <542C4F58.70708@sholland.net> <542C579A.7090008@sholland.net> <542C615B.3050202@sholland.net> <542C6A08.7010107@sholland.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1412282898 12944 80.91.229.3 (2 Oct 2014 20:48:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Oct 2014 20:48:18 +0000 (UTC) Cc: stephen Turner To: musl@lists.openwall.com Original-X-From: musl-return-6269-gllmg-musl=m.gmane.org@lists.openwall.com Thu Oct 02 22:48:11 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 1XZnII-0003jm-Ob for gllmg-musl@plane.gmane.org; Thu, 02 Oct 2014 22:48:10 +0200 Original-Received: (qmail 5699 invoked by uid 550); 2 Oct 2014 20:48:10 -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 5686 invoked from network); 2 Oct 2014 20:48:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sholland.net; s=key1; t=1412282864; bh=Drq2XqkHwDXaMoPBq7e58+DZhxR0MApxwxGTx/q2DNk=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=cMMT77gbrZT8Fcy9Ucj91+wltjEOvhvV310KYNrXQnF13IDadulZymh3Jp0j1vot3 a3Ghm6/bJ8EohadbihAJDPMHqKN8Q0/Oe9lYUy+gkxFIpZXO28tcyqjofsS/GmNeoX CNVoa+F+MIbxllDm+F9As2bpq58Oh+lrX9hckq3E= In-Reply-To: X-Sender: samuel@sholland.net User-Agent: Roundcube Webmail/1.0.3 Xref: news.gmane.org gmane.linux.lib.musl.general:6256 Archived-At: On 2014-10-02 15:31, stephen Turner wrote: > since patching with the recommended patch (the one i had wasnt a full > patch > apparently) i have been able to use this option --host=i686-linux-musl > however now when i compile i run into new issues. > > Firstly gmp, mpfr, and mpc do not like this flag obviously since they > do > not have the musl settings patched in so i cant compile with the musl > wrapper because i cannot include those math libraries and when i try to > prebuild them and use the flag --with-mpfr=/target/location it errors > out > saying it cant find any compatible versions of these libs/headers. Overriding the host is really only necessary for a few programs like gcc. Most will work fine with musl, even though they detect your system as "i686-pc-linux-gnu". That said, if you want to use --host on all of your programs, all you need is a patch like the one here[0]. There are four or five different variations of the patch though, depending on what version/configuration of autotools the project uses. [0] https://github.com/smaeul/starch/blob/master/pkgbuilds/libmpfr/libmpfr-musl.patch -- Regards, Samuel Holland