From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7886 Path: news.gmane.org!not-for-mail From: John Mudd Newsgroups: gmane.linux.lib.musl.general Subject: Re: C++ questions Date: Fri, 5 Jun 2015 18:57:01 -0400 Message-ID: References: <20150605215616.GF10927@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e01494b68c2acec0517cd359f X-Trace: ger.gmane.org 1433545044 24152 80.91.229.3 (5 Jun 2015 22:57:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jun 2015 22:57:24 +0000 (UTC) Cc: John Mudd To: musl Original-X-From: musl-return-7899-gllmg-musl=m.gmane.org@lists.openwall.com Sat Jun 06 00:57:18 2015 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 1Z10Y6-0008L7-R0 for gllmg-musl@m.gmane.org; Sat, 06 Jun 2015 00:57:14 +0200 Original-Received: (qmail 26218 invoked by uid 550); 5 Jun 2015 22:57:13 -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 26189 invoked from network); 5 Jun 2015 22:57:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=2J6n3qQsiYaksGjjk5YJLhI2ocHHzyNIhaUctWLKfFE=; b=jO1WfQN5YQVyE/3sA6bYHABaJ2ZnYFey4aGPBLgqcjybDSZzDbuG1kGILAPkSIYXU5 QYTcp8/j1dDB/pFfqFGFfF3Z3l66mNuib5zLnEteTRQHUQGtIwfuurncSWwWQMtCatio C1NMBpEpSiqq+1ebyTEUKdu8S8Pn2d/0KP64+cAkRO9bSKC5oaXbH72AwKqmQ9vERzj8 7BYs4FVbobMkNcdfD6mnVpZn1Y6M9aq4QH/lKMI3y3qEvHZN2zdUH8VSd4R+iEIrkwPO mCTdX5dn9Uva2YNe3KaSJi9ortiQlhY+7O0vlX+/mt3HgdyoXIBRAvIDfNO5G32PLyfM ayOQ== X-Received: by 10.50.80.19 with SMTP id n19mr765298igx.30.1433545021236; Fri, 05 Jun 2015 15:57:01 -0700 (PDT) In-Reply-To: <20150605215616.GF10927@port70.net> Xref: news.gmane.org gmane.linux.lib.musl.general:7886 Archived-At: --089e01494b68c2acec0517cd359f Content-Type: text/plain; charset=UTF-8 Thanks. I recognize the "create empty lib" advice. Will try asap but heading to airport now. On Jun 5, 2015 5:56 PM, "Szabolcs Nagy" wrote: > * John Mudd [2015-06-05 17:34:52 -0400]: > > Error loading shared library ld-linux.so.2: No such file or directory > > (needed by /usr/lib/i386-linux-gnu/libstdc++.so.6) > > > > create an empty ld-linux.so.2 > > gcc -o ld-linux.so.2 -xc -shared - > (nowadays toolchains sometimes add the dynamic linker to > elf DT_NEEDED, i dont know why, it's not really needed) > > > I looked at the notes about C++ in the musl faqs. For that I decided it > > might help if I built gcc in musl. Then everything will be musl-ized? I > > built gmp, mpfr and mpc. Started building gcc but got the following > error. > > > > /home/mudd/musl/gcc-4.9.2.obj/gcc/../../gcc-4.9.2/gcc/plugin.c:579: > > undefined reference to `dlopen' > > > > you have to patch gcc and use certain options to make it work > > musl-cross build scripts take care of if > (there are prebuilt toolchains too) > > > Before I go further, any opinions if I'm even headed in the right > direction? > > > > you may get away without building > --089e01494b68c2acec0517cd359f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Thanks. I recognize the "create empty lib" advice.= Will try asap but heading to airport now.

On Jun 5, 2015 5:56 PM, "Szabolcs Nagy"= ; <nsz@port70.net> wrote:
* John Mudd <johnbmudd@gmail.com> [2015-06-05 17:= 34:52 -0400]:
> Error loading shared library ld-linux.so.2: No such file or directory<= br> > (needed by /usr/lib/i386-linux-gnu/libstdc++.so.6)
>

create an empty ld-linux.so.2

=C2=A0gcc -o ld-linux.so.2 -xc -shared - </dev/null

(nowadays toolchains sometimes add the dynamic linker to
elf DT_NEEDED, i dont know why, it's not really needed)

> I looked at the notes about C++ in the musl faqs. For that I decided i= t
> might help if I built gcc in musl. Then everything will be musl-ized? = I
> built gmp, mpfr and mpc. Started building gcc but got the following er= ror.
>
> /home/mudd/musl/gcc-4.9.2.obj/gcc/../../gcc-4.9.2/gcc/plugin.c:579: > undefined reference to `dlopen'
>

you have to patch gcc and use certain options to make it work

musl-cross build scripts take care of if
(there are prebuilt toolchains too)

> Before I go further, any opinions if I'm even headed in the right = direction?
>

you may get away without building
--089e01494b68c2acec0517cd359f--