From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: CEDET calls cpp -E -dM -x c++ /dev/null Date: Wed, 1 Jul 2009 21:25:47 +0200 Message-ID: References: <83ws6s2oss.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1246476447 14677 80.91.229.12 (1 Jul 2009 19:27:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Jul 2009 19:27:27 +0000 (UTC) Cc: alexott@gmail.com, eric@siege-engine.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 01 21:27:20 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MM5Sh-0007tJ-Vd for ged-emacs-devel@m.gmane.org; Wed, 01 Jul 2009 21:27:20 +0200 Original-Received: from localhost ([127.0.0.1]:33721 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MM5Sh-0004Ra-9J for ged-emacs-devel@m.gmane.org; Wed, 01 Jul 2009 15:27:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MM5RK-0003lB-VF for emacs-devel@gnu.org; Wed, 01 Jul 2009 15:25:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MM5RG-0003ja-HR for emacs-devel@gnu.org; Wed, 01 Jul 2009 15:25:54 -0400 Original-Received: from [199.232.76.173] (port=43199 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MM5RG-0003jR-52 for emacs-devel@gnu.org; Wed, 01 Jul 2009 15:25:50 -0400 Original-Received: from mail-fx0-f217.google.com ([209.85.220.217]:52713) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MM5RE-0002ZA-I4; Wed, 01 Jul 2009 15:25:48 -0400 Original-Received: by fxm17 with SMTP id 17so648697fxm.42 for ; Wed, 01 Jul 2009 12:25:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=B63+Rl0TUlS9S4kxUb5IHgea/wv2dDad7Og5KyiTohY=; b=WWyyyKglDqIMCgLbzPU6QJutRRLrU+JAL/eXFR9UtOu+Y1LYe896TCAFAHq9iAib7C FuXk+GwwFGdPtIYeyWxUR5UwSCKjL0sNA1gdwbt57PSJes22pfC2WH7437pQSpJa2yBs sg6/vozz0PUyY6l9muV1qN9hRLoHJLy9rJ2v4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=pTOhJnDBAsSgYIWGRX1dAokb8sl22YW932JBnZMYP9q/fq87Fc2xRirnJhfIX82hNA TRkHReLGyg7PjhB/ZeJLRWi9FUpPiDVVYGGNjr5qjgpmQSlZib63AZfoZmzICZ/EOy1P qBmuXnwR8JfpibB174faIw05KqPvWiz2OrqUY= Original-Received: by 10.239.162.205 with SMTP id m13mr824001hbd.87.1246476347202; Wed, 01 Jul 2009 12:25:47 -0700 (PDT) In-Reply-To: <83ws6s2oss.fsf@gnu.org> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:111872 Archived-At: On Wed, Jul 1, 2009 at 9:20 PM, Eli Zaretskii wrote: >> Date: Wed, 1 Jul 2009 21:06:17 +0200 >> From: Lennart Borgman >> Cc: Alex Ott , "Eric M. Ludlam" >> >> CEDET does the call above in semantic-gcc-setup. Doing that from the >> command line using MingGW on w32 fails. >> >> It fails because /dev/null is not valid on w32. Shouldn't it be NUL >> there? > > Yes. > >> However looking through Emacs lisp sources I see several uses >> of just /dev/null. > > They are all bugs, unless they are intended to work only with Unix and > GNU systems. Thanks Eli. Should we file a bug report for this so it perhaps will not be forgotten? >> Wouldn't it be better to use some defsubst for this? > > We already have one: the Lisp variable null-device holds the name of > the device appropriate for the underlying OS. I think Info would be glad to know. Somewhere in "Operating System Interfac= e"? >> Now, if the command instead is >> >> =C2=A0 =C2=A0 cpp -E -dM -x c++ nul >> >> it fails for me with >> >> =C2=A0 cpp: installation problem, cannot exec `cc1plus': No such file or= directory > > This works for me. =C2=A0What version of cpp do you have? =C2=A0I have th= is: > > =C2=A0 =C2=A0D:\usr\eli\data>cpp --version > =C2=A0 =C2=A0cpp (GCC) 3.4.2 (mingw-special) > =C2=A0 =C2=A0Copyright (C) 2004 Free Software Foundation, Inc. > =C2=A0 =C2=A0This is free software; see the source for copying conditions= . =C2=A0There is NO > =C2=A0 =C2=A0warranty; not even for MERCHANTABILITY or FITNESS FOR A PART= ICULAR PURPOSE. cpp (GCC) 3.4.5 (mingw-vista special r3) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Hm, maybe I am using a release candidate ...?