From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Rottmann Newsgroups: gmane.lisp.guile.devel Subject: Re: g-wrap - fresh git clone - can't find libguile.h: Date: Wed, 04 May 2011 01:39:24 +0200 Message-ID: <87y62ncq1f.fsf@gmx.at> References: <20110502155729.7c527910@rascar> <20110503084126.3b9e177b@rascar> <874o5be7gh.fsf@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1304465984 29564 80.91.229.12 (3 May 2011 23:39:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 3 May 2011 23:39:44 +0000 (UTC) Cc: Andy Wingo , guile-devel@gnu.org To: David Pirotte Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed May 04 01:39:39 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QHPBr-0007w9-67 for guile-devel@m.gmane.org; Wed, 04 May 2011 01:39:39 +0200 Original-Received: from localhost ([::1]:53245 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHPBq-0006Nm-K7 for guile-devel@m.gmane.org; Tue, 03 May 2011 19:39:38 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:40318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHPBn-0006Nh-SC for guile-devel@gnu.org; Tue, 03 May 2011 19:39:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHPBm-0005QA-FK for guile-devel@gnu.org; Tue, 03 May 2011 19:39:35 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:34032) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QHPBl-0005Ow-VH for guile-devel@gnu.org; Tue, 03 May 2011 19:39:34 -0400 Original-Received: (qmail invoked by alias); 03 May 2011 23:39:31 -0000 Original-Received: from 85-127-61-83.dynamic.xdsl-line.inode.at (EHLO nathot.lan) [85.127.61.83] by mail.gmx.net (mp048) with SMTP; 04 May 2011 01:39:31 +0200 X-Authenticated: #3102804 X-Provags-ID: V01U2FsdGVkX19vQrhf7vlv7pcKU70SnMU0VLpd5jDWVgAOEKbdxr XO6ac7OgvmimrC Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by nathot.lan (Postfix) with ESMTP id 3E81E3A68F; Wed, 4 May 2011 01:39:30 +0200 (CEST) Original-Received: from nathot.lan ([127.0.0.1]) by localhost (nathot.lan [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z8ZOGognG0e3; Wed, 4 May 2011 01:39:25 +0200 (CEST) Original-Received: from delenn.lan (unknown [192.168.1.136]) by nathot.lan (Postfix) with ESMTP id E98433A685; Wed, 4 May 2011 01:39:24 +0200 (CEST) Original-Received: by delenn.lan (Postfix, from userid 1000) id A8C9D2C0085; Wed, 4 May 2011 01:39:24 +0200 (CEST) In-Reply-To: <874o5be7gh.fsf@gmx.at> (Andreas Rottmann's message of "Wed, 04 May 2011 00:37:50 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 213.165.64.22 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:12421 Archived-At: Andreas Rottmann writes: > David Pirotte writes: > >> Le Tue, 03 May 2011 12:43:07 +0200, >> Andy Wingo a =C3=A9crit : >> >>> On Mon 02 May 2011 20:57, David Pirotte writes: >>>=20 >>> > After having just installed a guile fresh git clone, g-wrap [fresh gi= t clone >>> > too] won't make. >>>=20 >>> What platform are you on? GNU/Linux? From which distributor? >>>=20 >>> Andy >> >> Hello Andy, >> >> x86_64 GNU/Linux >> Debian testing/unstable >>=20 > Im on the same platform (current Debian sid, amd64) as well. I just > added a workaround for a (probably unrelated) issue in g-wrap. Could you > update your checkout, and try again? Also make sure ACLOCAL_FLAGS is > set in a way so that the matching guile.m4 gets picked up; if you have > installed Guile into /usr/local, that would be: > > export ACLOCAL_FLAGS=3D"-I /usr/local/share/aclocal" > ./autogen.sh && make > We have finally figured it out after some debugging via IRC: David has had set PKG_CONFIG=3Dtrue when configuring Guile, which lead to an installation with a (silently) broken guile-config script; meta/guile-config.in contains: (define %pkg-config-program "@PKG_CONFIG@") The mayhem that resulted is left to the (hopefully vivid) imagination of the reader ;-). IMO, the following advice given in Guile's README is quite dangerous, as can be seen from David's issue: - pkg-config Guile's ./configure script uses pkg-config to discover the correct compile and link options for libgc and libffi. If you don't have pkg-config installed, or you have a version of libgc that doesn't provide a .pc file, you can work around this by setting some variables as part of the configure command-line: - PKG_CONFIG=3Dtrue - BDW_GC_CFLAGS=3D - BDW_GC_LIBS=3D Note that because you're bypassing all pkg-config checks, you will also have to specify libffi flags as well: - LIBFFI_CFLAGS=3D - LIBFFI_LIBS=3D Note the PKG_CONFIG=3Dtrue setting. This should at least come with a big fat warning that the resulting installation of Guile will be broken wrt. to building any software depending on Guile (unless the software in question bypasses guile-config). Alternatively, we could scrap that section altogether and just say that pkg-config is required (which is in fact true, with the current state of afairs). Regards, Rotty --=20 Andreas Rottmann --