From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: /lib/cpp not found in c-mode Date: Mon, 2 May 2005 11:40:36 +1200 Message-ID: <17013.26868.207510.370151@farnswood.snap.net.nz> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1114990535 9369 80.91.229.2 (1 May 2005 23:35:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 1 May 2005 23:35:35 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 02 01:35:31 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DSNxW-00054y-2d for ged-emacs-devel@m.gmane.org; Mon, 02 May 2005 01:34:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DSO4J-0006A0-4R for ged-emacs-devel@m.gmane.org; Sun, 01 May 2005 19:41:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DSO44-00066r-QA for emacs-devel@gnu.org; Sun, 01 May 2005 19:41:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DSO41-00064w-In for emacs-devel@gnu.org; Sun, 01 May 2005 19:41:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DSO41-00064m-F9 for emacs-devel@gnu.org; Sun, 01 May 2005 19:41:29 -0400 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DSO7N-0001aF-0N for emacs-devel@gnu.org; Sun, 01 May 2005 19:44:57 -0400 Original-Received: from farnswood.snap.net.nz (p212-tnt2.snap.net.nz [202.124.108.212]) by viper.snap.net.nz (Postfix) with ESMTP id 110F94B05DE; Mon, 2 May 2005 11:40:32 +1200 (NZST) Original-Received: by farnswood.snap.net.nz (Postfix, from userid 501) id 6032962A99; Mon, 2 May 2005 00:40:38 +0100 (BST) Original-To: Stefan Monnier In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.0.50.29 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:36573 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36573 > I just got the following backtrace. Any idea what's up? > I indeed don't have /lib/cpp (this is on MacOSX) but it shouldn't prevent me > from opening a C file, In this case, how does your system find c-macro-preprocessor?. Do you have /usr/ccs/lib/cpp? If so, oes it support the -dM switch option (or equivalent)? Nick (defcustom c-macro-preprocessor ;; Cannot rely on standard directory on MS-DOS to find CPP. In ;; fact, cannot rely on having cpp.exe, either, in latest GCC ;; versions. (cond ((eq system-type 'ms-dos) "gcc -E -C -o - -") ;; Solaris has it in an unusual place. ((and (string-match "^[^-]*-[^-]*-\\(solaris\\|sunos5\\)" system-configuration) (file-exists-p "/opt/SUNWspro/SC3.0.1/bin/acomp")) "/opt/SUNWspro/SC3.0.1/bin/acomp -C -E") ((file-exists-p "/usr/ccs/lib/cpp") "/usr/ccs/lib/cpp -C") (t "/lib/cpp -C")) "The preprocessor used by the cmacexp package. If you change this, be sure to preserve the `-C' (don't strip comments) option, or to set an equivalent one." :type 'string :group 'c-macro)