From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Nazir " Newsgroups: gmane.emacs.help Subject: Re: Compile mode in emacs!! Date: Wed, 28 Mar 2007 10:40:02 +0530 Message-ID: <39262250703272210t4c3ff3ffy3b84ba7d26d9a2f0@mail.gmail.com> References: <9688221.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0203366696==" X-Trace: sea.gmane.org 1175087112 11431 80.91.229.12 (28 Mar 2007 13:05:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Mar 2007 13:05:12 +0000 (UTC) Cc: Help-gnu-emacs@gnu.org To: "Peter Dyballa" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 28 15:05:05 2007 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 1HWXpk-0000wk-Bx for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2007 15:05:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWXsD-0005T1-3P for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2007 08:07:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HWQSk-0003m2-Hs for help-gnu-emacs@gnu.org; Wed, 28 Mar 2007 01:12:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HWQSg-0003bn-Up for Help-gnu-emacs@gnu.org; Wed, 28 Mar 2007 01:12:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWQSg-0003bV-KK for Help-gnu-emacs@gnu.org; Wed, 28 Mar 2007 00:12:42 -0500 Original-Received: from ug-out-1314.google.com ([66.249.92.170]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HWQQE-0004cC-Ow for Help-gnu-emacs@gnu.org; Wed, 28 Mar 2007 01:10:11 -0400 Original-Received: by ug-out-1314.google.com with SMTP id j3so110460ugf for ; Tue, 27 Mar 2007 22:10:02 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=i7QwgKS65yDTIB/0dm2PfPq3JifjjHzUCavSxoUq/f45lq4pFLp/COuURhhEUqrnkfMo6g0E1Vrt2UynfmWBWS8h8ntf8lisIf3lAOC0lR5Ypz9VspAZDRpXsAGV6d1yvQUEjsxrygya/Bh0151sVbMDjGOCH1zmg9zIbfmiXkI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Z+r9uII1DOZzQdy2BJOGSfmoY9pcQLhJP4eBmMGIx/RETUEtnvvDL5yb69NOSMZfo5xE0WfJL2ij769sNkn6L8dy4sZ6P1/jxp56J/0EXPq+2yOuAqH07sqkwfGP36j1ApK+QfbPtJsSEkkYXpCoEHIDYZiZntYDSSyogdMr8tg= Original-Received: by 10.66.232.9 with SMTP id e9mr372651ugh.1175058602147; Tue, 27 Mar 2007 22:10:02 -0700 (PDT) Original-Received: by 10.67.71.18 with HTTP; Tue, 27 Mar 2007 22:10:02 -0700 (PDT) In-Reply-To: X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) X-Mailman-Approved-At: Wed, 28 Mar 2007 09:05:38 -0400 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:42239 Archived-At: --===============0203366696== Content-Type: multipart/alternative; boundary="----=_Part_737_5434504.1175058602098" ------=_Part_737_5434504.1175058602098 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks for your reply Peter. The path in the shell is already set to the required compiler. I need to run a set of make files. I do not want to change the "CC" in the make files. But , when I say which gcc in the Mx- compile: It says "/usr/bin/gcc" I want to use, say "/tools/gnu/gcc". (THe shell from which emacs is laucnhed points to this gcc! ) Can I configure the emacs to pick the required compiler? Thanks again, Nazir On 3/27/07, Peter Dyballa wrote: > > > Am 27.03.2007 um 10:20 schrieb elxsian: > > > When I try to use the compile mode in emacs, it picks up the > > default gcc > > (/usr/bin/gcc). I need it to pick the gcc in a different location. > > How do I > > do that? > > Set path or PATH in the shell from which you launch GNU Emacs or in > your login shell accordingly. Or set an environment variable CC that > points to the compiler you want to use. Makefile can also set which > compiler will be used ... > > And finally you can correct what M-x compile RET does by inserting in > the read-area (mini-buffer), just an example: > > time nice +17 env USE_XCB=NO PATH=/Users/pete/Quellen/X11R7.1/util/ > modular:/usr/local/bin:/sw/lib/freetype219/bin:/sw/lib/odcctools/bin:/ > sw/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/gwTeX/ > bin/bin CFLAGS="-v -pipe -fPIC -O0 -mcpu=7450 -mtune=7450 -fno- > common" CPPFLAGS="-v -no-cpp-precomp -I/usr/include/openssl -I/sw/ > include/pango-1.0 -I/sw/lib/freetype219/include -I/sw/lib/freetype219/ > include/freetype2 -I/sw/include/libpng12 -I/sw/include -I/usr/local/ > include" LDFLAGS="-dead_strip -bind_at_load -L/sw/lib/freetype219/lib > -L/sw/lib/fontconfig2/lib -L/sw/lib/ncurses -L/usr/local/lib -L/sw/ > lib" ACLOCAL="aclocal -I /usr/local/share/aclocal -I /sw/share/ > aclocal" PKG_CONFIG_PATH=/sw/lib/freetype219/lib/pkgconfig:/sw/lib/ > fontconfig2/lib/pkgconfig:/usr/X11R7/lib/pkgconfig:/sw/lib/pkgconfig:/ > sw/lib/system-openssl/lib/pkgconfig:/sw/share/pkgconfig:/usr/lib/ > pkgconfig:/usr/local/lib/pkgconfig:/usr/local/clamXav/lib/pkgconfig > util/modular/build1.sh -m /Users/pete/Quellen/X11R7.1/Mesa-6.5.2 -D / > usr/X11R7 -n > > You see: not even make needs to used to compile some software ... > > -- > Greetings > > Pete > > Remember: use logout to logout. > > > ------=_Part_737_5434504.1175058602098 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Thanks for your reply Peter.
The path in the shell is already set to the required compiler. I need to run a set of make files.
I do not want to change the "CC" in the make files.
But , when I say which gcc in the Mx- compile:
It says "/usr/bin/gcc"
I want to use, say "/tools/gnu/gcc". (THe shell from which emacs is laucnhed points to this gcc! )
Can I configure the emacs to pick the required compiler?
 
Thanks again,
Nazir


 
On 3/27/07, Peter Dyballa <Peter_Dyballa@web.de> wrote:

Am 27.03.2007 um 10:20 schrieb elxsian:

> When I try to use the compile mode in emacs, it picks up the
> default gcc
> (/usr/bin/gcc). I need it to pick the gcc in a different location.
> How do I
> do that?

Set path or PATH in the shell from which you launch GNU Emacs or in
your login shell accordingly. Or set an environment variable CC that
points to the compiler you want to use. Makefile can also set which
compiler will be used ...

And finally you can correct what M-x compile RET does by inserting in
the read-area (mini-buffer), just an example:

       time nice +17 env USE_XCB=NO PATH=/Users/pete/Quellen/X11R7.1/util/
modular:/usr/local/bin:/sw/lib/freetype219/bin:/sw/lib/odcctools/bin:/
sw/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/gwTeX/
bin/bin CFLAGS="-v -pipe -fPIC -O0 -mcpu=7450 -mtune=7450 -fno-
common" CPPFLAGS="-v -no-cpp-precomp -I/usr/include/openssl -I/sw/
include/pango-1.0 -I/sw/lib/freetype219/include -I/sw/lib/freetype219/
include/freetype2 -I/sw/include/libpng12 -I/sw/include -I/usr/local/
include" LDFLAGS="-dead_strip -bind_at_load -L/sw/lib/freetype219/lib
-L/sw/lib/fontconfig2/lib -L/sw/lib/ncurses -L/usr/local/lib -L/sw/
lib" ACLOCAL="aclocal -I /usr/local/share/aclocal -I /sw/share/
aclocal" PKG_CONFIG_PATH=/sw/lib/freetype219/lib/pkgconfig:/sw/lib/
fontconfig2/lib/pkgconfig:/usr/X11R7/lib/pkgconfig:/sw/lib/pkgconfig:/
sw/lib/system-openssl/lib/pkgconfig:/sw/share/pkgconfig:/usr/lib/
pkgconfig:/usr/local/lib/pkgconfig:/usr/local/clamXav/lib/pkgconfig
util/modular/build1.sh -m /Users/pete/Quellen/X11R7.1/Mesa-6.5.2 -D /
usr/X11R7 -n

You see: not even make needs to used to compile some software ...

--
Greetings

  Pete

Remember: use logout to logout.




------=_Part_737_5434504.1175058602098-- --===============0203366696== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============0203366696==--