From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noah Lavine Newsgroups: gmane.lisp.guile.devel,gmane.comp.gnu.libtool.general Subject: Re: How does one specify linking to 64 bit libraries when there is a choice? Date: Sun, 19 Dec 2010 23:40:01 -0500 Message-ID: References: <4D0BC3CD.2030103@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1292820017 25264 80.91.229.12 (20 Dec 2010 04:40:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Dec 2010 04:40:17 +0000 (UTC) Cc: Libtool List , guile-devel@gnu.org, "Nelson H. F. Beebe" To: Bruce Korb Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Dec 20 05:40:13 2010 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PUXXf-0007xB-GT for guile-devel@m.gmane.org; Mon, 20 Dec 2010 05:40:11 +0100 Original-Received: from localhost ([127.0.0.1]:46133 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUXXe-0003mn-Ov for guile-devel@m.gmane.org; Sun, 19 Dec 2010 23:40:10 -0500 Original-Received: from [140.186.70.92] (port=47681 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUXXY-0003mf-Hz for guile-devel@gnu.org; Sun, 19 Dec 2010 23:40:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUXXX-00079J-9H for guile-devel@gnu.org; Sun, 19 Dec 2010 23:40:04 -0500 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:64298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PUXXX-00079C-48; Sun, 19 Dec 2010 23:40:03 -0500 Original-Received: by wyj26 with SMTP id 26so2641765wyj.0 for ; Sun, 19 Dec 2010 20:40:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=PhDGAyv5FwCDq+8ef+HzB9kfJy8I5ZHkt6FiumVGi64=; b=r9wQvXBrtR9pLCwQfqHK2AkTs3Nl03UtSlq68Lhtu2J3NVH3/axL01rOpdwyJENdv8 ozYAtvLfJp7e6xzqfOMwWE8j2JOT5Y4DVVGAqeJKABHpOQA0/4EfdJtkNsHuEe2SUb/z pov6RHe5pT/EmenK9V+jen5PLm5q/eqgVAfQU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=PW4SicC6GsY4PrwcZadx6vkkMWjdj4e9ZVKxwl6tDHtJmmzgpfHYRHAv1w4dt0d0Uz 2Ka4VVONNkEcft/dytj6sxdxb41nWJdzkm57q0m7687yOqGr3p8qIkJVlH0FM819ti6R cY0FJLJPEvZYuQAAQc4hDJ5shc5D6dEw8RaLg= Original-Received: by 10.216.46.135 with SMTP id r7mr7066882web.21.1292820002022; Sun, 19 Dec 2010 20:40:02 -0800 (PST) Original-Received: by 10.216.156.65 with HTTP; Sun, 19 Dec 2010 20:40:01 -0800 (PST) In-Reply-To: <4D0BC3CD.2030103@gmail.com> X-Google-Sender-Auth: P3zU5zUxpMY6cnnS9f4AcnLq9z4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:11261 gmane.comp.gnu.libtool.general:11329 Archived-At: Hello, I am not at all an expert on guile-config, but I will help if I can. First of all, as to how guile-config works. At least in the latest git version, it seems to be a thin wrapper for pkg-config. I found the file that pkg-config will be using to give you this information. It is meta/guile-.pc in my Guile source tree. Furthermore, I think it's safe to assume that it is generated from meta/guile-.pc.in. But that file is just a pretty innocuous-looking template where it looks like you paste some variables that would be generated by the configure script. Therefore, I have this question for you - are you able to configure Guile to use 64-bit libs using the configure script? Noah Lavine On Fri, Dec 17, 2010 at 3:10 PM, Bruce Korb wrote: > Hi Nelson, > > I am nearly certain we (you) have reached a point where > libtool folks are going to say, "it is Guile", and Guile > folks are going to say, "it is libtool". =A0I am going to > say, "I'd like some help from either or both". > > Because the guile-config invokes the guile binary in order > to print out the unvarying strings from the configuration, > it requires reverse engineering the entire Guile package > to fully understand how it comes up with the strings it > does. =A0I can do it, but I am not any more eager than you. > > I think first up, someone from Guile needs to analyze > the machinery behind "guile-config". =A0I am willing to > help with test runs on the utah.edu machines in order > to diagnose the issue. > > Cheers - Bruce > > On 12/17/10 11:57, Nelson H. F. Beebe wrote: >> Well, I have now done three more builds of guile-1.8.8. =A0The first and >> second supplied libdir=3D/usr/local/lib64 on the command line of all >> "make" runs. =A0That did not help: /usr/local/bin/guile-config still >> reported -L/usr/local/lib. >> >> I found that LTLIBICONV still has -L/usr/local/lib in the first >> attempt, so I replaced it by LTLIBICONV=3D-liconv for the second >> attempt. >> >> For the third, I did "make clean", then used sed -i + xargs to >> explicitly set libdir in every Makefile, in case it is not being >> passed correctly to child makes. >> >> That too does not help: >> >> % /usr/local/bin/guile-config link | fmt -w 10 >> =A0-pthread >> =A0-L/usr/local/lib >> =A0-lguile >> =A0-lltdl >> =A0-L/usr/local/lib64 >> =A0-Wl,-rpath,/usr/local/lib64 >> =A0-lgmp >> =A0-lcrypt >> =A0-lm >> =A0-lltdl >> >> For the fourth try, I used sed + xargs again to force all references >> to the iconv library to just use a bare -liconv. =A0Sadly, the incorrect >> -L/usr/local/lib option still appears. >> >> % guile >> guile> (define (get-build-info name) >> =A0 (let ((val (assq name %guile-build-info))) >> =A0 =A0 (if (not (pair? val)) >> =A0 =A0 =A0 =A0 (begin >> =A0 =A0 =A0 =A0 =A0 (display-line-error >> =A0 =A0 =A0 =A0 =A0 =A0program-name " " subcommand-name ": no such build= -info: " name) >> =A0 =A0 =A0 =A0 =A0 (quit 2))) >> =A0 =A0 (cdr val))) >> guile> (get-build-info 'LIBS) >> "-L/usr/local/lib64 -Wl,-rpath,/usr/local/lib64 =A0-lgmp -lcrypt -lm -ll= tdl " >> guile> (get-build-info 'libdir) >> "/usr/local/lib" >> >> I'm unsure of where to proceed at this point. =A0The logs of the four >> tries are in >> >> =A0 =A0 /usr/local/gnu/src/guile/logs/guile-1.8.8/Typescript.abajo.math.= utah.edu.2010.12.17.12.12.44.xz >> >> P.S. I leave the country on a 3-week trip next Saturday (25-Dec-2010), >> and I won't have computer access during that time. > > That will be after I leave (22-Dec), but I get back 12/27 > (400 miles is still within the US). =A0I would hope this is > resolved before next Wednesday.......Have a nice trip & holiday! > Regards, Bruce > >