public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Linux Intel Requirements to Build egcs
@ 1997-11-04 18:08 Sean O'Keeffe
  1997-11-04 18:35 ` Joe Buck
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Sean O'Keeffe @ 1997-11-04 18:08 UTC (permalink / raw)
  To: egcs

I'm new to the list and I haven't been able to build any of the ecgs
binaries from 971031.  I always end up with cpp usage errors in various
places.

I am running RedHat 4.2 and I have made all of the upgrades necessary to
build 2.1.x kernels.  (I run kernel 2.1.57 if that makes any
differnece.)  My machine is a SMP dual PPro.

I have:

binutils 2.8.1.0.1
libc-5.4.28
gcc-2.7.2.3
libg++-2.7.2.8
ld.so 1.9.5
dejagnu 1.3

Do I need libgcc2?

Also what ./configure options should I be using for this settup?

(I noticed that autoconf always generates gcc/Makefile with
USE_COLLECT=ld even if I don't specify --with-gnu-ld.  Is this an error?
I remove this by hand my compile goes much further but still fails.)

Thanks, Sean

------------------------
- Sean Kevin O'Keeffe  -
- (619) 272-1673       -
- sokeeffe@ucsd.edu    -  
------------------------


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

* Re: Linux Intel Requirements to Build egcs
  1997-11-04 18:08 Linux Intel Requirements to Build egcs Sean O'Keeffe
@ 1997-11-04 18:35 ` Joe Buck
  1997-11-05  0:27   ` Andrey Slepuhin
  1997-11-04 19:30 ` Jeffrey A Law
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 10+ messages in thread
From: Joe Buck @ 1997-11-04 18:35 UTC (permalink / raw)
  To: Sean O'Keeffe; +Cc: egcs

> I'm new to the list and I haven't been able to build any of the ecgs
> binaries from 971031.  I always end up with cpp usage errors in various
> places.

Odd.

> I am running RedHat 4.2 and I have made all of the upgrades necessary to
> build 2.1.x kernels.  (I run kernel 2.1.57 if that makes any
> differnece.)  My machine is a SMP dual PPro.

egcs builds fine on a straight Intel RedHat 4.2 system.  Maybe there is
something funny about your setup -- we'd need to see exactly what messages
you are getting.

> (I noticed that autoconf always generates gcc/Makefile with
> USE_COLLECT=ld even if I don't specify --with-gnu-ld.  Is this an error?

No.

> I remove this by hand my compile goes much further but still fails.)

The intent is that you don't need to change anything, just

configure [--prefix=/some/path]
make bootstrap
make install



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

* Re: Linux Intel Requirements to Build egcs
  1997-11-04 18:08 Linux Intel Requirements to Build egcs Sean O'Keeffe
  1997-11-04 18:35 ` Joe Buck
  1997-11-04 19:30 ` Jeffrey A Law
@ 1997-11-04 19:30 ` Jim Wilson
  1997-11-05  9:26   ` Joe Buck
  1997-11-04 22:44 ` H.J. Lu
  3 siblings, 1 reply; 10+ messages in thread
From: Jim Wilson @ 1997-11-04 19:30 UTC (permalink / raw)
  To: Sean O'Keeffe; +Cc: egcs

	I'm new to the list and I haven't been able to build any of the ecgs
	binaries from 971031.  I always end up with cpp usage errors in various
	places.

This usually indicates that some environment variable is set incorrectly.
If one of the environment variables that gcc uses has an explicit or implicit
`.' among the list of filenames, then the old gcc that you are using to
compile EGCS will accidentally try to load and use some of the new files in
EGCS, and the old gcc gets confused because of incompatibilities because
the old and new versions of these files.

If you fix your environment variable, then the problem will go away.  The
most likely culprits are COMPILER_PATH, LIBRARY_PATH, and LPATH.  If any
of these have an explicit `.' in them, or if they start or end with a
colon (which adds an implicit `.' to the directory list) then this is what
is causing EGCS to fail.

	Do I need libgcc2?

All targets need libgcc2.  libgcc2 is part of gcc, and will automatically
be built.  There is no need to worry about.

	Also what ./configure options should I be using for this settup?

I don't know.

	(I noticed that autoconf always generates gcc/Makefile with
	USE_COLLECT=ld even if I don't specify --with-gnu-ld.  Is this an error?
	I remove this by hand my compile goes much further but still fails.)

No, this isn't an error.  This tells gcc to build collect2.  Collect2 is
always needed now, regardless of whether GNU ld is being used, because collect2
includes C++ template instantiation support which is not in GNU ld.

Jim

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

