From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10587 Path: news.gmane.org!.POSTED!not-for-mail From: Shiz Newsgroups: gmane.linux.lib.musl.general Subject: Re: 32 bit musl? Date: Thu, 6 Oct 2016 02:24:43 +0200 Message-ID: References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1475713513 26868 195.159.176.226 (6 Oct 2016 00:25:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2016 00:25:13 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10600-gllmg-musl=m.gmane.org@lists.openwall.com Thu Oct 06 02:25:09 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1brwUZ-0004WK-V8 for gllmg-musl@m.gmane.org; Thu, 06 Oct 2016 02:24:56 +0200 Original-Received: (qmail 15527 invoked by uid 550); 6 Oct 2016 00:24:56 -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 15509 invoked from network); 6 Oct 2016 00:24:55 -0000 In-Reply-To: X-Mailer: Apple Mail (2.3124) Xref: news.gmane.org gmane.linux.lib.musl.general:10587 Archived-At: As Rich noted, a cross-compiler is the easy way out here - GCC multilib = has a number of assumptions that break under musl and likely elsewhere. Since you seem unsure how to compile one, I=E2=80=99d recommend = musl-cross-make[1]. You only need to edit a single variable in config.mak and run 'make && = make install' to get a working toolchain. - Shiz [1]: https://github.com/richfelker/musl-cross-make > On 06 Oct 2016, at 00:20, John Mudd wrote: >=20 > I've been using musl on a 32-bit Linux to build 32-bit apps to run on = 32 and 64-bit Linux machines. That works well. >=20 > I upgraded to a 64 bit development box. I've assumed I would just need = to use -m32 option and I could still build 32 bit apps on my 64 bit = machine. I tried it but it tries to mix 32 & 64 bit code. I guess I was = naive. >=20 > It looks like I should build a cross compiler? I see several = suggestions on how to do this so I'm not confident this will work well. = Or would it be easier if I just installed a 32 bit Linux in a VM just = for building 32 bit apps with musl? >=20 > John