public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* 2 (small?) problems
@ 1997-08-18  8:22 Thomas Hiller
  1997-08-18  9:11 ` GCC Projects? Bernd Schmidt
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Thomas Hiller @ 1997-08-18  8:22 UTC (permalink / raw)
  To: egcs

Hello,

I encountered 2 problems with the current snapshot (beside some others already 
mentioned on the list).

1)	c++filt is not installed.

2)	Shared libg++ problem.
	I have a problem (also with the normal gcc), when I install the compiler
	in a non-standard place (e.g. /work/egcs). The shared libg++ is not
	found. I had to set the LD_LIBRARY_PATH to include $prefix/lib. Is there
	a portable way to set the shared library path from the compiler ? The
	compiler already issues -L$prefix/lib.
	
Greetings
	Thomas

Thomas Hiller				email: hiller@tu-harburg.d400.de
TU Hamburg-Harburg
Zentrallabor Informations- und Kommunikationstechnik
Harburger Schloss-Str. 20		Tel.: +49-40-7718-3448
D - 21071 Hamburg			Fax : +49-40-7718-2579

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: prototyping
@ 1997-08-18 18:22 Per Bothner
  1997-08-18 18:22 ` 2 (small?) problems Jim Meyering
  0 siblings, 1 reply; 10+ messages in thread
From: Per Bothner @ 1997-08-18 18:22 UTC (permalink / raw)
  To: egcs

  > I would be happy to do at least some of this work of sifting through
  > the RCS files.

What I would suggest is:
	rlog cccp.c >cccp.c.log
	rlog cexp.y >cexp.y.log

Then go through the logs, looking at anything after cpplib was forked off
(late 94 or early 95).  (The cpplib.c log notes that 1995/03/22 I merged
in various changes from late 94 and early 95, so it looks like cpplib
was forked off in mid-to-late 94.)

For every change in the log entry, use rcsdiff -cp to examine the change.
Annotate the log to mark changes that are already in cpplib, or that
don't need to be in cpplib;  for changes that are still needed,
ether make a patch (and send it to me and Jeff Law), or make an annotation
in the log that the change still needs to be considered, or ask me
for advice.  (Note that in some cases changes may be irrelevant because
of later changes, so check that the change is still in cccp.c/cexp.y
before trying to re-implement it!)

I started doing this, but now I can't find my old annotated log.
In any case, I didn't get very far.  Note that if you maintain an
annotated rcs log, you can keep track of progress.  Also, if the job
takes too much time, you can share it with someone else, or you can
hand it over, as long as you have annotated rcs log files to keep
track what has been done, and what still needs to be done.

One major set of performance improvements to cccp.c was checked in
Dec 17 1995.  It would be nice nice to get that in, but it is probably
best to wait until you understand cpplib.c reasonably well.

For testing, note that the cppmain program is meant to be plug-compatible
with cpp.  (There might be some differences, such as column numbers in
error messasges, or a few whitespace changes in eh output, but there
should be nothing significant.)  (My goal is that cpplib should
insert fewer unncessary token-separating whitespace than cpp.)

Thanks for taking this on!

	--Per Bothner
Cygnus Solutions     bothner@cygnus.com     http://www.cygnus.com/~bothner

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: 2 (small?) problems
@ 1997-08-18 18:22 Fergus Henderson
  0 siblings, 0 replies; 10+ messages in thread
From: Fergus Henderson @ 1997-08-18 18:22 UTC (permalink / raw)
  To: egcs

Thomas Hiller, you wrote:
> 2)	Shared libg++ problem.
> 	I have a problem (also with the normal gcc), when I install the compiler
> 	in a non-standard place (e.g. /work/egcs). The shared libg++ is not
> 	found. I had to set the LD_LIBRARY_PATH to include $prefix/lib. Is there
> 	a portable way to set the shared library path from the compiler ? The
> 	compiler already issues -L$prefix/lib.

As far as I'm aware there's no portable way.  Depending on the system,
you use either `-rpath' or `-R', and depending on the system, multiple
directories must either be specified as separate options, or a
colon-separated path must be specified as a single option.

On sparc-sun-solaris, use multiple -R options (e.g. `-Rdir1 -Rdir2').
On i586-linux-pc-gnu, use multiple -rpath options (`-rpath dir1 -rpath dir2').
On alpha-dec-osf and mips-sgi-irix, use a single -rpath option
(e.g. `-rpath dir1:dir2').

Really this nonportability is something that gcc should encapsulate,
just as `gcc -shared' encapsulates (some of) the non-portable aspects
of creating shared libraries on different systems.  gcc ought to
recognize `-rpath' on all these systems, and it should handle the
accumulation of multiple `-rpath' options into a single colon-separated
path for the linker on alpha-dec-osf and mips-sgi-irix.

Cheers,
	Fergus.

-- 
Fergus Henderson <fjh@cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: < http://www.cs.mu.oz.au/~fjh >   |  of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3         |     -- the last words of T. S. Garp.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: 2 (small?) problems
@ 1997-08-19  2:36 Ian Lance Taylor
  0 siblings, 0 replies; 10+ messages in thread
From: Ian Lance Taylor @ 1997-08-19  2:36 UTC (permalink / raw)
  To: egcs

   From: Fergus Henderson <fjh@cs.mu.oz.au>
   Date: Tue, 19 Aug 1997 03:49:55 +1000 (EST)

   On i586-linux-pc-gnu, use multiple -rpath options (`-rpath dir1 -rpath dir2').

The GNU linker used on Linux also supports multiple -R options as well
as -R or -rpath options with a path.

   Really this nonportability is something that gcc should encapsulate,
   just as `gcc -shared' encapsulates (some of) the non-portable aspects
   of creating shared libraries on different systems.  gcc ought to
   recognize `-rpath' on all these systems, and it should handle the
   accumulation of multiple `-rpath' options into a single colon-separated
   path for the linker on alpha-dec-osf and mips-sgi-irix.

Note that the libtool package already helps to handle these and other
shared library issues.

Ian

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: 2 (small?) problems
@ 1997-08-25 23:43 Jim Wilson
  0 siblings, 0 replies; 10+ messages in thread
From: Jim Wilson @ 1997-08-25 23:43 UTC (permalink / raw)
  To: egcs

	1)	c++filt is not installed.

It turns out that c++filt is in both binutils and gcc2/egcs.  It is being
installed, but it is the binutils one that gets installed, not the gcc2/egcs
one.  It would be wrong to install both of them, so we can't install it from
gcc2/egcs.

Eventually, c++filt should be removed from one of these packages, but I am
not going to worry about this for now.

Jim

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

end of thread, other threads:[~1997-08-25 23:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-08-18  8:22 2 (small?) problems Thomas Hiller
1997-08-18  9:11 ` GCC Projects? Bernd Schmidt
1997-08-18  9:11 ` prototyping Andi Kleen
1997-08-18  9:11 ` Will egcs support MachTen? N8TM
1997-08-18 10:42 ` front end interface Clive Nicolson
1997-08-18 13:29 ` [EGCS] Re: double alignment patch for x86 Dave Love
1997-08-18 18:22 prototyping Per Bothner
1997-08-18 18:22 ` 2 (small?) problems Jim Meyering
1997-08-18 18:22 Fergus Henderson
1997-08-19  2:36 Ian Lance Taylor
1997-08-25 23:43 Jim Wilson

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).