From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "pelzflorian (Florian Pelz)" Newsgroups: gmane.lisp.guile.devel,gmane.lisp.guile.user Subject: Re: Website translations with Haunt Date: Tue, 12 Dec 2017 19:47:00 +0100 Message-ID: <20171212184700.ivn2gpngeqrob656@floriannotebook> References: <20171209180619.GA10254@floriannotebook.localdomain> <337C4CEB-E242-4D3B-B110-E19B485DA0AB@gmail.com> <20171210192143.GA1796@floriannotebook.localdomain> <20171212075146.dvu57vwixlzay3su@floriannotebook> <20171212080302.gqhody6clsn3gcpy@abyayala> <20171212093040.eo7ioqbvi7ktns2a@floriannotebook> <09107BA0-5D75-4826-BA5D-67F0F61AAE95@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="brodghrifgnntlal" X-Trace: blaine.gmane.org 1513104445 713 195.159.176.226 (12 Dec 2017 18:47:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Dec 2017 18:47:25 +0000 (UTC) User-Agent: NeoMutt/20171027 Cc: Guile User Mailing List , guile-devel To: Matt Wette Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Dec 12 19:47:15 2017 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOpaE-00084Q-69 for guile-devel@m.gmane.org; Tue, 12 Dec 2017 19:47:14 +0100 Original-Received: from localhost ([::1]:59971 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOpaL-0002es-AW for guile-devel@m.gmane.org; Tue, 12 Dec 2017 13:47:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOpa6-0002do-JX for guile-devel@gnu.org; Tue, 12 Dec 2017 13:47:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOpa1-0003zi-He for guile-devel@gnu.org; Tue, 12 Dec 2017 13:47:06 -0500 Original-Received: from pelzflorian.de ([5.45.111.108]:53926 helo=mail.pelzflorian.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eOpa1-0003yW-3i; Tue, 12 Dec 2017 13:47:01 -0500 Original-Received: from floriannotebook (ip5b431f77.dynamic.kabel-deutschland.de [91.67.31.119]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 60DEC36001B; Tue, 12 Dec 2017 19:46:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1513104419; bh=k1DSK8h93o0Am3u6/zjNvxnwOPtuYrXY+rDXlVshvOA=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=KO4WOFt59PHt6pyOYgeaMiNbYFCfNQVi7or3KHFwSLaiObwZonJzFnqJH+8CKu9xH O8kaSA9kpQsSaN3XgAfeHFMaQGz1ygrsoPKFOX50xmAoRyBNs8sopYtAnueftmztvL VlIpD5YCU2F3PJdH0Fl429gyPYVjCx8RwPzBn4tw= Content-Disposition: inline In-Reply-To: <09107BA0-5D75-4826-BA5D-67F0F61AAE95@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 5.45.111.108 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.lisp.guile.devel:19413 gmane.lisp.guile.user:14342 Archived-At: --brodghrifgnntlal Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 12, 2017 at 05:45:50AM -0800, Matt Wette wrote: > The FFI Helper uses `gcc --print-search-dirs' to locate gcc directories. = It also adds /usr/include. > I don't understand why it is not finding them. It also uses `gcc -dM -E'= to determine #defines. > Even with that, on my macOS system, I need to make fixes. Can you deter= mine if some gcc=20 > command, via `gcc --print-search-dirs' will find the correct includes? M= aybe I should add a=20 > `--with-gcc' command line argument. >=20 > Thanks, > Matt >=20 There are no include directories found at all by =E2=80=9Egcc --print-search-dirs=E2=80=9C on my GuixSD or Arch installation. $ gcc --print-search-dirs install: /gnu/store/h3z6nshhdlc8zgh4mi13x1br03xipi9r-gcc-7.2.0-lib/lib/gcc/= x86_64-unknown-linux-gnu/7.2.0/ programs: =3D/gnu/store/bhv43hzkfwcrvm2grq9fiw5bh1h5j3vc-gcc-7.2.0/libexec/= gcc/x86_64-unknown-linux-gnu/7.2.0/:/gnu/store/bhv43hzkfwcrvm2grq9fiw5bh1h5= j3vc-gcc-7.2.0/libexec/gcc/x86_64-unknown-linux-gnu/7.2.0/:/gnu/store/bhv43= hzkfwcrvm2grq9fiw5bh1h5j3vc-gcc-7.2.0/libexec/gcc/x86_64-unknown-linux-gnu/= :/gnu/store/h3z6nshhdlc8zgh4mi13x1br03xipi9r-gcc-7.2.0-lib/lib/gcc/x86_64-u= nknown-linux-gnu/7.2.0/:/gnu/store/h3z6nshhdlc8zgh4mi13x1br03xipi9r-gcc-7.2= =2E0-lib/lib/gcc/x86_64-unknown-linux-gnu/:/gnu/store/h3z6nshhdlc8zgh4mi13x= 1br03xipi9r-gcc-7.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/7.2.0/../../../.= =2E/../../../x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu/7.2.0/:/= gnu/store/h3z6nshhdlc8zgh4mi13x1br03xipi9r-gcc-7.2.0-lib/lib/gcc/x86_64-unk= nown-linux-gnu/7.2.0/../../../../../../../x86_64-unknown-linux-gnu/bin/ libraries: =3D/gnu/store/zrmhjw6kha4ghra2dkr06kldarxybgkw-profile/lib/x86_6= 4-unknown-linux-gnu/7.2.0/:/gnu/store/zrmhjw6kha4ghra2dkr06kldarxybgkw-prof= ile/lib/:/gnu/store/h3z6nshhdlc8zgh4mi13x1br03xipi9r-gcc-7.2.0-lib/lib/gcc/= x86_64-unknown-linux-gnu/7.2.0/:/gnu/store/h3z6nshhdlc8zgh4mi13x1br03xipi9r= -gcc-7.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/7.2.0/../../../../../../../= x86_64-unknown-linux-gnu/lib/x86_64-unknown-linux-gnu/7.2.0/:/gnu/store/h3z= 6nshhdlc8zgh4mi13x1br03xipi9r-gcc-7.2.0-lib/lib/gcc/x86_64-unknown-linux-gn= u/7.2.0/../../../../../../../x86_64-unknown-linux-gnu/lib/:/gnu/store/h3z6n= shhdlc8zgh4mi13x1br03xipi9r-gcc-7.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/= 7.2.0/../../../x86_64-unknown-linux-gnu/7.2.0/:/gnu/store/h3z6nshhdlc8zgh4m= i13x1br03xipi9r-gcc-7.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/7.2.0/../../= =2E./:/gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/libx86_64-unkn= own-linux-gnu/7.2.0/:/gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25= /lib $ gcc --print-search-dirs | grep include $=20 It looks similar but less verbose on Arch. On Parabola / Arch Linux ffi-helper tried to find the 32-bit header on a 64-bit system which was not installed. According to https://gcc.gnu.org/ml/gcc-help/2007-09/msg00205.html which I found with a very quick Web search one can check the output =66rom =E2=80=9Ecpp -Wp,-v=E2=80=9C. $ cpp -Wp,-v =20 ignoring nonexistent directory "/no-gcc-local-prefix/include" ignoring nonexistent directory "/gnu/store/h3z6nshhdlc8zgh4mi13x1br03xipi9r= -gcc-7.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/7.2.0/../../../../../../../= x86_64-unknown-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /gnu/store/zrmhjw6kha4ghra2dkr06kldarxybgkw-profile/include /gnu/store/h3z6nshhdlc8zgh4mi13x1br03xipi9r-gcc-7.2.0-lib/lib/gcc/x86_64-u= nknown-linux-gnu/7.2.0/include /gnu/store/h3z6nshhdlc8zgh4mi13x1br03xipi9r-gcc-7.2.0-lib/lib/gcc/x86_64-u= nknown-linux-gnu/7.2.0/include-fixed /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/include End of search list. This looks right. However this may be fragile. Including these directories with the -I option as well as the path to Gettext=E2=80=99s include directory allows me to compile-ffi the gettext-po.ffi file. Except when including ffi-helper is still looking for not installed gnu/stubs-32.h on a 64-bit system with a 64-bit glibc and 64-bit gcc. Regards, Florian --brodghrifgnntlal Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEwRjGsqAMqXB4uw3y3T6EbElHBVsFAlowJB4ACgkQ3T6EbElH BVtWvRAArIsipYO7mGKB43wGiWisl04FEtPIJw5n18nZH5iWpZPgt1SjeejjOBwB 31aXR2LxoAKwHrnRxyvSRfizbXc6u0D+w2y/iQjv2sX7/J7OK27zAPYCJ2GPKqFg Wh02sgoczmMFE/M8uln1y37lRhkVgTnIcFoWYVfsFpCoWViAWQ61PM/R3pIt2ENv OQB3AFqJJ8YWRPVFE5vnOXH8qKX3TgUekMw6TDvxevPFhc9Hl3nYsHxm70JvxJwl arvmUaJI+jpfFje3hBIZNcetDYs9CT93Y106dEg5ObDg2iUZUWOTzTVgo06BwC2o ZkCiwZiZDb3MBhgCGvPjcFA1V6Neq4eMKZEJUNFqpicEGsMHo/hxA0Hf6fQRVePQ T1vQCxvqt7vC8wJbHVSS682TZ/WSaqoJW0gJI0T0t/DZYJmEWfoVIAmVSe0LpoNk QWYAiZ5mlZ85a25J7NxZYEk7LIyfZS2tTf0zEBRZBNWPCK6Xj5GN8BkmPCvsxnWp NZegElfjaG6XbwqiZmBkqNJ5oHkPJOAMOqI7sSjk9Mg53j+ptG9ateiDEsGhvXqe UVn+bUDD2AVdINZ4ZwaFoey8v82SBM58C47H8/yAetGWHJ69ruS06NEv20Yoq+DL NrHAyRsYIxdYK9zR0Mmws7ML01nvIv5QWgbOx0i02e2hnagFiE4= =8QAy -----END PGP SIGNATURE----- --brodghrifgnntlal--