From owner-freebsd-current Sun May 28 19: 4:33 2000 Delivered-To: freebsd-current@freebsd.org Received: from happy.checkpoint.com (happy.checkpoint.com [199.203.156.41]) by hub.freebsd.org (Postfix) with ESMTP id DD26E37BA69 for ; Sun, 28 May 2000 19:04:25 -0700 (PDT) (envelope-from mellon@pobox.com) Received: (from mellon@localhost) by happy.checkpoint.com (8.9.3/8.9.3) id FAA10640; Mon, 29 May 2000 05:05:29 GMT (envelope-from mellon@pobox.com) Date: Mon, 29 May 2000 05:05:29 +0000 From: Anatoly Vorobey To: Warner Losh Cc: current@freebsd.org Subject: Re: Internal compiler error: program ld got fatal signal 10 Message-ID: <20000529050529.A10617@happy.checkpoint.com> References: <200005282312.RAA36480@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200005282312.RAA36480@harmony.village.org>; from imp@village.org on Sun, May 28, 2000 at 05:12:05PM -0600 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, May 28, 2000 at 05:12:05PM -0600, Warner Losh wrote: > I get these failures on hello world: > > int main() { printf("hello world\n"); } > > cc -c xxx.c > cc -o xxx xxx.o > Can you test this patch? I think I tracked down the problem. At some point, someone added a new field into a hash table struct and didn't add initialization for it into the general hash table struct init func. This patch cures the problem for me. Yes, I know, vendor branch and all :( You need to apply the patch and remake /usr/src/gnu/usr.bin/binutils/libbfd and then /usr/src/gnu/usr.bin/binutils/ld . Index: elf.c =================================================================== RCS file: /freebsd/cvs/src/contrib/binutils/bfd/elf.c,v retrieving revision 1.6 diff -u -r1.6 elf.c --- elf.c 2000/05/13 16:44:19 1.6 +++ elf.c 2000/05/29 04:58:34 @@ -979,6 +979,7 @@ table->needed = NULL; table->hgot = NULL; table->stab_info = NULL; + table->dynlocal = NULL; return _bfd_link_hash_table_init (&table->root, abfd, newfunc); } -- Anatoly Vorobey, mellon@pobox.com http://pobox.com/~mellon/ "Angels can fly because they take themselves lightly" - G.K.Chesterton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message