From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3910 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:29:43 -0500 Message-ID: <1376537383.2737.30@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 1376537395 14176 80.91.229.3 (15 Aug 2013 03:29:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Aug 2013 03:29:55 +0000 (UTC) Cc: Jens To: musl@lists.openwall.com Original-X-From: musl-return-3914-gllmg-musl=m.gmane.org@lists.openwall.com Thu Aug 15 05:29:59 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 1V9oG5-0000XU-9h for gllmg-musl@plane.gmane.org; Thu, 15 Aug 2013 05:29:57 +0200 Original-Received: (qmail 15940 invoked by uid 550); 15 Aug 2013 03:29:56 -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 15930 invoked from network); 15 Aug 2013 03:29:56 -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=cTT9fDFxGAXGeaffxb/CzzItqviH+vGF8Dr0l0lIPNA=; b=FZ8L2cnM661aFwkXrsqifdgUOPYeWlGMXbLJkwSlgU8MQHwtQX12KLRFT8TpN/Udj3 I/Zi6uCMpBgDLUdtQKT21njduui25M59YWQj9W5N3tq4PKvFbnlQjLGCaSkQtwIASTH+ gM7oV/DjWQam5k+d5yoeb7/LKpqM4260MsUmplTP1At3ftLtsNSLiKk25owc0QbRo3Jn Czk2OkGuRRGdq1CxmN3tYHYHSyhZYT7LS3Ea0l8hK+/QvtlSlgiSAFRoKw3xgAQiPeIw RVqj3LpaKaJ6tHloyKzDy50AvxkcO5AvR8MmjW1wTQgVSMc49qzSk5I107C5p64wDfa0 vBmQ== X-Gm-Message-State: ALoCoQn+kH7gDeMplqPMlV0Dmm1Y8jgWRbgyAiZFgDIS5gTZh6AhdsSNPfzYV6H7GBLJV6xYSKBc X-Received: by 10.182.106.4 with SMTP id gq4mr26877638obb.4.1376537384045; Wed, 14 Aug 2013 20:29:44 -0700 (PDT) In-Reply-To: (from jensl@laas.mine.nu on Tue Aug 13 05:39:52 2013) X-Mailer: Balsa 2.4.11 Content-Disposition: inline Xref: news.gmane.org gmane.linux.lib.musl.general:3910 Archived-At: On 08/13/2013 05:39:52 AM, Jens wrote: >=20 > Hello! >=20 > Dynamic linking with musl has stopped working for me since musl 0.9.1. > I havent tested all versions but 0.9.6 and 0.9.12 does not work. >=20 > Im still using that strange uclibc environment where gcc is itself a > wrapper that calls rawgcc. That would be aboriginal linux, and it worked for me last I checked... (x86_64:1) /home # wget =20 http://www.musl-libc.org/releases/musl-0.9.12.tar.gz Connecting to www.musl-libc.org (216.12.86.13:80) (x86_64:1) /home # tar xzf musl-0.9.12.tar.gz (x86_64:1) /home # cd musl-0.9.12 (x86_64:1) /home/musl-0.9.12 # ./configure --prefix=3D/home/musl checking for C compiler... gcc checking whether compiler is gcc... yes ... (x86_64:1) /home/musl-0.9.12 # make ... (x86_64:1) /home/musl-0.9.12 # make install ... (x86_64:1) /home/musl-0.9.12 # cd /home/musl/bin (x86_64:1) /home/musl/bin # ./musl-gcc /usr/src/thread-hello2.c =20 -lpthread (x86_64:1) /home/musl/bin # ./a.out Hello world! (x86_64:1) /home/musl/bin # ldd a.out libpthread.so.0 =3D> /lib/libpthread.so.0 (0x00000000) libc.so.0 =3D> /lib/libc.so.0 (0x00000000) ld-uClibc.so.0 =3D> /lib/ld-uClibc.so.0 (0x00000000) not a dynamic executable Hmmm, looks like my wrapper is overriding the musl one. Actually that =20 makes sense, mine is designed to be a Very Large Hammer. Let's see... # REALGCC=3D/usr/tools/bin/rawcc ./musl-gcc /usr/src/thread-hello2.c =20 -lpthread Nope, then it can't find cc1. # PATH=3D$PATH:/usr/tools/bin REALGCC=3Drawcc ./musl-gcc =20 /usr/src/thread-hello2.c -lpthread ld: crtbegin.o: No such file: No such file or directory Sigh. There's a _reason_ I'm rewriting my wrapper to be musl-aware... Jens: lemme get back to you this weekend, ok? Alas, gcc wrappers are _hard_... Rob=