From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10600 Path: news.gmane.org!.POSTED!not-for-mail From: John Mudd Newsgroups: gmane.linux.lib.musl.general Subject: Re: 32 bit musl? Date: Sat, 8 Oct 2016 21:55:42 -0400 Message-ID: References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1143d30020c80e053e64f245 X-Trace: blaine.gmane.org 1475978190 465 195.159.176.226 (9 Oct 2016 01:56:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Oct 2016 01:56:30 +0000 (UTC) To: musl Original-X-From: musl-return-10613-gllmg-musl=m.gmane.org@lists.openwall.com Sun Oct 09 03:56:27 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 1bt3Li-0007dV-Hb for gllmg-musl@m.gmane.org; Sun, 09 Oct 2016 03:56:22 +0200 Original-Received: (qmail 20175 invoked by uid 550); 9 Oct 2016 01:56:17 -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 20147 invoked from network); 9 Oct 2016 01:56:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to; bh=3Pk/oTPjaQsDEOZN1bDFTcztRx5/OZsvl8Ezwkb51eU=; b=vPmZ3eOYspx6R0GuEei7KKuSU7z4XPcxI+tB1n+cAY4xbzgkYgSkVYjFgQVjWnVW7K xCSLTzwd+RbiQvrIBAgSJSb90+edenKrukfZNALA+jVbD3rxWU1kFTsr3somka4xa/gm src/WvXaG4hX2rbWspLxTFXRXGRTp0FD9ryiDQYw4kLshRNQIcV23RQ/MhgMs/P7D0WA qMNCA/YsZlHiyxY08re7UOSD5BxC3/+lJKdbL7og/jaOE8xJHrxSPLymdkolT2jqgn3V 3LBaaYHyFUoWUA+ZkUycJXgcg9fDWfevZmPbGa96rMCEcC0bd4hy0LjbzrfyrG/HutHT HGFQ== 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:in-reply-to:references :from:date:message-id:subject:to; bh=3Pk/oTPjaQsDEOZN1bDFTcztRx5/OZsvl8Ezwkb51eU=; b=DTTc5wjJODPOvBNmdtEcD17PiYvHWKGGXCu5Cv9r/Msubb8mi7PftkBC/TZ90YZPq6 ma41zECGVx/G9W1KpY9sI971+Vhs9yIDaHrWsz9JOR8ookciKkR26PnZRFlIoUbJZ4Dv bMZ6MUPLnXGJ1KE+pXM+2AXUNB2jvqyhhr2JygNA5RYR7XeXT08bBcONDVvAq7+PTotW xA9iXPabSbB6i4aRANYLyE2lqIZLpqPyYntngFVV2PLV+cNiKYUi2iNslwubwcWxk8c1 VzNZw5XS5QIfZnSyJwNKugONk8LJUB70tgObdbm/Pg4mM5sPVcSeMPvJvupW7lTHp/Hn Ne8Q== X-Gm-Message-State: AA6/9RlBZHEJihsA8UJNePaJA7mmaalMJcLfbU9SrnnWyTz+Tl79orkQ/0HRYh66prOH8osLHde7fXTI/cTXEA== X-Received: by 10.55.198.85 with SMTP id b82mr24530796qkj.171.1475978163437; Sat, 08 Oct 2016 18:56:03 -0700 (PDT) In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:10600 Archived-At: --001a1143d30020c80e053e64f245 Content-Type: text/plain; charset=UTF-8 Many thanks for the help, Shiz and Rich! I've built gcc from source before but it's a chore. Rich's musl-cross-make was magical. Much better solution than using a 32-bit VM. All I need were these steps. The first two should be obvious but they tripped me up. Make sure gcc AND g++ are installed. unset CC unzip musl-cross-make-master.zip cd musl-cross-make-master make TARGET=i686-linux-musl OUTPUT=$(pwd).install -j6 install So this builds 32-bit executables that use musl libs. It kills two birds with one stone. That's great. But it appears to expect musl libc to be installed in /lib for dynamically linked executables. That's not an option for me. Is there a way I can override this? On Wed, Oct 5, 2016 at 6:20 PM, John Mudd wrote: > ... > 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 > --001a1143d30020c80e053e64f245 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Many thanks for the help, Shiz and Rich! I've built gc= c from source before but it's a chore. Rich's musl-cross-make was m= agical. Much better solution than using a 32-bit VM.

All= I need were these =C2=A0steps. The first two should be obvious but they tr= ipped me up.
=C2=A0 =C2=A0 Make sure gcc AND g++ are install= ed.
=C2=A0 =C2=A0=C2=A0unset CC
=C2=A0 =C2=A0=C2=A0unzi= p musl-cross-make-master.zip
=C2=A0 =C2=A0=C2=A0cd musl-cross-mak= e-master
=C2=A0 =C2=A0=C2=A0make TARGET=3Di686-linux-musl OUTPUT= =3D$(pwd).install -j6 install

So this builds 32-bi= t executables that use musl libs. It kills two birds with one stone. That&#= 39;s great.

But it appears to expect musl libc= to be installed in /lib for dynamically linked executables. That's not= an option for me. Is there a way I can override this?

=
On Wed, Oct 5, 2016 a= t 6:20 PM, John Mudd <johnbmudd@gmail.com> wrote:
...
It looks like I should build a cross compiler? I see several suggesti= ons on how to do this so I'm not confident this will work well. Or woul= d it be easier if I just installed a 32 bit Linux in a VM just for building= 32 bit apps with musl?

John=

--001a1143d30020c80e053e64f245--