From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6245 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: Wed, 1 Oct 2014 15:13:20 -0400 Message-ID: References: <20141001161020.GO21835@port70.net> <542C4F58.70708@sholland.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0163412c0ac23d0504614b9a X-Trace: ger.gmane.org 1412190821 23077 80.91.229.3 (1 Oct 2014 19:13:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2014 19:13:41 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6258-gllmg-musl=m.gmane.org@lists.openwall.com Wed Oct 01 21:13:34 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 1XZPLB-00019X-Ah for gllmg-musl@plane.gmane.org; Wed, 01 Oct 2014 21:13:33 +0200 Original-Received: (qmail 26372 invoked by uid 550); 1 Oct 2014 19:13:32 -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 26364 invoked from network); 1 Oct 2014 19:13:32 -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=BJBdJmhVxkgcF9c8ckystT//frHmuAHkhw+XDot3XNc=; b=AvM1csKB8ZBOprOdmFEnxAIO4kXCJoxEgkunM2i9pqvEjj8Kza+FzNTieDxV3O04OA C786u0JSZHQ5bsTddds6lUEuCbrUgrhkq2f6fVx+eWbeeoPyTXyvAcQKx9t7iY6wjEhc usncEcI4FbjIr+GvYyZxGXDtLaAnP9timla8rrX3lvg4QVe936rGRdJgPAMGKJXWF4XS YzYhwTmwYs4BAd9BoMgULNQOhx0ITxBzTUCEqDUUMkJxyz1hd8jVm39xilmKCKc68ToV aQDqKDKDiotFGW/sdmO2dQh2DanG/0dxy6H6Uwdtp0nwN3crbDmz/IvTV3fndJH067NQ xaQA== X-Received: by 10.220.49.10 with SMTP id t10mr20000202vcf.34.1412190800886; Wed, 01 Oct 2014 12:13:20 -0700 (PDT) In-Reply-To: <542C4F58.70708@sholland.net> Xref: news.gmane.org gmane.linux.lib.musl.general:6245 Archived-At: --089e0163412c0ac23d0504614b9a Content-Type: text/plain; charset=UTF-8 that worked like a charm. so i have a issue with the way i built musl then? apparently dynamic doesnt work without specifying the library but static is fine. On Wed, Oct 1, 2014 at 3:00 PM, Samuel Holland wrote: > On 10/01/2014 12:54 PM, Stephen Turner wrote: > >> I can compile the following program sucessfully to a.out but cannot run >> it. >> >> # include >> main() >> { >> printf("hello world\n"); >> } >> >> gcc test.c && chmod +x a.out && ./a.out >> > > Also try compiling it statically and then running it. > > gcc -v -static test.c > > What compiler flags did you use when compiling musl? If static linking > works, but dynamic doesn't, that points to a library issue, either with > musl or libgcc. > > -- > Regards, > Samuel Holland > --089e0163412c0ac23d0504614b9a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
that worked like a charm. so i have a issue with the way i= built musl then? =C2=A0apparently dynamic doesnt work without specifying t= he library but static is fine.

On Wed, Oct 1, 2014 at 3:00 PM, Samuel Holland <samue= l@sholland.net> wrote:
On 10/01/2014 12:54 PM, Stephen Turner wrote:
I can compile the following program sucessfully to a.out but cannot run it.=

# include <stdio.h>
main()
{
printf("hello world\n");
}

gcc test.c && chmod +x a.out && ./a.out

Also try compiling it statically and then running it.

=C2=A0 =C2=A0 gcc -v -static test.c

What compiler flags did you use when compiling musl? If static linking work= s, but dynamic doesn't, that points to a library issue, either with mus= l or libgcc.

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

--089e0163412c0ac23d0504614b9a--