From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6259 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: Fri, 3 Oct 2014 09:51:46 -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=bcaec548a4f3b0613b050485086b X-Trace: ger.gmane.org 1412344327 26308 80.91.229.3 (3 Oct 2014 13:52:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Oct 2014 13:52:07 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6272-gllmg-musl=m.gmane.org@lists.openwall.com Fri Oct 03 15:52:02 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 1Xa3H6-0000eQ-8b for gllmg-musl@plane.gmane.org; Fri, 03 Oct 2014 15:52:00 +0200 Original-Received: (qmail 16239 invoked by uid 550); 3 Oct 2014 13:51:58 -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 16231 invoked from network); 3 Oct 2014 13:51:58 -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=JmapUXU7l3zOfu0AlZK+pgQXqer6nrSjWwGY2yF30FU=; b=woUMeIUbMEE9sBEZGLqBgtmnBf10Wb34kTsrMH3NuEa/aRPStKC2H5VjaSK4/Emxbf FKyPoe/czqiGyoO6xX7vIKXJn7WiEIWrzjkOlrnNiYykvEGZTYLB2Q7EKGMvgOLBkMBd NQxMxHEqE92k5NMYbYyDytS9mdeGSBJoSxp2Z+OX0atwSl8L1PMQXdfIv1YayYSIF++J go1QH92Hf2Eg1lkzCdr4N55MD7gH+8jlKg1GohaR+36jSEaBx9ijGtY0UchCuutx2dT1 03gGk32oV9wXwqjFqxrOd/yL8Y+J6Wp2CC8uKGq7HZWcZtMiJSRvi6ztDv49UYZ6rV40 +7Og== X-Received: by 10.52.114.130 with SMTP id jg2mr348795vdb.94.1412344306484; Fri, 03 Oct 2014 06:51:46 -0700 (PDT) In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:6259 Archived-At: --bcaec548a4f3b0613b050485086b Content-Type: text/plain; charset=UTF-8 Thanks for the help, that fixed the issue. On Thu, Oct 2, 2014 at 6:40 PM, stephen Turner wrote: > 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 >> > > --bcaec548a4f3b0613b050485086b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks for the help, that fixed the issue.

On Thu, Oct 2, 2014 at 6:40= PM, stephen Turner <stephen.n.turner@gmail.com> wr= ote:
Gcc is dying with /= bin/bash i686-linux-musl-gcc command not found about half to 3/4 way throug= h build.=C2=A0 I know this is not enough info to help diagnose the issue bu= t 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 wha= t that is.

thanks for your help.

On Thu, Oct 2, 2014 at 4:47 PM, Samuel Holland <samuel@shol= land.net> 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>


--bcaec548a4f3b0613b050485086b--