* Re: Linux Intel Requirements to Build egcs
  1997-11-04 18:08 Linux Intel Requirements to Build egcs Sean O'Keeffe
  1997-11-04 18:35 ` Joe Buck
@ 1997-11-04 19:30 ` Jeffrey A Law
  1997-11-04 19:30 ` Jim Wilson
  1997-11-04 22:44 ` H.J. Lu
  3 siblings, 0 replies; 10+ messages in thread
From: Jeffrey A Law @ 1997-11-04 19:30 UTC (permalink / raw)
  To: Sean O'Keeffe; +Cc: egcs

  In message < Pine.SOL.3.95.971104175328.26534A-100000@galaxy.ucsd.edu >you writ:
  > Do I need libgcc2?
No, it's built as part of the normal build/install process for
egcs/gcc.


  > Also what ./configure options should I be using for this settup?
You shouldn't need any, unless you want to install into a nonstandard
directory -- in which case you'd use --prefix=somedir

  > (I noticed that autoconf always generates gcc/Makefile with
  > USE_COLLECT=ld even if I don't specify --with-gnu-ld.  Is this an error?
  > I remove this by hand my compile goes much further but still fails.)
Nope, this is intentional.

Maybe if you provided the details about what went wrong we could
help you.  cut-and-paste the errors from the build....

jeff

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

* Re: Linux Intel Requirements to Build egcs
  1997-11-04 18:08 Linux Intel Requirements to Build egcs Sean O'Keeffe
                   ` (2 preceding siblings ...)
  1997-11-04 19:30 ` Jim Wilson
@ 1997-11-04 22:44 ` H.J. Lu
  1997-11-05  9:26   ` Joe Buck
  3 siblings, 1 reply; 10+ messages in thread
From: H.J. Lu @ 1997-11-04 22:44 UTC (permalink / raw)
  To: Sean O'Keeffe; +Cc: egcs

> 
> 
> I'm new to the list and I haven't been able to build any of the ecgs
> binaries from 971031.  I always end up with cpp usage errors in various

971031 is broken on linux. You need Jeff's dwarf2out.c patch for
x86. For alpha, you need my toplev.c and Jeff's alias.c patches.

> places.
> 
> I am running RedHat 4.2 and I have made all of the upgrades necessary to
> build 2.1.x kernels.  (I run kernel 2.1.57 if that makes any
> differnece.)  My machine is a SMP dual PPro.
> 
> I have:
> 
> binutils 2.8.1.0.1

You need binutils 2.8.1.0.15.

> libc-5.4.28
> gcc-2.7.2.3
> ld.so 1.9.5

You need my libg++ 2.8.0b6.3 and my patch to egcs. Check out
the egcs archive for them.

> libg++-2.7.2.8
> dejagnu 1.3

You need dejagnu 971028.


H.J.

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

* Re: Linux Intel Requirements to Build egcs
  1997-11-04 18:35 ` Joe Buck
@ 1997-11-05  0:27   ` Andrey Slepuhin
  1997-11-05  6:33     ` Patrick Michael Kane
  1997-11-05  9:26     ` Joe Buck
  0 siblings, 2 replies; 10+ messages in thread
From: Andrey Slepuhin @ 1997-11-05  0:27 UTC (permalink / raw)
  To: Joe Buck; +Cc: Sean O'Keeffe, egcs

Joe Buck wrote:
> > I am running RedHat 4.2 and I have made all of the upgrades necessary to
> > build 2.1.x kernels.  (I run kernel 2.1.57 if that makes any
> > differnece.)  My machine is a SMP dual PPro.
> 
> egcs builds fine on a straight Intel RedHat 4.2 system.  Maybe there is
> something funny about your setup -- we'd need to see exactly what messages
> you are getting.

I also had the same problems trying to build egcs on PPro ander RedHat 4.2.
The problem is following: gcc from RedHat distribution (2.7.2.1) has ./ in
the path where it searches for specs file - so it takes this file from
gcc subdirectory in egcs when make enter this subdirectory . It seems to me
that gcc 2.7.2.1 couldn't understand correctly some information from this
file (may be due to some information about i686 CPU) and passes incorrect
options to cpp.

Andrey Slepuhin,
Moscow State University

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

