From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: sunway Newsgroups: gmane.emacs.help Subject: Re: M-x compile problem under tramp Date: Tue, 13 May 2008 20:09:02 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2286d45a-8052-4561-ad3c-6f2f1b860592@l28g2000prd.googlegroups.com> References: <07284b91-5cda-4609-8580-fc1be9629bf3@u6g2000prc.googlegroups.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: ger.gmane.org 1210736446 13122 80.91.229.12 (14 May 2008 03:40:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 May 2008 03:40:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 14 05:41:22 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jw7rl-0006i0-VY for geh-help-gnu-emacs@m.gmane.org; Wed, 14 May 2008 05:41:22 +0200 Original-Received: from localhost ([127.0.0.1]:40684 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jw7r2-00082h-Ud for geh-help-gnu-emacs@m.gmane.org; Tue, 13 May 2008 23:40:36 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news-out.readnews.com!transit3.readnews.com!postnews.google.com!l28g2000prd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: 123.127.134.57 Original-X-Trace: posting.google.com 1210734542 6689 127.0.0.1 (14 May 2008 03:09:02 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 14 May 2008 03:09:02 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l28g2000prd.googlegroups.com; posting-host=123.127.134.57; posting-account=ngAdqwoAAAA0uK1OfC15kE5UvDiCOvxy User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.27 (X11; Linux i686; U; zh-cn),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.0 localhost.localdomain:8080 (squid/2.6.STABLE18) Original-Xref: news.stanford.edu gnu.emacs.help:158612 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53980 Archived-At: On May 14, 5:24=A0am, Michael Albinus wrote: > sunway writes: > > how ever, when using M-x compile under tramp, the command will always > > return "..finished.." instead of "exited abnormally" when there is > > compilation error. =A0so the Compilation buffer will always be closed. > > how to fix the problem? > > You might try something like this: > > (setq compile-command "make -k || echo Compilation exited abnormally with = code $?") > > Best regards, Michael. Compilation started at Wed May 14 11:07:42 make -k || echo Compilation exited abnormally with code $? g++ -g -I./occi/occi_header -I./matlab/include -DDEBUG -c -o data.o data.cpp data.cpp:13: error: `ata_sniffer' has not been declared data.cpp:13: error: expected `)' before '*' token make: *** [data.o] Error 1 make: Target `all' not remade because of errors. Compilation exited abnormally with code 2 ///618cabfa20e529686c9b6e0b5a405636 exit Connection to matlab closed. exit Compilation finished at Wed May 14 11:07:45