Re: [XFree86] where is /usr/bin/cc being set?

2003-02-24 Thread Egbert Eich
David Dawes writes:
  I see in the imake.c and imakemdep.h that /usr/bin/cpp is
  being hard-coded into the executables.  Also many of the
  Makefiles, presumably they are being constructed via imake,
  contain this hard-coded path. Maybe someone better informed
  than me can comment on this.
  
  imakemdep.h hard-codes it for some platforms.  For platforms where a
  suitable cpp can reasonably be exptected to be available in $PATH,
  the full path doesn't have to be specified there.  A lot of platforms
  use 'cc -E'.
  

Usually cpp doesn't know about the system specific defines.
It is used when just a preprocessor is needed. Any version
of cpp will do (as long as it's not broken).
cc -E knows about system specific defines which may differ
between compier versions. Howver cc should be in the path.

Egbert.
___
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86


Re: [XFree86] where is /usr/bin/cc being set?

2003-02-23 Thread Dr Andrew C Aitchison
On Sat, 22 Feb 2003, Fred Heitkamp wrote:

 I get the message
 sh: line 1: /usr/bin/cc: No such file or directory when
 I run make World.
 
 Where in the xfree tree is this /usr/bin/cc being set?
 I searched and grepped around the source tree but I can't
 seem to find where it is.  Thanks!

Possibly
xc/config/cf/Makefile
unless it is being overridden by one of the other xc/config/cf/* files.
Look for definitions of CC.

-- 
Dr. Andrew C. Aitchison Computer Officer, DPMMS, Cambridge
[EMAIL PROTECTED]   http://www.dpmms.cam.ac.uk/~werdna

___
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86


Re: [XFree86] where is /usr/bin/cc being set?

2003-02-23 Thread David Dawes
On Sat, Feb 22, 2003 at 07:30:06PM -0500, Fred Heitkamp wrote:
I get the message
sh: line 1: /usr/bin/cc: No such file or directory when
I run make World.

Where in the xfree tree is this /usr/bin/cc being set?
I searched and grepped around the source tree but I can't
seem to find where it is.  Thanks!

Note I know I could just make a symbolic link to get rid
of the error, but that's not my question.

The top level Makefile refers to $(CC), and I guess your version of make
defines it to /usr/bin/cc.  An alternative to creating the symlink is
to run 'make CC=your-cc-command World', or find out how to change
make's default (if possible).

David
-- 
David Dawes
Release Engineer/Architect  The XFree86 Project
www.XFree86.org/~dawes
___
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86


Re: [XFree86] where is /usr/bin/cc being set?

2003-02-23 Thread Fred Heitkamp
Note I know I could just make a symbolic link to get rid of the error,
but that's not my question.

The top level Makefile refers to $(CC), and I guess your version of
make defines it to
/usr/bin/cc.  An alternative to creating the symlink is to run 'make
CC=your-cc-command World', or find out how to change make's default (if
possible).

I tried setting CC and BOOTSTRAPCFLAGS and neither gets rid of
the problem completely.   I also have a problem with /usr/bin/cpp
being hard coded in various places.

I complain about this because I often use different compiler
versions.  I would rather just set the PATH to point to the
directiry of the compiler in use for cpp, gcc, etc.

I see in the imake.c and imakemdep.h that /usr/bin/cpp is
being hard-coded into the executables.  Also many of the
Makefiles, presumably they are being constructed via imake,
contain this hard-coded path. Maybe someone better informed
than me can comment on this.

Fred


___
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86


Re: [XFree86] where is /usr/bin/cc being set?

2003-02-23 Thread David Dawes
On Sun, Feb 23, 2003 at 08:58:32PM -0500, Fred Heitkamp wrote:
Note I know I could just make a symbolic link to get rid of the error,
but that's not my question.

The top level Makefile refers to $(CC), and I guess your version of
make defines it to
/usr/bin/cc.  An alternative to creating the symlink is to run 'make
CC=your-cc-command World', or find out how to change make's default (if
possible).

I tried setting CC and BOOTSTRAPCFLAGS and neither gets rid of
the problem completely.   I also have a problem with /usr/bin/cpp
being hard coded in various places.

Have you been able to isolate where the references to /usr/bin/cc are
coming from then if it isn't from $(CC)?

I complain about this because I often use different compiler
versions.  I would rather just set the PATH to point to the
directiry of the compiler in use for cpp, gcc, etc.

Traditionally cpp hasn't alwasy been in $PATH (e.g., /lib/cpp).
I ran into a problem with a RH 5.2 test build where /lib/cpp exists,
but not /usr/bin/cpp (and linux.cf now refers to the latter).

I see in the imake.c and imakemdep.h that /usr/bin/cpp is
being hard-coded into the executables.  Also many of the
Makefiles, presumably they are being constructed via imake,
contain this hard-coded path. Maybe someone better informed
than me can comment on this.

imakemdep.h hard-codes it for some platforms.  For platforms where a
suitable cpp can reasonably be exptected to be available in $PATH,
the full path doesn't have to be specified there.  A lot of platforms
use 'cc -E'.

David
-- 
David Dawes
Release Engineer/Architect  The XFree86 Project
www.XFree86.org/~dawes
___
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86


[XFree86] where is /usr/bin/cc being set?

2003-02-22 Thread Fred Heitkamp
I get the message
sh: line 1: /usr/bin/cc: No such file or directory when
I run make World.

Where in the xfree tree is this /usr/bin/cc being set?
I searched and grepped around the source tree but I can't
seem to find where it is.  Thanks!

Note I know I could just make a symbolic link to get rid
of the error, but that's not my question.

Thanks!

Fred

___
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86