From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6243 Path: news.gmane.org!not-for-mail From: Samuel Holland Newsgroups: gmane.linux.lib.musl.general Subject: Re: converting gcc from glibc to musl Date: Wed, 01 Oct 2014 14:00:40 -0500 Message-ID: <542C4F58.70708@sholland.net> References: <20141001161020.GO21835@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1412190060 13591 80.91.229.3 (1 Oct 2014 19:01:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2014 19:01:00 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6256-gllmg-musl=m.gmane.org@lists.openwall.com Wed Oct 01 21:00:56 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 1XZP8w-0003hu-C0 for gllmg-musl@plane.gmane.org; Wed, 01 Oct 2014 21:00:54 +0200 Original-Received: (qmail 11955 invoked by uid 550); 1 Oct 2014 19:00:53 -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 11947 invoked from network); 1 Oct 2014 19:00:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sholland.net; s=key1; t=1412190031; bh=Ao1toNGv6tLQWXxUvU7nXGq96gSnFnz2jvDcirFG+K4=; h=Date:From:To:Subject:References:In-Reply-To; b=iQOmc9NgAMS525R4Ru4g/TN1t8srUQJ+XbMi3XTn5fM0y44O5WPD1OLLsQs2fCmJx pH0nB8qGdKsya7Lfqs3kPXtfDFyUTq0NlmFtMheBCfPgc7jL3hN1qBKUJCFbmGeVPC 4JH5WfsdFshBBzKuLX8u9gZ01VrYX8E01N3SPkJ4= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:6243 Archived-At: 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