From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3915 Path: news.gmane.org!not-for-mail From: Jens Newsgroups: gmane.linux.lib.musl.general Subject: Re: problems with dynamic linking since 0.9.1 Date: Thu, 15 Aug 2013 11:05:54 +0200 (CEST) Message-ID: References: <20130813110709.GH5368@port70.net> <20130813145259.GI5368@port70.net> <1376538198.2737.31@driftwood> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: ger.gmane.org 1376557489 6568 80.91.229.3 (15 Aug 2013 09:04:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Aug 2013 09:04:49 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3919-gllmg-musl=m.gmane.org@lists.openwall.com Thu Aug 15 11:04:52 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 1V9tUC-0004rM-HX for gllmg-musl@plane.gmane.org; Thu, 15 Aug 2013 11:04:52 +0200 Original-Received: (qmail 3256 invoked by uid 550); 15 Aug 2013 09:04:51 -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 3248 invoked from network); 15 Aug 2013 09:04:51 -0000 Received-SPF: none (smtp-gw11.han.skanova.net: domain laas.mine.nu does not designate permitted sender hosts) identity=mailfrom; receiver=smtp-gw11.han.skanova.net; client_ip=81.229.140.47; envelope-from=jensl@laas.mine.nu; helo=81-229-140-47-o1124.telia.com; In-Reply-To: <1376538198.2737.31@driftwood> User-Agent: Alpine 2.10 (LNX 1266 2009-07-14) Xref: news.gmane.org gmane.linux.lib.musl.general:3915 Archived-At: >> (In response to the wrapper problem, I let REALGCC point to the real gcc >> and not the wrapper). > > It's not finding crtbegin.o when I do that, and the fact that (according to > strace), gcc thinks: > > access("/usr/x86_64-unknown-linux/bin/../lib/gcc/x86_64-unknown-linux/4.2.1/../../../../lib64/crtbegin.o", > R_OK) = -1 ENOENT (No such file or directory) > > Is a good place to look for it is one of the REASONS I wrote a wrapper that > goes "--nostdinc --nostdlib" and then starts again. > > ("I say we take off and nuke the entire site from orbit. Only way to be > sure.") > > However, it sounds like you're using a stale version of the aboriginal build > environment because I upgraded to a binutils that can build musl (and yes > actually tested it at one point) several months ago... The build environment is older than aboriginal. It is this one http://uclibc.org/downloads/binaries/0.9.30.1/mini-native-x86_64.tar.bz2 So I guess its a bit long in the tooth. I dont want you guys to spend your valuable time chasing bugs if its just me that sees them. Regarding the bash version, I use the above environment, but slightly upgraded (bash, tar). I set REALGCC to rawgcc, and I also needed to change the musl gcc.spec file, to find all object files, patch I use below (linewrap damaged): 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 *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) *startfile: -%{!shared: /opt/musl/lib/%{pie:S}crt1.o} /opt/musl/lib/crti.o %{shared|pie:crtbeginS.o%s;:crtbegin.o%s} +%{!shared: /opt/musl/lib/%{pie:S}crt1.o} /opt/musl/lib/crti.o %{shared|pie:crtbeginS.o%s;:/usr/gcc/lib/crtbegin.o%s} *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} /opt/musl/lib/crtn.o *link: -dynamic-linker /lib/ld-musl-x86_64.so.1 -nostdlib %{shared:-shared} %{static:-static} %{rdynamic:-export-dynamic} Thanks, Jens > > Rob