Re: ./configure with CC="ccache gcc" doesn't work
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 20 Jan 2011 09:50:08 +0000 (10:50 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:43 +0000 (09:37 -0800)
d3/ce9386120e4ef61b3cc277cba560bba99be4a3 [new file with mode: 0644]

diff --git a/d3/ce9386120e4ef61b3cc277cba560bba99be4a3 b/d3/ce9386120e4ef61b3cc277cba560bba99be4a3
new file mode 100644 (file)
index 0000000..b09720e
--- /dev/null
@@ -0,0 +1,107 @@
+Return-Path: <sojkam1@fel.cvut.cz>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 391B2431FB6\r
+       for <notmuch@notmuchmail.org>; Thu, 20 Jan 2011 04:14:51 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id CBwnHjHu0t1G for <notmuch@notmuchmail.org>;\r
+       Thu, 20 Jan 2011 04:14:50 -0800 (PST)\r
+X-Greylist: delayed 313 seconds by postgrey-1.32 at olra;\r
+       Thu, 20 Jan 2011 04:14:50 PST\r
+Received: from mail.loccal.net (gw.loccal.net [94.142.235.206])\r
+       by olra.theworths.org (Postfix) with ESMTP id 95FC8431FB5\r
+       for <notmuch@notmuchmail.org>; Thu, 20 Jan 2011 04:14:50 -0800 (PST)\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by mail.loccal.net (Postfix) with ESMTP id 391BD10477;\r
+       Thu, 20 Jan 2011 13:21:54 +0100 (CET)\r
+X-Virus-Scanned: amavisd-new at loccal.net\r
+Received: from mail.loccal.net ([127.0.0.1])\r
+       by localhost (mail.loccal.net [127.0.0.1]) (amavisd-new, port 10024)\r
+       with LMTP id 0aeDwX-U1E8C; Thu, 20 Jan 2011 13:21:50 +0100 (CET)\r
+Received: from steelpick.2x.cz (unknown [10.21.129.4])\r
+       by mail.loccal.net (Postfix) with ESMTPS id 98920105B8;\r
+       Thu, 20 Jan 2011 13:21:48 +0100 (CET)\r
+Received: from wsh by steelpick.2x.cz with local (Exim 4.72)\r
+       (envelope-from <sojkam1@fel.cvut.cz>)\r
+       id 1Pfr9c-0003r6-AC; Thu, 20 Jan 2011 10:50:08 +0100\r
+From: Michal Sojka <sojkam1@fel.cvut.cz>\r
+To: Andy Wingo <wingo@oblong.com>, notmuch@notmuchmail.org\r
+Subject: Re: ./configure with CC="ccache gcc" doesn't work\r
+In-Reply-To: <m3ei8897za.fsf@oblong.com>\r
+References: <m3ei8897za.fsf@oblong.com>\r
+User-Agent: Notmuch/0.5-38-g923b170 (http://notmuchmail.org) Emacs/23.2.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Thu, 20 Jan 2011 10:50:08 +0100\r
+Message-ID: <87zkqvnbu7.fsf@steelpick.2x.cz>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Transfer-Encoding: quoted-printable\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 20 Jan 2011 12:14:51 -0000\r
+\r
+Hi Andy,\r
+\r
+On Wed, 19 Jan 2011, Andy Wingo wrote:\r
+> On my Fedora 13 x86-64 system,\r
+>=20\r
+>     $ env | grep CC\r
+>     CC=3Dccache gcc\r
+>     $ ./configure --prefix=3D/usr --libdir=3D/usr/lib64\r
+>     [...]\r
+>     Checking for getline... No (will use our own instead).\r
+>     Checking for strcasestr... No (will use our own instead).\r
+>     Checking for rpath support... No (nothing to worry about).\r
+>     Checking for -Wl,--as-needed... No (nothing to worry about).\r
+>     [... success ...]\r
+>=20\r
+> The replacement strcasestr later causes build errors:\r
+>=20\r
+>     CXX -O2 lib/directory.o\r
+>     In file included from lib/notmuch-private.h:41,\r
+>                      from lib/directory.cc:22:\r
+>     /usr/include/string.h:371: error: new declaration =E2=80=98const char=\r
+* strcasestr(const char*, const char*)=E2=80=99\r
+>     compat/compat.h:46: error: ambiguates old declaration =E2=80=98char* =\r
+strcasestr(const char*, const char*)=E2=80=99\r
+>=20\r
+> But if I export CC=3Dgcc, things succeed:\r
+>=20\r
+>     Checking for getline... Yes.\r
+>     Checking for strcasestr... Yes.\r
+>     Checking for rpath support... Yes.\r
+>=20\r
+> And the build goes fine.\r
+>=20\r
+> I think the problem occurs due to the IFS setting in configure.  Not\r
+> sure what the right solution is; I am not married to having ccache in the\r
+> environment.  It's simply that this is what has worked in the past.  If\r
+> there is a better option for using ccache I'm happy to switch, as long\r
+> as it's globally applicable.\r
+\r
+Hmm, the IFS thing in configure seems annoying in this case. But you can\r
+create a little script containing\r
+\r
+  exec ccache gcc "$@"\r
+\r
+and set CC to the name of the script, cannot you?\r
+\r
+-Michal\r