From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: CC Mode and GCC/CEDET integration for evaluating macros Date: Sat, 02 May 2015 12:07:50 +0300 Message-ID: <83vbgbpct5.fsf@gnu.org> References: <87k2wsi62e.fsf@gmail.com> <20150501181135.GA6376@acm.fritz.box> <877fssi2cb.fsf@gmail.com> <83lhh8qgp6.fsf@gnu.org> <87zj5ogmf5.fsf@gmail.com> <83egn0qemn.fsf@gnu.org> <87r3r0gk4c.fsf@gmail.com> <83y4l7peol.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1430557710 21172 80.91.229.3 (2 May 2015 09:08:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 May 2015 09:08:30 +0000 (UTC) Cc: acm@muc.de, emacs-devel@gnu.org To: ohwoeowho@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 02 11:08:22 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YoTPG-000439-0c for ged-emacs-devel@m.gmane.org; Sat, 02 May 2015 11:08:18 +0200 Original-Received: from localhost ([::1]:56443 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoTPF-0006TH-39 for ged-emacs-devel@m.gmane.org; Sat, 02 May 2015 05:08:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoTPB-0006T0-Co for emacs-devel@gnu.org; Sat, 02 May 2015 05:08:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YoTP6-0001dq-SQ for emacs-devel@gnu.org; Sat, 02 May 2015 05:08:13 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:34909) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoTP6-0001cw-KE for emacs-devel@gnu.org; Sat, 02 May 2015 05:08:08 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NNP00J00T53C400@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sat, 02 May 2015 12:08:07 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NNP00JADTDJ6L60@a-mtaout22.012.net.il>; Sat, 02 May 2015 12:08:07 +0300 (IDT) In-reply-to: <83y4l7peol.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:186128 Archived-At: > Date: Sat, 02 May 2015 11:27:22 +0300 > From: Eli Zaretskii > Cc: acm@muc.de, emacs-devel@gnu.org > > > c-macro-expansion: Search failed: " > > ??? !!! ??? start of c-macro expansion ??? !!! ???" > > This generally means that cpp exited with some error, I think. (yes, > the error message could be improved.) I suggest to step with a > debugger through the relevant functions in cmacexp.el, it's possible > there's a bug there. In fact, there was indeed a bug in the code that handled abnormal exit status of the preprocessor: it would bail out early without showing the error messages emitted by the preprocessor, which are an important clue as to what went wrong. For example, if you don't pass any options to the preprocessor, it fails with this error message: :21:20: fatal error: config.h: No such file or directory compilation terminated. which clearly suggests that you need to pass at least the -I. switch. I fixed this.