From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3920 Path: news.gmane.org!not-for-mail From: Rob Landley Newsgroups: gmane.linux.lib.musl.general Subject: Re: problems with dynamic linking since 0.9.1 Date: Fri, 16 Aug 2013 03:28:31 -0500 Message-ID: <1376641711.2737.42@driftwood> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; DelSp=Yes; Format=Flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1376641727 10769 80.91.229.3 (16 Aug 2013 08:28:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Aug 2013 08:28:47 +0000 (UTC) Cc: musl@lists.openwall.com To: musl@lists.openwall.com Original-X-From: musl-return-3924-gllmg-musl=m.gmane.org@lists.openwall.com Fri Aug 16 10:28:51 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1VAFOq-0001iV-S3 for gllmg-musl@plane.gmane.org; Fri, 16 Aug 2013 10:28:48 +0200 Original-Received: (qmail 30020 invoked by uid 550); 16 Aug 2013 08:28:45 -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 30012 invoked from network); 16 Aug 2013 08:28:44 -0000 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:date:from:subject:to:cc:in-reply-to:message-id :mime-version:content-type:content-disposition :content-transfer-encoding; bh=hWElDKwSaOhVZWMX7IhqRt7FQMFt/wb6HjoVmGMrQ74=; b=gK/96edms6e/3AmHExcFkQuXOp8F+/JNdhwttPJ2TByTaHkNKwvSHHZaYndQTUKO0n GtenQLZsGJVgqkZdilmIBVC0ED3izvBUXL5Jl1rkMM2Ssv8VHrilLXMhqyqNZ1+PkRyS gkqvD1aVsZzX97UPqj+oofUrY8t2wLmZCb+PUpqhZtU4mDVIvYmjyMGuWcHEgh4sDH3A Of/B6C4gjbPqdR2RcdrI0t3a+1wBirclxlt7ylw5FcRVQzKZA3e9ILQjgeF/z+NH4ITo EdS/LDX36H+pDi5/MX374tKgk/t3wOhlg9q0cWmgeLU15CpahQx/0Q2zHs68MhWgYjXO qkzg== X-Gm-Message-State: ALoCoQmmNUMgso8AfPNYbWBLh2dMo6r4D08zB3uR8zzxLuu7blX9BkrQB+nYf1EqOXueqQalX6Br X-Received: by 10.60.60.105 with SMTP id g9mr319541oer.8.1376641712584; Fri, 16 Aug 2013 01:28:32 -0700 (PDT) In-Reply-To: (from jensl@laas.mine.nu on Thu Aug 15 04:05:54 2013) X-Mailer: Balsa 2.4.11 Content-Disposition: inline Xref: news.gmane.org gmane.linux.lib.musl.general:3920 Archived-At: On 08/15/2013 04:05:54 AM, Jens wrote: >=20 >=20 >>> (In response to the wrapper problem, I let REALGCC point to the =20 >>> real gcc and not the wrapper). >>=20 >> It's not finding crtbegin.o when I do that, and the fact that =20 >> (according to strace), gcc thinks: >>=20 >> access("/usr/x86_64-unknown-linux/bin/../lib/gcc/x86_64-unknown-linux/4.= 2.1/../../../../lib64/crtbegin.o", =20 >> R_OK) =3D -1 ENOENT (No such file or directory) >>=20 >> Is a good place to look for it is one of the REASONS I wrote a =20 >> wrapper that goes "--nostdinc --nostdlib" and then starts again. >>=20 >> ("I say we take off and nuke the entire site from orbit. Only way to =20 >> be sure.") >>=20 >> However, it sounds like you're using a stale version of the =20 >> aboriginal build environment because I upgraded to a binutils that =20 >> can build musl (and yes actually tested it at one point) several =20 >> months ago... >=20 > The build environment is older than aboriginal. > It is this one =20 > http://uclibc.org/downloads/binaries/0.9.30.1/mini-native-x86_64.tar.bz2 >=20 > So I guess its a bit long in the tooth. Wow. When did I rename mini-native to root-filesystem? changeset: 711:20ba34b54140 user: Rob Landley date: Thu Apr 09 23:53:05 2009 -0500 summary: Rename mini-native.sh to root-filesystem.sh, since that's =20 what it builds. So at least 4 years old, yeah. If you just want a quick and dirty "get something running", I have =20 linux from scratch builds (same uClibc based toolchain) at: http://landley.net/aboriginal/downloads/old/binaries/1.2.3 That's linux from scratch built on top of the aboriginal linux build =20 environment. Those are only around 6 months old, from after the =20 binutils switch. > I set REALGCC to rawgcc, and I also needed to change the musl =20 > gcc.spec file, > to find all object files, patch I use below (linewrap damaged): >=20 > bash-4.1# more all/musl-0.9.6-1/musl-gcc.specs.pat > --- opt/musl/lib/musl-gcc.specs.orig Fri Sep 21 07:04:50 2012 > +++ opt/musl/lib/musl-gcc.specs Fri Sep 21 07:12:34 2012 > @@ -10,13 +10,13 @@ > -L/opt/musl/lib -L .%s >=20 > *libgcc: > -libgcc.a%s %:if-exists(libgcc_eh.a%s) > +/usr/gcc/lib/libgcc.a%s %:if-exists(/usr/gcc/lib/libgcc_eh.a%s) >=20 > *startfile: > -%{!shared: /opt/musl/lib/%{pie:S}crt1.o} /opt/musl/lib/crti.o =20 > %{shared|pie:crtbeginS.o%s;:crtbegin.o%s} > +%{!shared: /opt/musl/lib/%{pie:S}crt1.o} /opt/musl/lib/crti.o =20 > %{shared|pie:crtbeginS.o%s;:/usr/gcc/lib/crtbegin.o%s} >=20 > *endfile: > -%{shared|pie:crtendS.o%s;:crtend.o%s} /opt/musl/lib/crtn.o > +%{shared|pie:crtendS.o%s;:/usr/gcc/lib/crtend.o%s} =20 > /opt/musl/lib/crtn.o >=20 > *link: > -dynamic-linker /lib/ld-musl-x86_64.so.1 -nostdlib %{shared:-shared} =20 > %{static:-static} %{rdynamic:-export-dynamic} >=20 > Thanks, > Jens Good to know. Thanks. Rob=