* Re: Linux Intel Requirements to Build egcs
  1997-11-05  0:27   ` Andrey Slepuhin
@ 1997-11-05  6:33     ` Patrick Michael Kane
  1997-11-05  9:26     ` Joe Buck
  1 sibling, 0 replies; 10+ messages in thread
From: Patrick Michael Kane @ 1997-11-05  6:33 UTC (permalink / raw)
  To: pooh; +Cc: Joe Buck, Sean O'Keeffe, egcs

I just ran a test build on a dual PPro200 system running stock RedHat 4.2. 
All systems go.

Quoting Andrey Slepuhin (pooh@msu.ru):
[-- Warning: koi8-r is not compatible with your display.]

> Joe Buck wrote:
> > > I am running RedHat 4.2 and I have made all of the upgrades necessary to
> > > build 2.1.x kernels.  (I run kernel 2.1.57 if that makes any
> > > differnece.)  My machine is a SMP dual PPro.
> > 
> > egcs builds fine on a straight Intel RedHat 4.2 system.  Maybe there is
> > something funny about your setup -- we'd need to see exactly what messages
> > you are getting.
> 
> I also had the same problems trying to build egcs on PPro ander RedHat 4.2.
> The problem is following: gcc from RedHat distribution (2.7.2.1) has ./ in
> the path where it searches for specs file - so it takes this file from
> gcc subdirectory in egcs when make enter this subdirectory . It seems to me
> that gcc 2.7.2.1 couldn't understand correctly some information from this
> file (may be due to some information about i686 CPU) and passes incorrect
> options to cpp.
> 
> Andrey Slepuhin,
> Moscow State University

-- 
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i

iQB1AwUBNGCDuajKvguh7HhBAQGBEAL/f0+yqJZOhQZi/GX4+k4giGxgysyGXLYQ
MIEqaeixqq1Mzraehf/Uc427WnJKai+hyJkunpllwcSxlGY0Ooxit2ZYFfSmeV+a
Z1vp2Fssi5NgXajaFR2ON0rU9chflhzG
=zGtd
-----END PGP SIGNATURE-----

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

* Re: Linux Intel Requirements to Build egcs
  1997-11-04 19:30 ` Jim Wilson
@ 1997-11-05  9:26   ` Joe Buck
  0 siblings, 0 replies; 10+ messages in thread
From: Joe Buck @ 1997-11-05  9:26 UTC (permalink / raw)
  To: Jim Wilson; +Cc: sokeeffe, egcs

> 	Do I need libgcc2?
> 
> All targets need libgcc2.  libgcc2 is part of gcc, and will automatically
> be built.  There is no need to worry about.

He's probably confusing libgcc2 with glibc2, which is a completely
different thing.



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

* Re: Linux Intel Requirements to Build egcs
  1997-11-05  0:27   ` Andrey Slepuhin
  1997-11-05  6:33     ` Patrick Michael Kane
@ 1997-11-05  9:26     ` Joe Buck
  1 sibling, 0 replies; 10+ messages in thread
From: Joe Buck @ 1997-11-05  9:26 UTC (permalink / raw)
  To: pooh; +Cc: egcs team

> I also had the same problems trying to build egcs on PPro ander RedHat 4.2.
> The problem is following: gcc from RedHat distribution (2.7.2.1) has ./ in
> the path where it searches for specs file - so it takes this file from
> gcc subdirectory in egcs when make enter this subdirectory . It seems to me
> that gcc 2.7.2.1 couldn't understand correctly some information from this
> file (may be due to some information about i686 CPU) and passes incorrect
> options to cpp.

I did not see this symptom (on Red Hat 4.2).  My builds work OK.
Could you post the output that you got?  (The exact error messsages,
not just an interpretation of what went wrong).




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

* Re: Linux Intel Requirements to Build egcs
  1997-11-04 22:44 ` H.J. Lu
@ 1997-11-05  9:26   ` Joe Buck
  0 siblings, 0 replies; 10+ messages in thread
From: Joe Buck @ 1997-11-05  9:26 UTC (permalink / raw)
  To: H.J. Lu; +Cc: sokeeffe, egcs

> > I'm new to the list and I haven't been able to build any of the ecgs
> > binaries from 971031.  I always end up with cpp usage errors in various
> 
> 971031 is broken on linux. You need Jeff's dwarf2out.c patch for
> x86. For alpha, you need my toplev.c and Jeff's alias.c patches.

Right, my apologies.  My successful build (on Red Hat 4.2) uses Jeff's patch.
The patch can be found at

http://www.cygnus.com/ml/egcs/1997-Nov/0009.html




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

end of thread, other threads:[~1997-11-05  9:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-11-04 18:08 Linux Intel Requirements to Build egcs Sean O'Keeffe
1997-11-04 18:35 ` Joe Buck
1997-11-05  0:27   ` Andrey Slepuhin
1997-11-05  6:33     ` Patrick Michael Kane
1997-11-05  9:26     ` Joe Buck
1997-11-04 19:30 ` Jeffrey A Law
1997-11-04 19:30 ` Jim Wilson
1997-11-05  9:26   ` Joe Buck
1997-11-04 22:44 ` H.J. Lu
1997-11-05  9:26   ` Joe Buck

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