public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: bootstrap/4097: "make bootstrap" fails in HP-UX (10.20 or 11.00)
@ 2001-08-24  1:38 aoliva
  0 siblings, 0 replies; 2+ messages in thread
From: aoliva @ 2001-08-24  1:38 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, rkl

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

State-Changed-From-To: open->closed
State-Changed-By: aoliva
State-Changed-When: Fri Aug 24 01:37:58 2001
State-Changed-Why:
    I can't reproduce this on HP-UX 10.20.  It uses stage1/xgcc to link stage2, as it should.  I'm using GNU make, though.  Perhaps it's yet another lossage caused by HP-UX's make?

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4097&database=gcc


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

* bootstrap/4097: "make bootstrap" fails in HP-UX (10.20 or 11.00)
@ 2001-08-23  8:26 rkl
  0 siblings, 0 replies; 2+ messages in thread
From: rkl @ 2001-08-23  8:26 UTC (permalink / raw)
  To: gcc-gnats

>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:


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

end of thread, other threads:[~2001-08-24  1:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-24  1:38 bootstrap/4097: "make bootstrap" fails in HP-UX (10.20 or 11.00) aoliva
  -- strict thread matches above, loose matches on Subject: below --
2001-08-23  8:26 rkl

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