From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9504 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Problem with musl-gcc script. Is it bad installation? Date: Sat, 5 Mar 2016 21:33:20 -0500 Message-ID: <20160306023320.GR9349@brightrain.aerifal.cx> References: <20160306002823.09d603d7c3d8fe4b0f4b15c1@asm32.info> <20160306003609.GO9349@brightrain.aerifal.cx> <20160306030230.cedf8eded77c37ec1d450f3c@asm32.info> <20160306010907.GQ29662@port70.net> <20160306031505.5bcff24d35f90d98335cafb4@asm32.info> <20160306011825.GS29662@port70.net> <20160306132053.5c6a26f39db6a963ff1a1c11@gmail.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1457231617 18944 80.91.229.3 (6 Mar 2016 02:33:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Mar 2016 02:33:37 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9517-gllmg-musl=m.gmane.org@lists.openwall.com Sun Mar 06 03:33:37 2016 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 1acOVk-0004YU-KB for gllmg-musl@m.gmane.org; Sun, 06 Mar 2016 03:33:36 +0100 Original-Received: (qmail 24330 invoked by uid 550); 6 Mar 2016 02:33:34 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 24311 invoked from network); 6 Mar 2016 02:33:33 -0000 Content-Disposition: inline In-Reply-To: <20160306132053.5c6a26f39db6a963ff1a1c11@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:9504 Archived-At: On Sun, Mar 06, 2016 at 01:20:53PM +1100, James B wrote: > > On Sun, 6 Mar 2016 02:18:25 +0100 > Szabolcs Nagy wrote: > > > > > gcc -m32 is a hack.. you will find more brokenness > > if you keep using it instead of using an i386 > > cross toolchain. > > > > I use this spec file running 32-bit musl on 64-bit env ... it seems to work for making simple binaries. > (PS: there are hardcoded paths there, I installed 32-bit musl to /usr/musl32). > > cheers! > > -- > James B > *asm: > --32 > > %rename cpp_options old_cpp_options > > *cpp_options: > -nostdinc -isystem /usr/musl32/include -isystem include%s %(old_cpp_options) > > *cc1: > %(cc1_cpu) -m32 -nostdinc -isystem /usr/musl32/include -isystem include%s > > *link_libgcc: > -L/usr/musl32/lib -L .%s > > *libgcc: > 32/libgcc.a%s %:if-exists(32/libgcc_eh.a%s) > > *startfile: > %{!shared: /usr/musl32/lib/%{pie:S}crt1.o} /usr/musl32/lib/crti.o %{shared|pie:crtbeginS.o%s;:32/crtbegin.o%s} > > *endfile: > %{shared|pie:crtendS.o%s;:32/crtend.o%s} /usr/musl32/lib/crtn.o > > *link: > -m elf_i386 -dynamic-linker /ld-musl-i386.so.1 -nostdlib %{shared:-shared} %{static:-static} %{rdynamic:-export-dynamic} That should be /lib/ld-musl-i386.so.1 Rich