public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Problems building egcs-1.0.1 on HP/UX 10.20
@ 1998-03-19  8:19 Steinar Bang
  1998-03-23 21:21 ` Jim Wilson
  0 siblings, 1 reply; 4+ messages in thread
From: Steinar Bang @ 1998-03-19  8:19 UTC (permalink / raw)
  To: egcs

I first installed binutils 2.8.1 (compiled with the native cc
compiler).  

I then unpacked egcs-1.0.1, and configured it with the commands
	setenv CC cc
	./configure --prefix=/opt/pub --with-gnu-as

I then did a 
	make bootstrap
which failed at:

...
Building runtime libraries
	./makeinfo/makeinfo -I. texinfo.texi
Making info file `texinfo' from `texinfo.texi'.
	rm -f cpp
	ln cccp cpp
	echo '/*WARNING: This file is automatically generated!*/' >tmp-c-parse.y
	sed -e "/^ifobjc$/,/^end ifobjc$/d" \
	  -e "/^ifc$/d" -e "/^end ifc$/d" \
	  ./c-parse.in >>tmp-c-parse.y
	./move-if-change tmp-c-parse.y ./c-parse.y
./c-parse.y is unchanged
	if [ -f libgcc2.ready ] ; then \
		true; \
	else \
		touch libgcc2.ready; \
	fi
	cc -c  -DIN_GCC    -g   -DHAVE_CONFIG_H -DHAIFA    -I. -I. -I./config underscore.c
	rm -f collect2
	cc  -DIN_GCC    -g   -DHAVE_CONFIG_H -DHAIFA  -o collect2 collect2.o tlink.o hash.o \
	  cplus-dem.o underscore.o version.o choose-temp.o obstack.o alloca.o  
/usr/ccs/bin/ld: Unsatisfied symbols:
   __main (code)
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Should I have configured egcs to use the gnu-ld as well? I seem to
recall the configuration of binutils telling me it couldn't create an
ld for HPPA...?

All hints/tips/etc. appreciated!

Thanx!


- Steinar

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

* Re: Problems building egcs-1.0.1 on HP/UX 10.20
  1998-03-19  8:19 Problems building egcs-1.0.1 on HP/UX 10.20 Steinar Bang
@ 1998-03-23 21:21 ` Jim Wilson
  1998-03-24  0:03   ` Jeffrey A Law
  1998-03-24 12:23   ` Arvind Sankar
  0 siblings, 2 replies; 4+ messages in thread
From: Jim Wilson @ 1998-03-23 21:21 UTC (permalink / raw)
  To: Steinar Bang; +Cc: egcs

	Building runtime libraries
	...
	cc  -DIN_GCC    -g   -DHAVE_CONFIG_H -DHAIFA  -o collect2 collect2.o tlink.o hash.o \
	  cplus-dem.o underscore.o version.o choose-temp.o obstack.o alloca.o  
	/usr/ccs/bin/ld: Unsatisfied symbols:
	   __main (code)
	*** Error exit code 1

For some reason, make rebuilt files in the gcc directory that were already
(or should have been) up to date.  It used the wrong compiler when it did
this (cc instead of stage2/xgcc) which caused the link to fail.  The problem
here is that it should not have tried to rebuild the files.

Did you use GNU make?  If not, try that.  Many different non-GNU makes
have problems building gcc/egcs correctly.

Otherwise, is it possible that someone or something accidentally touched
one or more files in the source tree while you were building egcs?  If this
happened, it would cause the build to fail as described.

Jim

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

* Re: Problems building egcs-1.0.1 on HP/UX 10.20
  1998-03-23 21:21 ` Jim Wilson
@ 1998-03-24  0:03   ` Jeffrey A Law
  1998-03-24 12:23   ` Arvind Sankar
  1 sibling, 0 replies; 4+ messages in thread
From: Jeffrey A Law @ 1998-03-24  0:03 UTC (permalink / raw)
  To: Jim Wilson; +Cc: Steinar Bang, egcs

  In message < 199803240115.RAA09640@rtl.cygnus.com >you write:
  > 	Building runtime libraries
  > 	...
  > 	cc  -DIN_GCC    -g   -DHAVE_CONFIG_H -DHAIFA  -o collect2 collect2.o tl
  > ink.o hash.o \
  > 	  cplus-dem.o underscore.o version.o choose-temp.o obstack.o alloca.o  
  > 	/usr/ccs/bin/ld: Unsatisfied symbols:
  > 	   __main (code)
  > 	*** Error exit code 1
  > 
  > For some reason, make rebuilt files in the gcc directory that were already
  > (or should have been) up to date.  It used the wrong compiler when it did
  > this (cc instead of stage2/xgcc) which caused the link to fail.  The proble m
  > here is that it should not have tried to rebuild the files.
  > 
  > Did you use GNU make?  If not, try that.  Many different non-GNU makes
  > have problems building gcc/egcs correctly.
This is typical on an HPUX system.  The hpux make consistently
tries to rebuild files which are up-to-date.  This results in
various problems of this nature.

GNU make doesn't have this problem.

jeff

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

* Re: Problems building egcs-1.0.1 on HP/UX 10.20
  1998-03-23 21:21 ` Jim Wilson
  1998-03-24  0:03   ` Jeffrey A Law
@ 1998-03-24 12:23   ` Arvind Sankar
  1 sibling, 0 replies; 4+ messages in thread
From: Arvind Sankar @ 1998-03-24 12:23 UTC (permalink / raw)
  To: egcs

On Mon, Mar 23, 1998 at 05:15:46PM -0800, Jim Wilson wrote:
> 	Building runtime libraries
> 	...
> 	cc  -DIN_GCC    -g   -DHAVE_CONFIG_H -DHAIFA  -o collect2 collect2.o tlink.o hash.o \
> 	  cplus-dem.o underscore.o version.o choose-temp.o obstack.o alloca.o  
> 	/usr/ccs/bin/ld: Unsatisfied symbols:
> 	   __main (code)
> 	*** Error exit code 1
> 
> For some reason, make rebuilt files in the gcc directory that were already
> (or should have been) up to date.  It used the wrong compiler when it did
> this (cc instead of stage2/xgcc) which caused the link to fail.  The problem
> here is that it should not have tried to rebuild the files.
> 
> Did you use GNU make?  If not, try that.  Many different non-GNU makes
> have problems building gcc/egcs correctly.

I have the same problem if I use the HP/UX make. gmake works fine.

-- arvind

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

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-03-19  8:19 Problems building egcs-1.0.1 on HP/UX 10.20 Steinar Bang
1998-03-23 21:21 ` Jim Wilson
1998-03-24  0:03   ` Jeffrey A Law
1998-03-24 12:23   ` Arvind Sankar

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