public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Dennis Clarke <dclarke@blastwave.org>
To: Ian Lance Taylor <iant@google.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: GCC 2.7.2 stage3 bootstrap error on RHEL6 : collect2: error: ld returned 1 exit status
Date: Tue, 18 Dec 2012 17:39:00 -0000	[thread overview]
Message-ID: <fb70e3a18a2.50d063e2@blastwave.org> (raw)
In-Reply-To: <CAKOQZ8zKSWaWZcdbC0L4+ca4LbOR9YOmemjuiMN=RW7k0Gi2Pg@mail.gmail.com>


<snip>
> > collect2: error: ld returned 1 exit status
> > gmake[3]: *** [gnat1] Error 1
> > gmake[3]: Leaving directory `/usr/local/build/gcc-4.7.2_2.6.32-279.14.1.el6.x86_64/gcc'
> > gmake[2]: *** [all-stage3-gcc] Error 2
> > gmake[2]: Leaving directory `/usr/local/build/gcc-4.7.2_2.6.32-279.14.1.el6.x86_64'
> > gmake[1]: *** [stage3-bubble] Error 2
> > gmake[1]: Leaving directory `/usr/local/build/gcc-4.7.2_2.6.32-279.14.1.el6.x86_64'
> > gmake: *** [all] Error 2
> > real 8382.63
> > user 7431.50
> > sys 734.14
> >
> >
> > I would expect to see a failure in stage 1 or stage 2 but rarely 
> ever stage 3.  If anyone
> > has a clue where to look for such a beastly error, do let me know. Please.
> 
> This looks like the linker failed without reporting an error message.
> That is quite strange. 

I agree, which is why I thought to post a message to gcc-help in the hopes that someone else 
could confirm my thinking, this shouldn't happen. Not in stage3. 

> I do not know what would caused that, and it
> suggests a bug in the linker. 

I was also curious why /usr/local/bin/gld was not used as opposed to the Red Hat supplied ld. I suspect this is due to the specs in the supplied gcc that comes with RHEL6, however I had thought that by stage 3 I would be running the most recent gcc created in stage 2 and with the linker and assembler specified on the conffigure line. In this case gas and gld in /usr/local/bin from binutils  2.23.1.  So yes ... this is an odd one to me on a few levels. 

> You should make sure that you did not run out of disk space

That was my first thought as and ada/gnat enabled compiler can be quite large. 
Nope. Plenty of space.

>... and that the linker did not run over some sort
> of resource limit, e.g., set by ulimit.

sedna $ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 127435
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 1024
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

I could try to increase stack size and max locked memory perhaps but again, I am just on a fishing expedition here. 

I will say that I dropped the ada language and then was able to get a somewhat ugly build done : 

    http://gcc.gnu.org/ml/gcc-testresults/2012-12/msg01573.html

..in whcih we see somewhat ugly g++ results : 

                === g++ Summary ===

# of expected passes            48523
# of unexpected failures        51
# of expected failures          286
# of unresolved testcases       28
# of unsupported tests          578

However it was the best I could get at the time. 

I will see if an increase in stack size makes any difference, as for max locked memory, I can not recall ever needing to touch that. 

I will say that my bootstraps of 4.7.2 have not gone well and I can not recall in years having such struggles.  My best quality ( measured by testsuite ) bootstrap result to date has been on an obsolete Solaris 8 i386 server.  Everything throws a pile unexpected failures. 

I wwill go back and retry a bootstrap with ada and see what I get. 

Thank you for the pointers and the reply. 

Dennis 


  reply	other threads:[~2012-12-18 17:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-16 22:17 Dennis Clarke
2012-12-18  7:10 ` Ian Lance Taylor
2012-12-18 17:39   ` Dennis Clarke [this message]
2012-12-19  4:32   ` Dennis Clarke
2012-12-19 13:47     ` Jonathan Wakely
2012-12-19 16:58       ` GCC 4.7.2 " Dennis Clarke
2012-12-19 17:19         ` Jonathan Wakely
2012-12-19 17:28           ` Jonathan Wakely
2012-12-19 19:21             ` Dennis Clarke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fb70e3a18a2.50d063e2@blastwave.org \
    --to=dclarke@blastwave.org \
    --cc=gcc-help@gcc.gnu.org \
    --cc=iant@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).