This is the mail archive of the gcc-prs@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]

bootstrap/4097: "make bootstrap" fails in HP-UX (10.20 or 11.00)



>Number:         4097
>Category:       bootstrap
>Synopsis:       "make bootstrap" fails in HP-UX (10.20 or 11.00)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 23 08:26:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     rkl@connect.org.uk
>Release:        3.0.1 (and all 2.95.X releases too)
>Organization:
>Environment:
HP-UX 10.20 or 11.00. Flaw is in all platforms, but
HP-UX is one of the few to highlight it.
>Description:
There is a serious flaw in the "make bootstrap" procedure:

If you "make bootstrap", the stage2 build fails because
it tries to link gcc-built .o files using the "cc"
command. You cannot do this in HP-UX (results in an
"__main not found" error when using cc to link - this
is because gcc adds that symbol when linking, but cc
doesn't). This has affected all 2.95.X and 3.X releases
on HP-UX 10.20 and 11.00 to date.
>How-To-Repeat:
Use HP's C (K&R C or ANSI C, it doesn't matter) for the
build - we assume, quite correctly, that the end-user
doesn't have gcc already installed (this is the case
with a new HP-UX 10.20 or 11.00 system). If you have gcc
installed, move it out of the way first. Run configure
(will pick up HP's cc), then type "make bootstrap".
Build will fail during stage2.
>Fix:
There is no current fix I have for this, except the
workaround of using "make" instead of "make bootstrap".
This brings its
own problems (which I worked through - hence my other
HP-UX-filed reports today, which can't be dismissed yet
because "make bootstrap" isn't working on HP-UX).

The fix is to make sure that stage2 builds do *not* use
the native compiler for linking, but actually use the
intermediate gcc built with stage1 ("xgcc" I think) to
link. The Makefiles are a bit too complex for me to
work out how to do that :-)
>Release-Note:
>Audit-Trail:
>Unformatted:


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