From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6500 Path: news.gmane.org!not-for-mail From: stephen Turner Newsgroups: gmane.linux.lib.musl.general Subject: Re: issues with headers? Date: Fri, 14 Nov 2014 16:34:57 -0500 Message-ID: References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f6470097a91910507d86637 X-Trace: ger.gmane.org 1416000918 17672 80.91.229.3 (14 Nov 2014 21:35:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Nov 2014 21:35:18 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6513-gllmg-musl=m.gmane.org@lists.openwall.com Fri Nov 14 22:35:12 2014 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XpOWM-0007Ib-Gw for gllmg-musl@m.gmane.org; Fri, 14 Nov 2014 22:35:10 +0100 Original-Received: (qmail 5698 invoked by uid 550); 14 Nov 2014 21:35:09 -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 5690 invoked from network); 14 Nov 2014 21:35:08 -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=TBhNxlvk0MKTLWBc1KEt5iCDnd8sbBxbuqlc1vwjOl4=; b=Y1XA+2CVrpdrAI/Yed6dT9wIJuN2ggQpkqujaGo9HBm3BI6uvDkc2e4tQJxMdTMcgO YoNejGdzU46ELcl+3TvdET26VpQHVI7Zc7rJxbsAjvyNC20i+vFG+JyKn5ZjLiW0mcmv MiLMdjL9Owh+VPTsyCj6SAvGoWPRF+ttwHAqFxd7udg26dgyi6Gln5+2/uwFpufyHutO 1oM3okTlc0QFGhVRlHdbYq5nonXLWLhLxJZlEjSqvMp2s5sH6jplBvsjMNf1frwj/QPX 52ayaZBuMcZnCCqXjN40gY7TG3iSv94vws/NeRf9jpYIRr7vkKl/7K5zEsXjVPLjKsL3 wfEQ== X-Received: by 10.182.63.17 with SMTP id c17mr2934296obs.65.1416000897190; Fri, 14 Nov 2014 13:34:57 -0800 (PST) In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:6500 Archived-At: --e89a8f6470097a91910507d86637 Content-Type: text/plain; charset=UTF-8 Guess that patch is unstable or not what i expected. so there are no patches for M4, GMP, MPFR, or MPC? thanks On Fri, Nov 14, 2014 at 3:22 PM, stephen Turner wrote: > looks like i missed the patch for m4, again my mistake sorry. > > thanks, > stephen > > On Fri, Nov 14, 2014 at 3:01 PM, stephen Turner < > stephen.n.turner@gmail.com> wrote: > >> It appears like gmp doesn't play nice with musl hosts? a musl target is >> fine allowing a cross environment to work but not a pure musl evnironment >> or specifying musl as the host. >> >> I created a cross compiler successfully but using the cross compiler to >> "recreate itself" hasn't worked when rebuilding gmp as a part of the >> process. It could be me, everything up to this point has been apparently >> but i was hoping someone could chime in and let me know if they have >> compiled gmp on a native musl system or if it requires a patch i missed or >> some gnu code? >> >> thanks, >> stephen >> >> On Fri, Nov 14, 2014 at 2:49 PM, stephen Turner < >> stephen.n.turner@gmail.com> wrote: >> >>> GMP errors out with "invalid configuration 'non-pc-linux-musl' not >>> recognized. Im using the --target and --host flags i686-linux-musl and >>> --build i686-linux-gnu. I also tried switching to a chroot musl env and >>> running a plain configure on gmp only and it complains the compiler cant >>> create executables which i know to be false. >>> >>> Will GMP compile on a musl system? >>> Google search showed one other person with the issue but no answer. >>> >>> thanks, >>> stephen >>> >>> >>> >>> On Thu, Nov 13, 2014 at 6:23 PM, stephen Turner < >>> stephen.n.turner@gmail.com> wrote: >>> >>>> It looks like your right, I just ran a compile specifying musl headers >>>> and this time it worked. I need to review my process yet again and see what >>>> changed that fixed this issue. >>>> >>>> I new this wouldn't be easy but man i didn't expect it to feel this >>>> finicky or fickle. >>>> >>>> thanks, >>>> stephen >>>> >>>> On Thu, Nov 13, 2014 at 5:13 PM, Justin Cormack < >>>> justin@specialbusservice.com> wrote: >>>> >>>>> On Thu, Nov 13, 2014 at 10:02 PM, stephen Turner >>>>> wrote: >>>>> > I have been trying various ways of compiling a musl system using gcc >>>>> and >>>>> > found that GCC-4.7.3 does not seem to want to compile against musl >>>>> headers. >>>>> > I install the linux headers in /usr/include then i install musl and >>>>> move its >>>>> > headers to /usr/include. then i specify -I/usr/include to gcc and it >>>>> errors >>>>> > every time (technically its /cross/usr/include as i have a separated >>>>> env >>>>> > from my host system) The same compile works fine against musl libs >>>>> but not >>>>> > the headers. The only change made from a working to a non-working >>>>> system >>>>> > appears to be the use of the musl generated headers. >>>>> > >>>>> > In the scripts to build a musl toolchain (such as gregorr) the header >>>>> > location is not specified but sysroot is used (which obviously isn't >>>>> linking >>>>> > against the headers) I first started to see this issue when >>>>> chroot'ing into >>>>> > a newly created musl gcc system. >>>>> > >>>>> > Is musl suitable as a stand alone libc replacement? Should i not be >>>>> building >>>>> > against musl headers? If there is any reports or details you want me >>>>> to >>>>> > provide please let me know. >>>>> >>>>> You want to use a chroot or a VM with Musl if you are having these >>>>> issues. Sabotage or Alpine are good options. It will save a lot of >>>>> grief. Otherwise you are doing somethnig wrong that is hard to >>>>> diagnose without much moer info. >>>>> >>>>> Justin >>>>> >>>> >>>> >>> >> > --e89a8f6470097a91910507d86637 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Guess that patch is unstable or not what i expected. so th= ere are no patches for M4, GMP, MPFR, or MPC?=C2=A0

