This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Problems building egcs-1.0.1 on HP/UX 10.20
- To: Steinar Bang <sb at metis dot no>
- Subject: Re: Problems building egcs-1.0.1 on HP/UX 10.20
- From: Jim Wilson <wilson at cygnus dot com>
- Date: Mon, 23 Mar 1998 17:15:46 -0800
- cc: egcs at cygnus dot com
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