From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31203 invoked by alias); 2 May 2011 19:26:44 -0000 Received: (qmail 31185 invoked by uid 22791); 2 May 2011 19:26:42 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,TW_QE X-Spam-Check-By: sourceware.org Received: from mail-yw0-f41.google.com (HELO mail-yw0-f41.google.com) (209.85.213.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 02 May 2011 19:26:27 +0000 Received: by ywa1 with SMTP id 1so2496825ywa.0 for ; Mon, 02 May 2011 12:26:26 -0700 (PDT) Received: by 10.236.170.34 with SMTP id o22mr714237yhl.83.1304364386195; Mon, 02 May 2011 12:26:26 -0700 (PDT) Received: from pebble.twiddle.home (are.twiddle.net [75.101.38.216]) by mx.google.com with ESMTPS id o6sm971yhj.26.2011.05.02.12.26.23 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 02 May 2011 12:26:24 -0700 (PDT) Message-ID: <4DBF055E.1070701@twiddle.net> Date: Mon, 02 May 2011 19:26:00 -0000 From: Richard Henderson User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Thunderbird/3.1.10 MIME-Version: 1.0 To: Michael Cree CC: debian-alpha@lists.debian.org, binutils@sourceware.org Subject: Re: Problems with linker on Alpha References: <4DBCC489.9020602@orcon.net.nz> In-Reply-To: <4DBCC489.9020602@orcon.net.nz> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-05/txt/msg00015.txt.bz2 On 04/30/2011 07:25 PM, Michael Cree wrote: > First off is bug 12608 [1] which I believe I have identified the > problem and have posted a patch to the bug tracker. I am hoping that > if it is acceptable that you can commit it. I'll have a look. > Secondly, I noted a number of test suite failures in the ld component > while building binutils. Some of them are with plugins which might > explain why bugs/crashes seem to randomly appear and disappear with > larger software packages using plugins. I would like to investigate > the test suite failures but am yet to understand the automated system > using expect and isolate each test so that I can run them manually. > Are you able to give me a bit of guidance on that? "Large number"? I get === binutils Summary === # of expected passes 81 # of unsupported tests 2 Host is x86_64-unknown-linux-gnu === gas Summary === # of expected passes 132 # of expected failures 1 # of unsupported tests 1 Host is x86_64-unknown-linux-gnu === ld tests === Running target alpha-qemu FAIL: plugin claimfile lost symbol FAIL: plugin claimfile replace symbol FAIL: plugin claimfile resolve symbol XPASS: Preserve default . = 0 XPASS: Preserve explicit . = 0 === ld Summary === # of expected passes 278 # of unexpected failures 3 # of unexpected successes 2 # of expected failures 7 That plugin test, as far as I know, isn't system specific and fails for all targets. > Thirdly, a number of large C++ programs (such as firefox/xulrunner, > webkit, libreoffice) bomb out with GPREL16 relocation truncation > errors when using the -relax option but link successfully when using > --no-relax. I have reopened bug 5276 [2] which describes this > problem. It would be nice to get this problem fixed! Yeah. Uros just reported this same problem with gcc itself. Also, I'm aware of an ld -relax bug that causes the Linux kernel to be mis-compiled. Thankfully at the moment the default is to not apply relaxation during the kernel link. > Fourthly, the Debian supplied gcc-4.6 fails to build on Debian > because of a boostrap comparison failure, so I attempted to build > upstream gcc-4.6 branch source which got past the bootstrap > comparison but failed later on with the following error: > > /usr/bin/ld: BFD (GNU Binutils for Debian) 2.21.51.20110419 internal error, aborting at ../../bfd/elf64-alpha.c line 2064 in elf64_alpha_gc_sweep_hook > > when linking libstdc++. This is using the Debian supplied bintuils > version 2.21.51.20110419-2, also with my patch to fix the TLS issue. > Maybe I should make a bug entry for it. Yes, please to enter a bug for it. I hadn't seen this one before, possibly because I've been cheating and only building C. I've been working on getting QEMU working for alpha-softmmu recently, hoping to be able to debug some of the alpha problems that have been creeping in "natively". r~