From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10584 Path: news.gmane.org!.POSTED!not-for-mail From: John Mudd Newsgroups: gmane.linux.lib.musl.general Subject: 32 bit musl? Date: Wed, 5 Oct 2016 18:20:55 -0400 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114a895878c7be053e25985f X-Trace: blaine.gmane.org 1475706111 2339 195.159.176.226 (5 Oct 2016 22:21:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 5 Oct 2016 22:21:51 +0000 (UTC) To: musl Original-X-From: musl-return-10597-gllmg-musl=m.gmane.org@lists.openwall.com Thu Oct 06 00:21:47 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 1bruZ7-0006fn-26 for gllmg-musl@m.gmane.org; Thu, 06 Oct 2016 00:21:29 +0200 Original-Received: (qmail 18087 invoked by uid 550); 5 Oct 2016 22:21:29 -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 18057 invoked from network); 5 Oct 2016 22:21:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:from:date:message-id:subject:to; bh=c+CNpXf2YSOAkLlnS2LQr+pSFul+AzqXasMvp0ToR18=; b=BsoXnVO+Yupm7DzpEmrZqdecGHKKmrUUS7QEQL1Obsgo9wRcZq+ZQZe6adOkJgJHnZ Aay6rdnPEuIPvt/1OwGDivQ0CuWAvZOh5QM+hiDYWqLxFtItdwFcsrvxYRSFQHlbU5E1 SKahsgB8nnCHUbSUldiVVCgsgpAYr+jTu9aXvb8XnIEwCjPGjRQefiEB09k0YEoUgpYr zEYjVKMI1OWR/TGT+hhsJjf0SeyP4eAZS+YegiOpHpynkvGL47BAVoedMTsBcvH70P2B zp01NtWyw3Lw1UVU5rqDGbLydnh6IUnR1y6ALhH75WwAhlT2yUHd3rINbFq+GBUGSshb z5IA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=c+CNpXf2YSOAkLlnS2LQr+pSFul+AzqXasMvp0ToR18=; b=UEHDbx/u0Qvyx/MQjUmL7tmSZANs/c1Tplr6em+U8ipE12nClmLjcs9ojkNKvFair/ gH119pn0fxiu3GNUyTsM2T+OVVxt7e+/OnEqF0bXxbr7aUofL4lp0DLlRP9rly4NujAY Ac0J50xg4sqPcRp2Cj370lQdoqI+/BJWfe/GGqXsH2oJ0y6jIWz8MjFOxdU9xk6onRcY pndHGh+92Sn9pOJ28p1YAgcSwcFKSvTPdbh6ZsTpGuTwzeKwDC4wHlN5dSE0C40U6U5f t2jsWxA1kB9O8irRUkXqH0k9cDRnSL+JfWYCPDfsz+GGpNu8GxjxtgMVF2SF0N4ZOOvH PUKA== X-Gm-Message-State: AA6/9RmGLUr2HgIVDgeCyu4Qr6cC66umrXkrtbWLrbaYcYEQXNwB1ttockhKu7Ii3urxESuP44U3LPqfdAOd+A== X-Received: by 10.55.77.148 with SMTP id a142mr12952204qkb.157.1475706076315; Wed, 05 Oct 2016 15:21:16 -0700 (PDT) Xref: news.gmane.org gmane.linux.lib.musl.general:10584 Archived-At: --001a114a895878c7be053e25985f Content-Type: text/plain; charset=UTF-8 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. 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. 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? John --001a114a895878c7be053e25985f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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.

I upgraded to a 64 bit development box. I've assumed I would jus= t 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.

It looks like I should build a cross compi= ler? I see several suggestions on how to do this so I'm not confident t= his will work well. Or would it be easier if I just installed a 32 bit Linu= x in a VM just for building 32 bit apps with musl?

John
--001a114a895878c7be053e25985f--