than= ks

On = Fri, Nov 14, 2014 at 3:22 PM, stephen Turner <stephen.n.turner@g= mail.com> wrote:
looks like i missed the patch for m4, again my mistake sorry.
=
thanks,
stephen
<= div class=3D"h5">

= On Fri, Nov 14, 2014 at 3:01 PM, stephen Turner <stephen.n.turner= @gmail.com> wrote:
It appears like gmp doesn't play nice with musl hosts? a musl = target is fine allowing a cross environment to work but not a pure musl evn= ironment or specifying musl as the host.

I created a cro= ss compiler successfully but using the cross compiler to "recreate its= elf" hasn't worked when rebuilding gmp as a part of the process. I= t could be me, everything up to this point has been apparently but i was ho= ping someone could chime in and let me know if they have compiled gmp on a = native musl system or if it requires a patch i missed or some gnu code?

thanks,
stephen

On Fri, Nov 14, 2014 at= 2:49 PM, stephen Turner <stephen.n.turner@gmail.com> wrote:
GMP errors out= with "invalid configuration 'non-pc-linux-musl' not recognize= d. Im using the --target and --host flags i686-linux-musl and --build i686-= linux-gnu.=C2=A0 I also tried switching to a chroot musl env and running a = plain configure on gmp only and it complains the compiler cant create execu= tables which i know to be false.

Will GMP compile on a m= usl system?=C2=A0
Google search showed one other person with the = issue but no answer.

thanks,
stephen


=
On Thu, Nov 13, 2014 at 6:23 PM, stephen Tur= ner <stephen.n.turner@gmail.com> wrote:
It looks like your right, I just ra= n a compile specifying musl headers and this time it worked. I need to revi= ew my process yet again and see what changed that fixed this issue.=C2=A0
I new this wouldn't be easy but man i didn't expe= ct it to feel this finicky or fickle.=C2=A0

thanks= ,
stephen

On Thu, Nov 13, 2014 at 5:13 PM, Justin Cormack <justin@specialbusservice.com> wrote:
On Thu, Nov 13, 2014 at 10:02 PM, stephen T= urner
<stephen= .n.turner@gmail.com> wrote:
> I have been trying various ways of compiling a musl system using gcc a= nd
> found that GCC-4.7.3 does not seem to want to compile against musl hea= ders.
> I install the linux headers in /usr/include then i install musl and mo= ve its
> headers to /usr/include. then i specify -I/usr/include to gcc and it e= rrors
> every time (technically its /cross/usr/include as i have a separated e= nv
> from my host system) The same compile works fine against musl libs but= not
> the headers. The only change made from a working to a non-working syst= em
> appears to be the use of the musl generated headers.
>
> In the scripts to build a musl toolchain (such as gregorr) the header<= br> > location is not specified but sysroot is used (which obviously isn'= ;t linking
> against the headers)=C2=A0 I first started to see this issue when chro= ot'ing into
> a newly created musl gcc system.
>
> Is musl suitable as a stand alone libc replacement? Should i not be bu= ilding
> against musl headers? If there is any reports or details you want me t= o
> provide please let me know.

You want to use a chroot or a VM with Musl if you are having th= ese
issues. Sabotage or Alpine are good options. It will save a lot of
grief. Otherwise you are doing somethnig wrong that is hard to
diagnose without much moer info.

Justin





--e89a8f6470097a91910507d86637--