From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6248 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 15:17:31 -0500 Message-ID: <542C615B.3050202@sholland.net> References: <20141001161020.GO21835@port70.net> <542C4F58.70708@sholland.net> <542C579A.7090008@sholland.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 1412194672 12133 80.91.229.3 (1 Oct 2014 20:17:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2014 20:17:52 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6261-gllmg-musl=m.gmane.org@lists.openwall.com Wed Oct 01 22:17:46 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 1XZQLK-0004G9-4B for gllmg-musl@plane.gmane.org; Wed, 01 Oct 2014 22:17:46 +0200 Original-Received: (qmail 15494 invoked by uid 550); 1 Oct 2014 20:17:45 -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 15483 invoked from network); 1 Oct 2014 20:17:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sholland.net; s=key1; t=1412194643; bh=l/+VMundUZQlB9NkNVPlsnNR6zVYZmz7mhbaJVan9tY=; h=Date:From:To:Subject:References:In-Reply-To; b=Sm7Z8lKUd/o0oAehzqGicZj21/Xtb/r2R3/0L9u/gCC8yFD3mALod/m+vsa8iYlsP D59/kmD9W//olgZLtQN9JONh3da4Esi4uR6a73YsVMg+QVrcRaniEj2tNLnWrg0nGq ea36dIeEepcR7tJqCttzLnmLjvGlc93iQ683DchY= 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:6248 Archived-At: On 10/01/2014 02:44 PM, stephen Turner wrote: > That is incorrect i gave you a bad readout. (im using debian as a host > system which is the gcc i provided) > > > COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=pentiumpro' > /bin/../libexec/gcc/i686-pc-linux-gnu/4.6.4/collect2 --eh-frame-hdr -m > elf_i386 -dynamic-linker /lib/ld-linux.so.2 > /bin/../lib/gcc/i686-pc-linux-gnu/4.6.4/../../../crt1.o > /bin/../lib/gcc/i686-pc-linux-gnu/4.6.4/../../../crti.o > /bin/../lib/gcc/i686-pc-linux-gnu/4.6.4/crtbegin.o > -L/bin/../lib/gcc/i686-pc-linux-gnu/4.6.4 -L/bin/../lib/gcc > -L/bin/../lib/gcc/i686-pc-linux-gnu/4.6.4/../../../../i686-pc-linux-gnu/lib > -L/bin/../lib/gcc/i686-pc-linux-gnu/4.6.4/../../.. /tmp/ccgPcLnb.o -lgcc > -lc -lgcc /bin/../lib/gcc/i686-pc-linux-gnu/4.6.4/crtend.o > /bin/../lib/gcc/i686-pc-linux-gnu/4.6.4/../../../crtn.o Okay, that makes more sense. Note that your 'dynamic-linker' is still set to glibc's, but you are linking to /lib/libc.so (the last -L option), which is the correct musl libc. Are you using the musl-cross gcc patch[0]? It will solve that for you. [0] https://bitbucket.org/GregorR/musl-cross/src/default/patches/gcc-4.6.4-musl.diff -- Regards, Samuel Holland