From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3911 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: Wed, 14 Aug 2013 22:43:18 -0500 Message-ID: <1376538198.2737.31@driftwood> References: <20130813110709.GH5368@port70.net> <20130813145259.GI5368@port70.net> 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 1376538213 20674 80.91.229.3 (15 Aug 2013 03:43:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Aug 2013 03:43:33 +0000 (UTC) Cc: Jens To: musl@lists.openwall.com Original-X-From: musl-return-3915-gllmg-musl=m.gmane.org@lists.openwall.com Thu Aug 15 05:43:36 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 1V9oTE-0004cK-Ae for gllmg-musl@plane.gmane.org; Thu, 15 Aug 2013 05:43:32 +0200 Original-Received: (qmail 21912 invoked by uid 550); 15 Aug 2013 03:43:31 -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 21904 invoked from network); 15 Aug 2013 03:43:31 -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:references:in-reply-to :message-id:mime-version:content-type:content-disposition :content-transfer-encoding; bh=jsrFhMkvRChAks0lXwOsA43NdXOnwBR91M/z6Z6BCIY=; b=EjBhLBLVlhYLLcsSeYEqqKTq4zXiOOLoH99xbtjbrSyBjS3MVVNVfVtc9o9CbG1R8F JePWermnqld9myoVKvanDLzqOViR3RZWQgXr3hFFq/5V56xiwvxamdwblaF8N20jnQrI 8BL+mGR3hNCzza26ZoXLiyN22exwclVYfcxzO0PGT54nljGWA5UA23IxMWbxXrW6Izd6 ysnTX5AcpKjHwN+HlyK59iFjY7qu0uefWp4/mtPThPVp2prorQ32OMTMJqbJigc/MG8x kUCdHc6XP9mNJmGHkILzY0hT1i4uTDMqDikEMFRB5l9Q5eZUOBBfC/ko6Xxk7BoRxYgJ cCZg== X-Gm-Message-State: ALoCoQmYncsN32kcy70GbjLvD954jRxXM4B0ItxEwG1MArsmffltAHZuqRxaQKqwh068gPOChP6U X-Received: by 10.60.44.240 with SMTP id h16mr12414872oem.2.1376538199597; Wed, 14 Aug 2013 20:43:19 -0700 (PDT) In-Reply-To: (from jensl@laas.mine.nu on Tue Aug 13 12:14:42 2013) X-Mailer: Balsa 2.4.11 Content-Disposition: inline Xref: news.gmane.org gmane.linux.lib.musl.general:3911 Archived-At: On 08/13/2013 12:14:42 PM, Jens wrote: >=20 > On Tue, 13 Aug 2013, Szabolcs Nagy wrote: >=20 >> * Jens [2013-08-13 13:18:27 +0200]: >>> On Tue, 13 Aug 2013, Szabolcs Nagy wrote: >>>>=20 >>>> you didn't tell us the problem >>>>=20 >>>> at least show a crashing dynamic linked executable >>>> with straced loader and musl ldd output >>>=20 >>> Sorry. Its actually linking the binary that doesnt work. >>>=20 >>=20 >> ah ok i did not see that >>=20 >> i'd check libc.so if there is some obvious error >> ld should be able to handle it >> (eg file libc.so, readelf -a libc.so, nm -D libc.so, or just =20 >> ./libc.so) >>=20 >> since you use landley's weird toolchain it may be a >> problem with the old binutils >=20 > Thanks! You nailed it in one. If I use newer binutils it works. >=20 > (In response to the wrapper problem, I let REALGCC point to the real =20 > gcc and not the wrapper). It's not finding crtbegin.o when I do that, and the fact that =20 (according to strace), gcc thinks: 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) Is a good place to look for it is one of the REASONS I wrote a wrapper =20 that goes "--nostdinc --nostdlib" and then starts again. ("I say we take off and nuke the entire site from orbit. Only way to be =20 sure.") However, it sounds like you're using a stale version of the aboriginal =20 build environment because I upgraded to a binutils that can build musl =20 (and yes actually tested it at one point) several months ago... Rob=