From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6258 Path: news.gmane.org!not-for-mail From: stephen Turner Newsgroups: gmane.linux.lib.musl.general Subject: Re: converting gcc from glibc to musl Date: Thu, 2 Oct 2014 18:40:49 -0400 Message-ID: References: <20141001161020.GO21835@port70.net> <542C4F58.70708@sholland.net> <542C579A.7090008@sholland.net> <542C615B.3050202@sholland.net> <542C6A08.7010107@sholland.net> <568b5df17f2616f03b76474101240cbe@mail.sholland.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013c6ed0dfc6090504784e2a X-Trace: ger.gmane.org 1412289669 28104 80.91.229.3 (2 Oct 2014 22:41:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Oct 2014 22:41:09 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6271-gllmg-musl=m.gmane.org@lists.openwall.com Fri Oct 03 00:41:04 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 1XZp3W-0000l3-Jc for gllmg-musl@plane.gmane.org; Fri, 03 Oct 2014 00:41:02 +0200 Original-Received: (qmail 28032 invoked by uid 550); 2 Oct 2014 22:41:01 -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 28021 invoked from network); 2 Oct 2014 22:41:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=1whyct/49gcMemT3zFC1eJernfKD6QtgGdeGUKNHvx8=; b=QaZUix3+RGETX6XZmxysKya4GvGIOfrBPkoxRJ66oYzSSQJG53QG2kqZ/Ic1EWfpnc Z3h4zkkRl9hO6/l8HpLQkXI/Fg4nz53jug5kKF55k4c3yWrXtlNeIaHonQHcQDoS6ce0 kAFtkjPlcH7bUSbYRF8408gUEzWPD1BQPqHdaeNRF2mZsiFrmxp8zBO/02Art5WtDX+R jvUZ88jd7L8GnzZPrdD9cBHJAtLCob8ti03sb3Ksw+x1m4tkrXCyQzpGJyUrxthDrVFQ vmsjOrekUM6qiiTFk52TQzJtIka9g7Jwboamoq+M33m60QiFRS0fN5N2cmzlexOSHBzL iJfw== X-Received: by 10.220.125.1 with SMTP id w1mr1172831vcr.42.1412289649426; Thu, 02 Oct 2014 15:40:49 -0700 (PDT) In-Reply-To: <568b5df17f2616f03b76474101240cbe@mail.sholland.net> Xref: news.gmane.org gmane.linux.lib.musl.general:6258 Archived-At: --089e013c6ed0dfc6090504784e2a Content-Type: text/plain; charset=UTF-8 Gcc is dying with /bin/bash i686-linux-musl-gcc command not found about half to 3/4 way through build. I know this is not enough info to help diagnose the issue but unlike errors during config, its not pointing me to a compile error log. I will be more than happy to provide anything you need just let me know what that is. thanks for your help. On Thu, Oct 2, 2014 at 4:47 PM, Samuel Holland wrote: > 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 > --089e013c6ed0dfc6090504784e2a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Gcc is dying with /bin/bash i686-linux-musl-gcc command no= t found about half to 3/4 way through build.=C2=A0 I know this is not enoug= h info to help diagnose the issue but unlike errors during config, its not = pointing me to a compile error log. I will be more than happy to provide an= ything you need just let me know what that is.

thanks fo= r your help.

On Thu, Oct 2, 2014 at 4:47 PM, Samuel Holland <= ;samuel@sholland.n= et> wrote:
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=3Di686-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=3D/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. M= ost
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 us= es.

[0] https://github.com/smaeul/s= tarch/blob/master/pkgbuilds/libmpfr/libmpfr-musl.patch

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

--089e013c6ed0dfc6090504784e2a--