Debian Bug report logs - #765710
binutils test failures on mips and mipsel

version graph

Package: src:binutils; Maintainer for src:binutils is Matthias Klose <doko@debian.org>;

Reported by: Matthias Klose <doko@debian.org>

Date: Fri, 17 Oct 2014 13:00:02 UTC

Severity: important

Found in version binutils/2.24.90.20141014-1

Done: Yunqiang Su <wzssyqa@gmail.com>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, debian-mips@lists.debian.org:
Bug#765710; Package src:binutils. (Fri, 17 Oct 2014 13:00:07 GMT) (full text, mbox, link).


Acknowledgement sent to Matthias Klose <doko@debian.org>:
New Bug report received and forwarded. Copy sent to debian-mips@lists.debian.org. (Fri, 17 Oct 2014 13:00:07 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Matthias Klose <doko@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Cc: "debian-mips@lists.debian.org" <debian-mips@lists.debian.org>
Subject: binutils test failures on mips and mipsel
Date: Fri, 17 Oct 2014 14:56:39 +0200
Package: src:binutils
Version: 2.24.90.20141014-1
Severity: important

The testsuite shows 29 test failures on both mips and mipsel. Please could a
porter have a look?



Information forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#765710; Package src:binutils. (Fri, 18 Jun 2021 01:45:03 GMT) (full text, mbox, link).


Acknowledgement sent to Yunqiang Su <wzssyqa@gmail.com>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>. (Fri, 18 Jun 2021 01:45:03 GMT) (full text, mbox, link).


Message #10 received at 765710@bugs.debian.org (full text, mbox, reply):

From: Yunqiang Su <wzssyqa@gmail.com>
To: 765710@bugs.debian.org
Subject: Re: binutils test failures on mips and mipsel
Date: Fri, 18 Jun 2021 09:41:57 +0800
[Message part 1 (text/plain, inline)]
On Fri, 17 Oct 2014 14:56:39 +0200 Matthias Klose <doko@debian.org> wrote:
> Package: src:binutils
> Version: 2.24.90.20141014-1
> Severity: important
> 
> The testsuite shows 29 test failures on both mips and mipsel. Please could a
> porter have a look?

I just notice that the binutils 2.36.50.20210601-1 meet a new fail:

ar with versioned solib

It is due to:

Our gcc is FPXX default, so the output of asm code has
    .module fp=xx
While as is MIPS I default,

It complains that LDC1/SDC1 is not available on MIPS I.

Here is the workaround:

Index: binutils-2.36.50.20210601/gas/config/tc-mips.c
===================================================================
--- binutils-2.36.50.20210601.orig/gas/config/tc-mips.c
+++ binutils-2.36.50.20210601/gas/config/tc-mips.c
@@ -16741,6 +16741,9 @@ parse_code_option (char * name)
   else
     return OPTION_TYPE_BAD;

+  if (mips_opts.isa == ISA_MIPS1 && mips_opts.fp == 0)
+    mips_opts.isa = ISA_MIPS2;
+
   return isa_set ? OPTION_TYPE_ISA : OPTION_TYPE_NORMAL;
 }

I have send a patch to gcc upstream about the real solution:
Add .module mipsREV to asm code file.

https://gcc.gnu.org/pipermail/gcc-patches/2021-June/572975.html


