From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6252 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:54:32 -0500 Message-ID: <542C6A08.7010107@sholland.net> References: <20141001161020.GO21835@port70.net> <542C4F58.70708@sholland.net> <542C579A.7090008@sholland.net> <542C615B.3050202@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 1412196893 9341 80.91.229.3 (1 Oct 2014 20:54:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2014 20:54:53 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6265-gllmg-musl=m.gmane.org@lists.openwall.com Wed Oct 01 22:54:48 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 1XZQv8-0004rr-Ul for gllmg-musl@plane.gmane.org; Wed, 01 Oct 2014 22:54:47 +0200 Original-Received: (qmail 21997 invoked by uid 550); 1 Oct 2014 20:54:46 -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 21986 invoked from network); 1 Oct 2014 20:54:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sholland.net; s=key1; t=1412196864; bh=9C/ac4tgwY8F3PKdnVhHjg0O67ZV5BeqaOOJZE+GDgU=; h=Date:From:To:Subject:References:In-Reply-To; b=bZLrki8UW1wXOPelgYlv7lAlBccGTbXScqPDzE1RQcdUSXItIhcGH9dkXu37ipW7a hPRFihupx5dHd7pJ06wpHkXK5U6t7+tBgT8BPvAITjg4+hiyI04JAJHfEsAhRjx6l+ fJiGf0xKc7uAAZV1c5VzQnpTBNktsEi9S4/YaZiU= 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:6252 Archived-At: On 10/01/2014 03:34 PM, stephen Turner wrote: > Yea i had to patch gcc just to get it to compile which due to various > issues i have only gotten to run on the target musl system when i use > the musl wrapper to compile gcc. > > how would i go about fixing this linker issue? is it with binutils, gcc, > or musl? See lines 77-79 of the musl-cross patch. When you set your triple to i686-linux-musl instead of i686-linux-gnu, it sets musl as the default linker. You didn't, so it defaults to glibc, but you can still tell it to use musl manually, either by putting -mmusl in CFLAGS or the command line, or by editing the specs file, like the musl-gcc wrapper does. Once you get it working, though, I recommend recompiling gcc with --host=i686-linux-musl -- Regards, Samuel Holland