This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problems building egcs-1.0.1 on HP/UX 10.20


	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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]