From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6352 Path: news.gmane.org!not-for-mail From: stephen Turner Newsgroups: gmane.linux.lib.musl.general Subject: Re: libgcc errors Date: Thu, 16 Oct 2014 13:35:53 -0400 Message-ID: References: <20141007195156.GV21835@port70.net> <5434704E.8080504@sholland.net> <54367BF6.80203@bradfordembedded.com> <263E3217-740D-44F2-BC2A-BDCA4AFB38B8@sholland.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c28b162a226205058daee8 X-Trace: ger.gmane.org 1413480973 3214 80.91.229.3 (16 Oct 2014 17:36:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Oct 2014 17:36:13 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6365-gllmg-musl=m.gmane.org@lists.openwall.com Thu Oct 16 19:36:07 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 1Xeoy7-0002QS-0h for gllmg-musl@plane.gmane.org; Thu, 16 Oct 2014 19:36:07 +0200 Original-Received: (qmail 5738 invoked by uid 550); 16 Oct 2014 17:36:06 -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 5728 invoked from network); 16 Oct 2014 17:36:06 -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=WREtX0YjTvsCkuaZjY6+LsRIJ3f02pNYmq5Ggx3WcOo=; b=v98WRldHgpCSzray2CjZvf7BLMW8Nx58XbKxolQLLQw/gXx4cBZLzVoaSOq40t9eAH NQfBPNr2jrQjzT1f4KtQXL6QDwDdOO9FXc/DvOv2dxSVbO0OIgfC/DbnH2I4qKRYW2/p hiSlGYpuvCzSJkGbabZkgWOvR3+IiYyCEGL8mn1BoJe53NOCuLHCBLgnWpCo5DCKYi8X VmHV3CNH6zNgzDYyneN2HCrO95kcRE2jdZyxKhEZNiKITwcw1edk7rbA9LOHSNmMddxz 7bmRH641D4K7PNdsmRHFPXXA/sG2kjEd+2zEoWEm6QmbcAdSgkS0by2UZP+4HDImlUCL msvw== X-Received: by 10.220.158.137 with SMTP id f9mr3056257vcx.34.1413480954076; Thu, 16 Oct 2014 10:35:54 -0700 (PDT) In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:6352 Archived-At: --001a11c28b162a226205058daee8 Content-Type: text/plain; charset=UTF-8 thank you both for your help. It appears i had a combination of issues yet again that i had to work through (incompatible math lib versions? and bad binutils builds?) but now I think i have a successful cross toolchain. currently it appears to be linked to the local libs libm.so.6 and libc.so.6 dynamically even though i specified static and used the musl-gcc wrapper but it did successfully build for the target i686-linux-musl Ironically somehow looking into setting up the /etc/ld-musl-$ARCH.path file led me to notice the issue with the math libs. sleep deprivation however prevents me from remembering that weird thought pattern :-p thanks again! On Fri, Oct 10, 2014 at 5:30 PM, Samuel Holland wrote: > On October 10, 2014 4:01:10 PM CDT, stephen Turner < > stephen.n.turner@gmail.com> wrote: > >As previously mentioned I wiped and installed a clean debian. I did a > >absolute minimum default install no desktop etc compiled the latest > >stable > >musl, m4, gmp, mpfr, mpc, and downloaded gcc 4.7.3 with > >gregorr/musl-cross > >patch to match. > > I'm assuming you're using musl-gcc to compile m4, gmp, mpfr, mpc, > binutils(!), and gcc. > > >Its having a problem finding/using libmpc.so.3 but the paths appear to > >point to the directory which it is located. to be sure i even specified > >using the --with-mpc flag. > > You're almost there! All you have to do is tell musl where to find shared > libraries. From the documentation: > > ../etc/ld-musl-$(ARCH).path, taken relative to the location of the > "program interpreter" specified in the program's headers - if present, this > will be processed as a text file containing the shared library search path, > with components delimited by newlines or colons. If absent, a default path > of"/lib:/usr/local/lib:/usr/lib" will be used. Not used by static-linked > programs. > > You need make that file and put /root/cross/i686-linux-musl/lib in there. > You compiled gcc fine, but the new gcc's backend isn't running because it > can't find the shared libraries you compiled earlier because they aren't in > a standard path. > > -- > Regards, > Samuel Holland > --001a11c28b162a226205058daee8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
thank you both for your help. It appears i had a combinati= on of issues yet again that i had to work through (incompatible math lib ve= rsions? and bad binutils builds?) but now I think i have a successful cross= toolchain. =C2=A0currently it appears to be linked to the local libs libm.= so.6 and libc.so.6 dynamically even though i specified static and used the = musl-gcc wrapper but it did successfully build for the target i686-linux-mu= sl

Ironically somehow looking into setting up the /etc/l= d-musl-$ARCH.path file led me to notice the issue with the math libs. sleep= deprivation however prevents me from remembering that weird thought patter= n :-p

thanks again!

On Fri, Oct 10, 2014 at 5:30 PM, Sam= uel Holland <samuel@sholland.net> wrote:
On October 10, 2014 4:01:10 PM CDT, steph= en Turner <stephen.n.turne= r@gmail.com> wrote:
>As previously mentioned I wiped and installed a clean debian. I did a >absolute minimum default install no desktop etc compiled the latest
>stable
>musl, m4, gmp, mpfr, mpc, and downloaded gcc 4.7.3 with
>gregorr/musl-cross
>patch to match.

I'm assuming you're using musl-gcc to compile m4, gmp, mpfr,= mpc, binutils(!), and gcc.

>Its having a problem finding/using libmpc.so.3 but the paths appear to<= br> >point to the directory which it is located. to be sure i even specified=
>using the --with-mpc flag.

You're almost there! All you have to do is tell musl where to fi= nd shared libraries. From the documentation:

../etc/ld-musl-$(ARCH).path, taken relative to the location of the "pr= ogram interpreter" specified in the program's headers - if present= , this will be processed as a text file containing the shared library searc= h path, with components delimited by newlines or colons. If absent, a defau= lt path of"/lib:/usr/local/lib:/usr/lib"=C2=A0will be used. Not u= sed by static-linked programs.

You need make that file and put /root/cross/i686-linux-musl/lib in there. Y= ou compiled gcc fine, but the new gcc's backend isn't running becau= se it can't find the shared libraries you compiled earlier because they= aren't in a standard path.

--
Regards,
Samuel Holland <samuel@sholland.n= et>

--001a11c28b162a226205058daee8--