> 
> 
[Message part 2 (text/html, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#765710; Package src:binutils. (Sat, 20 Nov 2021 13:06:02 GMT) (full text, mbox, link).


Acknowledgement sent to suyunqiang <wzssyqa@icloud.com>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>. (Sat, 20 Nov 2021 13:06:02 GMT) (full text, mbox, link).


Message #15 received at 765710@bugs.debian.org (full text, mbox, reply):

From: suyunqiang <wzssyqa@icloud.com>
To: 765710@bugs.debian.org
Subject: Re: binutils test failures on mips and mipsel
Date: Sat, 20 Nov 2021 20:55:10 +0800
On Fri, 18 Jun 2021 09:41:57 +0800 Yunqiang Su <wzssyqa@gmail.com> wrote:
> On Fri, 17 Oct 2014 14:56:39 +0200 Matthias Klose <doko@debian.org> wrote:
> > Package: src:binutils
> > Version: 2.24.90.20141014-1
> > Severity: important
> > 
> > The testsuite shows 29 test failures on both mips and mipsel. Please could a
> > porter have a look?
> 
> I just notice that the binutils 2.36.50.20210601-1 meet a new fail:
> 
> ar with versioned solib
> 
> It is due to:
> 
> Our gcc is FPXX default, so the output of asm code has
>     .module fp=xx
> While as is MIPS I default,
> 
> It complains that LDC1/SDC1 is not available on MIPS I.
> 
> Here is the workaround:
> 
> Index: binutils-2.36.50.20210601/gas/config/tc-mips.c
> ===================================================================
> --- binutils-2.36.50.20210601.orig/gas/config/tc-mips.c
> +++ binutils-2.36.50.20210601/gas/config/tc-mips.c
> @@ -16741,6 +16741,9 @@ parse_code_option (char * name)
>    else
>      return OPTION_TYPE_BAD;
> 
> +  if (mips_opts.isa == ISA_MIPS1 && mips_opts.fp == 0)
> +    mips_opts.isa = ISA_MIPS2;
> +
>    return isa_set ? OPTION_TYPE_ISA : OPTION_TYPE_NORMAL;
>  }
> 
> I have send a patch to gcc upstream about the real solution:
> Add .module mipsREV to asm code file.
> 
> https://gcc.gnu.org/pipermail/gcc-patches/2021-June/572975.html
> 

This patch has been accepted by gcc upstream.
So let’s just close this bug.

> 
> > 
> > 



Reply sent to Yunqiang Su <wzssyqa@gmail.com>:
You have taken responsibility. (Tue, 07 Dec 2021 02:12:05 GMT) (full text, mbox, link).


Notification sent to Matthias Klose <doko@debian.org>:
Bug acknowledged by developer. (Tue, 07 Dec 2021 02:12:05 GMT) (full text, mbox, link).


Message #20 received at 765710-done@bugs.debian.org (full text, mbox, reply):

From: Yunqiang Su <wzssyqa@gmail.com>
To: 765710-done@bugs.debian.org
Subject: Re: binutils test failures on mips and mipsel
Date: Tue, 7 Dec 2021 10:10:05 +0800
On Sat, 20 Nov 2021 20:55:10 +0800 suyunqiang <wzssyqa@icloud.com> wrote:
> On Fri, 18 Jun 2021 09:41:57 +0800 Yunqiang Su <wzssyqa@gmail.com> wrote:
> > On Fri, 17 Oct 2014 14:56:39 +0200 Matthias Klose <doko@debian.org> wrote:
> > > Package: src:binutils
> > > Version: 2.24.90.20141014-1
> > > Severity: important
> > > 
> > > The testsuite shows 29 test failures on both mips and mipsel. Please could a
> > > porter have a look?
> > 
> > I just notice that the binutils 2.36.50.20210601-1 meet a new fail:
> > 
> > ar with versioned solib
> > 
> > It is due to:
> > 
> > Our gcc is FPXX default, so the output of asm code has
> >     .module fp=xx
> > While as is MIPS I default,
> > 
> > It complains that LDC1/SDC1 is not available on MIPS I.
> > 
> > Here is the workaround:
> > 
> > Index: binutils-2.36.50.20210601/gas/config/tc-mips.c
> > ===================================================================
> > --- binutils-2.36.50.20210601.orig/gas/config/tc-mips.c
> > +++ binutils-2.36.50.20210601/gas/config/tc-mips.c
> > @@ -16741,6 +16741,9 @@ parse_code_option (char * name)
> >    else
> >      return OPTION_TYPE_BAD;
> > 
> > +  if (mips_opts.isa == ISA_MIPS1 && mips_opts.fp == 0)
> > +    mips_opts.isa = ISA_MIPS2;
> > +
> >    return isa_set ? OPTION_TYPE_ISA : OPTION_TYPE_NORMAL;
> >  }
> > 
> > I have send a patch to gcc upstream about the real solution:
> > Add .module mipsREV to asm code file.
> > 
> > https://gcc.gnu.org/pipermail/gcc-patches/2021-June/572975.html
> > 
> 
> This patch has been accepted by gcc upstream.
> So let’s just close this bug.
> 
> > 
> > > 
> > > 
> 
> 



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 04 Jan 2022 07:25:19 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Dec 26 06:58:09 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.