public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* cpp only piece not parametrized with gcc-lib directory?
@ 1998-03-23 16:39 Horst von Brand
  1998-03-23 21:54 ` Jeffrey A Law
  1998-03-23 21:57 ` H.J. Lu
  0 siblings, 2 replies; 4+ messages in thread
From: Horst von Brand @ 1998-03-23 16:39 UTC (permalink / raw)
  To: egcs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 837 bytes --]

I built egcs-1.0.2 some days back for i586-pc-linux-gnu (the default), but
my compilers live in i386-redhat-linux, per RedHat-5.0 convention.  Not
wanting to rebuild everything, I just moved the directory egcs-2.90.27 from
/usr/lib/gcc-lib/i586-pc-linux-gnu to /usr/lib/gcc-lib/i386-redhat-linux. I
tried a small C program with:

      gcc -V egcs-2.90.27 -v hello.c

The _only_ (and easily fixed) trouble was that cpp hardwired
/usr/lib/gcc-lib/i586-pc-linux-gnu/include into the <> search path. It
would be nice if it got this, e.g., from either a -I created by the
compiler driver, or read it from .../specs.

Or am I totally off-base here?

Thanks for a excellent compiler!
-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viña del Mar, Chile                               +56 32 672616

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: cpp only piece not parametrized with gcc-lib directory?
  1998-03-23 16:39 cpp only piece not parametrized with gcc-lib directory? Horst von Brand
@ 1998-03-23 21:54 ` Jeffrey A Law
  1998-03-23 21:57 ` H.J. Lu
  1 sibling, 0 replies; 4+ messages in thread
From: Jeffrey A Law @ 1998-03-23 21:54 UTC (permalink / raw)
  To: Horst von Brand; +Cc: egcs

  In message < 199803230403.AAA08140@sleipnir.valparaiso.cl >you write:
  > The _only_ (and easily fixed) trouble was that cpp hardwired
  > /usr/lib/gcc-lib/i586-pc-linux-gnu/include into the <> search path. It
  > would be nice if it got this, e.g., from either a -I created by the
  > compiler driver, or read it from .../specs.
  > 
  > Or am I totally off-base here?
  > 
  > Thanks for a excellent compiler!
I suspect this will be fixed relatively soon.  It may use a different
mechanism, but the basic idea is you'll be able to move the egcs
installed tree around a little more freely.

jeff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: cpp only piece not parametrized with gcc-lib directory?
  1998-03-23 16:39 cpp only piece not parametrized with gcc-lib directory? Horst von Brand
  1998-03-23 21:54 ` Jeffrey A Law
@ 1998-03-23 21:57 ` H.J. Lu
  1998-03-24 14:49   ` Horst von Brand
  1 sibling, 1 reply; 4+ messages in thread
From: H.J. Lu @ 1998-03-23 21:57 UTC (permalink / raw)
  To: Horst von Brand; +Cc: egcs

> 
> I built egcs-1.0.2 some days back for i586-pc-linux-gnu (the default), but
> my compilers live in i386-redhat-linux, per RedHat-5.0 convention.  Not
> wanting to rebuild everything, I just moved the directory egcs-2.90.27 from
> /usr/lib/gcc-lib/i586-pc-linux-gnu to /usr/lib/gcc-lib/i386-redhat-linux. I
> tried a small C program with:
> 
>       gcc -V egcs-2.90.27 -v hello.c
> 
> The _only_ (and easily fixed) trouble was that cpp hardwired
> /usr/lib/gcc-lib/i586-pc-linux-gnu/include into the <> search path. It
> would be nice if it got this, e.g., from either a -I created by the
> compiler driver, or read it from .../specs.
> 

# ls -l /usr/lib/gcc-lib
total 19
lrwxrwxrwx   1 root     root           18 Mar  6 21:29 i386-redhat-linux -> i586-unknown-linux
drwxr-xr-x   4 root     root         1024 Mar 17 12:27 i586-unknown-linux


H.J.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: cpp only piece not parametrized with gcc-lib directory?
  1998-03-23 21:57 ` H.J. Lu
@ 1998-03-24 14:49   ` Horst von Brand
  0 siblings, 0 replies; 4+ messages in thread
From: Horst von Brand @ 1998-03-24 14:49 UTC (permalink / raw)
  To: H.J. Lu; +Cc: egcs

hjl@lucon.org (H.J. Lu) said:
> In-Reply-To: < 199803230403.AAA08140@sleipnir.valparaiso.cl > from "Horst von Bra
>      ***nd" at Mar 23, 98 00:03:17 am
[...]
> > The _only_ (and easily fixed) trouble was that cpp hardwired
> > /usr/lib/gcc-lib/i586-pc-linux-gnu/include into the <> search path. It
> > would be nice if it got this, e.g., from either a -I created by the
> > compiler driver, or read it from .../specs.

> # ls -l /usr/lib/gcc-lib
> total 19
> lrwxrwxrwx   1 root     root           18 Mar  6 21:29 i386-redhat-linux -> i58
> 6-unknown-linux
> drwxr-xr-x   4 root     root         1024 Mar 17 12:27 i586-unknown-linux

Yes, but I want i586-pc-linux-gnu to dissapear completely anyway. And then
again, I was quite willing to rebuild, but as the lazy guy I am, I first
tried just moving it over. Seeing the problem, I started wondering.

BTW, this is rather bad for using the egcs cpp for cpp, as it depends on
hidden (and perhaps broken wrt to the C compiler used, which very well
might be something like lcc, which is strict ANSI) include directories.
-- 
Dr. Horst H. von Brand                       mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-03-24 14:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-03-23 16:39 cpp only piece not parametrized with gcc-lib directory? Horst von Brand
1998-03-23 21:54 ` Jeffrey A Law
1998-03-23 21:57 ` H.J. Lu
1998-03-24 14:49   ` Horst von Brand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).