Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1301310 > unrolled thread

arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'

Started bykbuild test robot <fengguang.wu@intel.com>
First post2016-01-05 08:30 +0100
Last post2016-01-05 15:40 +0100
Articles 10 — 4 participants

Back to article view | Back to linux.kernel


Contents

  arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires  '-mfp32' kbuild test robot <fengguang.wu@intel.com> - 2016-01-05 08:30 +0100
    Re: arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires  '-mfp32' Guenter Roeck <linux@roeck-us.net> - 2016-01-05 09:10 +0100
      Re: arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900'  requires '-mfp32' Fengguang Wu <fengguang.wu@intel.com> - 2016-01-05 09:30 +0100
        Re: arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires  '-mfp32' Guenter Roeck <linux@roeck-us.net> - 2016-01-05 15:10 +0100
          Re: arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900'  requires '-mfp32' Fengguang Wu <fengguang.wu@intel.com> - 2016-01-05 15:40 +0100
            Re: arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires  '-mfp32' Guenter Roeck <linux@roeck-us.net> - 2016-01-05 16:20 +0100
            Re: arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900'  requires '-mfp32' Fengguang Wu <fengguang.wu@intel.com> - 2016-01-06 13:00 +0100
              Re: arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900'  requires '-mfp32' Fengguang Wu <fengguang.wu@intel.com> - 2016-01-06 13:10 +0100
                Re: [kbuild-all] arch/mips/vdso/gettimeofday.c:1:0: error:  '-march=r3900' requires '-mfp32' Fengguang Wu <fengguang.wu@intel.com> - 2016-01-06 13:10 +0100
          Re: arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900'  requires '-mfp32' Ralf Baechle <ralf@linux-mips.org> - 2016-01-05 15:40 +0100

#1301310 — arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'

Fromkbuild test robot <fengguang.wu@intel.com>
Date2016-01-05 08:30 +0100
Subjectarch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
Message-ID<qNue6-77C-3@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi Guenter,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   168309855a7d1e16db751e9c647119fe2d2dc878
commit: 398c7500a1f5f74e207bd2edca1b1721b3cc1f1e MIPS: VDSO: Fix build error with binutils 2.24 and earlier
date:   6 days ago
config: mips-jmr3927_defconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 398c7500a1f5f74e207bd2edca1b1721b3cc1f1e
        # save the attached .config to linux build tree
        make.cross ARCH=mips 

All errors (new ones prefixed by >>):

>> arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
    /*
    ^

vim +1 arch/mips/vdso/gettimeofday.c

a7f4df4e Alex Smith 2015-10-21 @1  /*
a7f4df4e Alex Smith 2015-10-21  2   * Copyright (C) 2015 Imagination Technologies
a7f4df4e Alex Smith 2015-10-21  3   * Author: Alex Smith <alex.smith@imgtec.com>
a7f4df4e Alex Smith 2015-10-21  4   *
a7f4df4e Alex Smith 2015-10-21  5   * This program is free software; you can redistribute it and/or modify it
a7f4df4e Alex Smith 2015-10-21  6   * under the terms of the GNU General Public License as published by the
a7f4df4e Alex Smith 2015-10-21  7   * Free Software Foundation;  either version 2 of the  License, or (at your
a7f4df4e Alex Smith 2015-10-21  8   * option) any later version.
a7f4df4e Alex Smith 2015-10-21  9   */

:::::: The code at line 1 was first introduced by commit
:::::: a7f4df4e21dd8a8dab96e88acd2c9c5017b83fc6 MIPS: VDSO: Add implementations of gettimeofday() and clock_gettime()

:::::: TO: Alex Smith <alex.smith@imgtec.com>
:::::: CC: Ralf Baechle <ralf@linux-mips.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[toc] | [next] | [standalone]


#1301318

FromGuenter Roeck <linux@roeck-us.net>
Date2016-01-05 09:10 +0100
Message-ID<qNuQO-7Jz-3@gated-at.bofh.it>
In reply to#1301310
On 01/04/2016 11:23 PM, kbuild test robot wrote:
> Hi Guenter,
>
> First bad commit (maybe != root cause):
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   168309855a7d1e16db751e9c647119fe2d2dc878
> commit: 398c7500a1f5f74e207bd2edca1b1721b3cc1f1e MIPS: VDSO: Fix build error with binutils 2.24 and earlier
> date:   6 days ago
> config: mips-jmr3927_defconfig (attached as .config)
> reproduce:
>          wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
>          chmod +x ~/bin/make.cross
>          git checkout 398c7500a1f5f74e207bd2edca1b1721b3cc1f1e
>          # save the attached .config to linux build tree
>          make.cross ARCH=mips
>
> All errors (new ones prefixed by >>):
>
>>> arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
>      /*
>      ^
>
AFAICS this is using the mips cross compiler version 4.9.0 from kernel.org [1],
which in turn uses binutils 2.24. At least this is what make.cross tries to install.

I downloaded it and used it to compile both the attached configuration as well
as jmr3927_defconfig. Both are building just fine for me. On top of that,
arch/mips/vdso/gettimeofday.c should not build in the first place with binutils 2.24
(and doesn't build for me).

What am I missing ?

Guenter

---
[1] https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/4.9.0/x86_64-gcc-4.9.0-nolibc_mips-linux.tar.xz

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1301323 — Re: arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'

FromFengguang Wu <fengguang.wu@intel.com>
Date2016-01-05 09:30 +0100
SubjectRe: arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
Message-ID<qNvaa-7RZ-9@gated-at.bofh.it>
In reply to#1301318
On Tue, Jan 05, 2016 at 12:09:14AM -0800, Guenter Roeck wrote:
> On 01/04/2016 11:23 PM, kbuild test robot wrote:
> >Hi Guenter,
> >
> >First bad commit (maybe != root cause):
> >
> >tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> >head:   168309855a7d1e16db751e9c647119fe2d2dc878
> >commit: 398c7500a1f5f74e207bd2edca1b1721b3cc1f1e MIPS: VDSO: Fix build error with binutils 2.24 and earlier
> >date:   6 days ago
> >config: mips-jmr3927_defconfig (attached as .config)
> >reproduce:
> >         wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
> >         chmod +x ~/bin/make.cross
> >         git checkout 398c7500a1f5f74e207bd2edca1b1721b3cc1f1e
> >         # save the attached .config to linux build tree
> >         make.cross ARCH=mips
> >
> >All errors (new ones prefixed by >>):
> >
> >>>arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
> >     /*
> >     ^
> >
> AFAICS this is using the mips cross compiler version 4.9.0 from kernel.org [1],
> which in turn uses binutils 2.24. At least this is what make.cross tries to install.

Oops, sorry. I'm now using the debian MIPS cross compiler 5.2.1 ...
make.cross has not been updated yet.

> I downloaded it and used it to compile both the attached configuration as well
> as jmr3927_defconfig. Both are building just fine for me. On top of that,
> arch/mips/vdso/gettimeofday.c should not build in the first place with binutils 2.24
> (and doesn't build for me).
> 
> What am I missing ?
> 
> Guenter
> 
> ---
> [1] https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/4.9.0/x86_64-gcc-4.9.0-nolibc_mips-linux.tar.xz
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1301551

FromGuenter Roeck <linux@roeck-us.net>
Date2016-01-05 15:10 +0100
Message-ID<qNAtd-3SF-15@gated-at.bofh.it>
In reply to#1301323
On 01/05/2016 12:22 AM, Fengguang Wu wrote:
> On Tue, Jan 05, 2016 at 12:09:14AM -0800, Guenter Roeck wrote:
>> On 01/04/2016 11:23 PM, kbuild test robot wrote:
>>> Hi Guenter,
>>>
>>> First bad commit (maybe != root cause):
>>>
>>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>>> head:   168309855a7d1e16db751e9c647119fe2d2dc878
>>> commit: 398c7500a1f5f74e207bd2edca1b1721b3cc1f1e MIPS: VDSO: Fix build error with binutils 2.24 and earlier
>>> date:   6 days ago
>>> config: mips-jmr3927_defconfig (attached as .config)
>>> reproduce:
>>>          wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
>>>          chmod +x ~/bin/make.cross
>>>          git checkout 398c7500a1f5f74e207bd2edca1b1721b3cc1f1e
>>>          # save the attached .config to linux build tree
>>>          make.cross ARCH=mips
>>>
>>> All errors (new ones prefixed by >>):
>>>
>>>>> arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
>>>      /*
>>>      ^
>>>
>> AFAICS this is using the mips cross compiler version 4.9.0 from kernel.org [1],
>> which in turn uses binutils 2.24. At least this is what make.cross tries to install.
>
> Oops, sorry. I'm now using the debian MIPS cross compiler 5.2.1 ...
> make.cross has not been updated yet.
>
No problem. FWIW, I tested my patch with the compiler from Yocto 2.0, which
uses gcc 5.2.0 and binutils 2.25.1, with no problem.

Do you have directions on how to install a debian cross compiler into a Ubuntu system ?
Alternatively, what version of binutils does the mips cross compiler use ?

Thanks,
Guenter

>> I downloaded it and used it to compile both the attached configuration as well
>> as jmr3927_defconfig. Both are building just fine for me. On top of that,
>> arch/mips/vdso/gettimeofday.c should not build in the first place with binutils 2.24
>> (and doesn't build for me).
>>
>> What am I missing ?
>>
>> Guenter
>>
>> ---
>> [1] https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/4.9.0/x86_64-gcc-4.9.0-nolibc_mips-linux.tar.xz
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1301570 — Re: arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'

FromFengguang Wu <fengguang.wu@intel.com>
Date2016-01-05 15:40 +0100
SubjectRe: arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
Message-ID<qNAWe-43s-13@gated-at.bofh.it>
In reply to#1301551
Hi Guenter,

On Tue, Jan 05, 2016 at 06:02:47AM -0800, Guenter Roeck wrote:
> On 01/05/2016 12:22 AM, Fengguang Wu wrote:
> >On Tue, Jan 05, 2016 at 12:09:14AM -0800, Guenter Roeck wrote:
> >>On 01/04/2016 11:23 PM, kbuild test robot wrote:
> >>>Hi Guenter,
> >>>
> >>>First bad commit (maybe != root cause):
> >>>
> >>>tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> >>>head:   168309855a7d1e16db751e9c647119fe2d2dc878
> >>>commit: 398c7500a1f5f74e207bd2edca1b1721b3cc1f1e MIPS: VDSO: Fix build error with binutils 2.24 and earlier
> >>>date:   6 days ago
> >>>config: mips-jmr3927_defconfig (attached as .config)
> >>>reproduce:
> >>>         wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
> >>>         chmod +x ~/bin/make.cross
> >>>         git checkout 398c7500a1f5f74e207bd2edca1b1721b3cc1f1e
> >>>         # save the attached .config to linux build tree
> >>>         make.cross ARCH=mips
> >>>
> >>>All errors (new ones prefixed by >>):
> >>>
> >>>>>arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
> >>>     /*
> >>>     ^
> >>>
> >>AFAICS this is using the mips cross compiler version 4.9.0 from kernel.org [1],
> >>which in turn uses binutils 2.24. At least this is what make.cross tries to install.
> >
> >Oops, sorry. I'm now using the debian MIPS cross compiler 5.2.1 ...
> >make.cross has not been updated yet.
> >
> No problem. FWIW, I tested my patch with the compiler from Yocto 2.0, which
> uses gcc 5.2.0 and binutils 2.25.1, with no problem.
> 
> Do you have directions on how to install a debian cross compiler into a Ubuntu system ?
> Alternatively, what version of binutils does the mips cross compiler use ?

These are the installed version in my Debian:

||/ Name                                 Version                 Architecture            Description
+++-====================================-=======================-=======================-=============================================================================
ii  gcc-5-mips-linux-gnu                 5.2.1-16cross1          amd64                   GNU C compiler
ii  gcc-5-mipsel-linux-gnu               5.2.1-16cross1          amd64                   GNU C compiler
ii  binutils-mips-linux-gnu              2.25-8                  amd64                   GNU binary utilities, for mips-linux-gnu target
ii  binutils-mipsel-linux-gnu            2.25-8                  amd64                   GNU binary utilities, for mipsel-linux-gnu target

You may check if these packages are available on Ubuntu.  Anyway the
versions are close to yours. This is interesting, I'll do more checks.

Thanks,
Fengguang

> >>I downloaded it and used it to compile both the attached configuration as well
> >>as jmr3927_defconfig. Both are building just fine for me. On top of that,
> >>arch/mips/vdso/gettimeofday.c should not build in the first place with binutils 2.24
> >>(and doesn't build for me).
> >>
> >>What am I missing ?
> >>
> >>Guenter
> >>
> >>---
> >>[1] https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/4.9.0/x86_64-gcc-4.9.0-nolibc_mips-linux.tar.xz
> >
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1301595

FromGuenter Roeck <linux@roeck-us.net>
Date2016-01-05 16:20 +0100
Message-ID<qNByW-4zh-5@gated-at.bofh.it>
In reply to#1301570
Hi Fengguang,

On 01/05/2016 06:30 AM, Fengguang Wu wrote:
> Hi Guenter,
>
> On Tue, Jan 05, 2016 at 06:02:47AM -0800, Guenter Roeck wrote:
>> On 01/05/2016 12:22 AM, Fengguang Wu wrote:
>>> On Tue, Jan 05, 2016 at 12:09:14AM -0800, Guenter Roeck wrote:
>>>> On 01/04/2016 11:23 PM, kbuild test robot wrote:
>>>>> Hi Guenter,
>>>>>
>>>>> First bad commit (maybe != root cause):
>>>>>
>>>>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>>>>> head:   168309855a7d1e16db751e9c647119fe2d2dc878
>>>>> commit: 398c7500a1f5f74e207bd2edca1b1721b3cc1f1e MIPS: VDSO: Fix build error with binutils 2.24 and earlier
>>>>> date:   6 days ago
>>>>> config: mips-jmr3927_defconfig (attached as .config)
>>>>> reproduce:
>>>>>          wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
>>>>>          chmod +x ~/bin/make.cross
>>>>>          git checkout 398c7500a1f5f74e207bd2edca1b1721b3cc1f1e
>>>>>          # save the attached .config to linux build tree
>>>>>          make.cross ARCH=mips
>>>>>
>>>>> All errors (new ones prefixed by >>):
>>>>>
>>>>>>> arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
>>>>>      /*
>>>>>      ^
>>>>>
>>>> AFAICS this is using the mips cross compiler version 4.9.0 from kernel.org [1],
>>>> which in turn uses binutils 2.24. At least this is what make.cross tries to install.
>>>
>>> Oops, sorry. I'm now using the debian MIPS cross compiler 5.2.1 ...
>>> make.cross has not been updated yet.
>>>
>> No problem. FWIW, I tested my patch with the compiler from Yocto 2.0, which
>> uses gcc 5.2.0 and binutils 2.25.1, with no problem.
>>
>> Do you have directions on how to install a debian cross compiler into a Ubuntu system ?
>> Alternatively, what version of binutils does the mips cross compiler use ?
>
> These are the installed version in my Debian:
>
> ||/ Name                                 Version                 Architecture            Description
> +++-====================================-=======================-=======================-=============================================================================
> ii  gcc-5-mips-linux-gnu                 5.2.1-16cross1          amd64                   GNU C compiler
> ii  gcc-5-mipsel-linux-gnu               5.2.1-16cross1          amd64                   GNU C compiler
> ii  binutils-mips-linux-gnu              2.25-8                  amd64                   GNU binary utilities, for mips-linux-gnu target
> ii  binutils-mipsel-linux-gnu            2.25-8                  amd64                   GNU binary utilities, for mipsel-linux-gnu target
>
> You may check if these packages are available on Ubuntu.  Anyway the

Unfortunately it looks like they are not available.

> versions are close to yours. This is interesting, I'll do more checks.
>

The problem is an interesting one: Due to my patch, arch/mips/vdso/gettimeofday.c
actually compiles with your toolchain (as it should, since its binutils version
is >= 2.25). Previously that was not the case. In other words, my patch exposes
a previously existing problem.

The underlying problem seems to be that your toolchain, as the error suggests,
does not support '-march=r3900' (which is set with the affected configuration)
without '-mfp32'. This may be a problem only for gettimeofday.c because that
file is compiled with different options than everything else. I _suspect_
the reason to be that -msoft-float and -Wa,-msoft-float are dropped from the
gettimeofday compile options, but I am not sure. Ralf and/or Alex (copying)
may have a better understanding of the problem.

Thanks,
Guenter

> Thanks,
> Fengguang
>
>>>> I downloaded it and used it to compile both the attached configuration as well
>>>> as jmr3927_defconfig. Both are building just fine for me. On top of that,
>>>> arch/mips/vdso/gettimeofday.c should not build in the first place with binutils 2.24
>>>> (and doesn't build for me).
>>>>
>>>> What am I missing ?
>>>>
>>>> Guenter
>>>>
>>>> ---
>>>> [1] https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/4.9.0/x86_64-gcc-4.9.0-nolibc_mips-linux.tar.xz
>>>
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1302708 — Re: arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'

FromFengguang Wu <fengguang.wu@intel.com>
Date2016-01-06 13:00 +0100
SubjectRe: arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
Message-ID<qNUUW-Cv-9@gated-at.bofh.it>
In reply to#1301570
On Tue, Jan 05, 2016 at 10:30:39PM +0800, Fengguang Wu wrote:
> Hi Guenter,
> 
> On Tue, Jan 05, 2016 at 06:02:47AM -0800, Guenter Roeck wrote:
> > On 01/05/2016 12:22 AM, Fengguang Wu wrote:
> > >On Tue, Jan 05, 2016 at 12:09:14AM -0800, Guenter Roeck wrote:
> > >>On 01/04/2016 11:23 PM, kbuild test robot wrote:
> > >>>Hi Guenter,
> > >>>
> > >>>First bad commit (maybe != root cause):
> > >>>
> > >>>tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > >>>head:   168309855a7d1e16db751e9c647119fe2d2dc878
> > >>>commit: 398c7500a1f5f74e207bd2edca1b1721b3cc1f1e MIPS: VDSO: Fix build error with binutils 2.24 and earlier
> > >>>date:   6 days ago
> > >>>config: mips-jmr3927_defconfig (attached as .config)
> > >>>reproduce:
> > >>>         wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
> > >>>         chmod +x ~/bin/make.cross
> > >>>         git checkout 398c7500a1f5f74e207bd2edca1b1721b3cc1f1e
> > >>>         # save the attached .config to linux build tree
> > >>>         make.cross ARCH=mips
> > >>>
> > >>>All errors (new ones prefixed by >>):
> > >>>
> > >>>>>arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
> > >>>     /*
> > >>>     ^
> > >>>
> > >>AFAICS this is using the mips cross compiler version 4.9.0 from kernel.org [1],
> > >>which in turn uses binutils 2.24. At least this is what make.cross tries to install.
> > >
> > >Oops, sorry. I'm now using the debian MIPS cross compiler 5.2.1 ...
> > >make.cross has not been updated yet.
> > >
> > No problem. FWIW, I tested my patch with the compiler from Yocto 2.0, which
> > uses gcc 5.2.0 and binutils 2.25.1, with no problem.

I can reproduce the problem with Debian's latest gcc:

||/ Name                                 Version                 Architecture            Description
+++-====================================-=======================-=======================-=============================================================================
ii  gcc-5-mips-linux-gnu                 5.3.1-4cross1           amd64                   GNU C compiler
ii  binutils-mips-linux-gnu              2.25.90.20151209-1      amd64                   GNU binary utilities, for mips-linux-gnu target

You can find the build log at the end of this email. 

However I find that the latest mainline no longer has the error.
So let's we ignore this error.

Thanks,
Fengguang
---

REPRODUCE LOG

wfg@inn ~/linux% /c/kernel-tests/reproduce-build 398c7500a 168309855 linus/master gcc-5 mips-jmr3927_defconfig arch/mips/vdso/gettimeofday.c
No patch removed
HEAD is now at 398c750 MIPS: VDSO: Fix build error with binutils 2.24 and earlier

=============== commit 398c7500a ===============
/home/wfg/linux
HEAD is now at 398c750... MIPS: VDSO: Fix build error with binutils 2.24 and earlier
/home/wfg/linux/obj-compiletest

make ARCH=mips jmr3927_defconfig
make ARCH=mips arch/mips/vdso/gettimeofday.o

!!! BUILD ERROR !!!
grep -a -F arch/mips/vdso/gettimeofday.c /tmp/build-err-398c7500a1f5f74e207bd2edca1b1721b3cc1f1e-wfg --color
../arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^

=============== PREV commit 74bf8efb5fa6e958d2d7c7917b8bb672085ec0c6 ===============
/home/wfg/linux
Previous HEAD position was 398c750... MIPS: VDSO: Fix build error with binutils 2.24 and earlier
HEAD is now at 74bf8ef... Linux 4.4-rc7
/home/wfg/linux/obj-compiletest

make ARCH=mips jmr3927_defconfig
make ARCH=mips arch/mips/vdso/gettimeofday.o

grep -a -F arch/mips/vdso/gettimeofday.c /tmp/build-err-74bf8efb5fa6e958d2d7c7917b8bb672085ec0c6-wfg --color

=============== linus/master linus/master ===============
/home/wfg/linux
Previous HEAD position was 74bf8ef... Linux 4.4-rc7
HEAD is now at ce1fad2... Merge branch 'keys-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs
/home/wfg/linux/obj-compiletest

make ARCH=mips jmr3927_defconfig
make ARCH=mips arch/mips/vdso/gettimeofday.o

!!! BUILD ERROR !!!
grep -a -F arch/mips/vdso/gettimeofday.c /tmp/build-err-ce1fad2740c648a4340f6f6c391a8a83769d2e8c-wfg --color

=============== linux-next linux-next/master ===============
/home/wfg/linux
Previous HEAD position was ce1fad2... Merge branch 'keys-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs
HEAD is now at 8ef79cd... Add linux-next specific files for 20160105
/home/wfg/linux/obj-compiletest

make ARCH=mips jmr3927_defconfig
make ARCH=mips arch/mips/vdso/gettimeofday.o

!!! BUILD ERROR !!!
grep -a -F arch/mips/vdso/gettimeofday.c /tmp/build-err-8ef79cd05e6894c01ab9b41aa918a402fa8022a7-wfg --color
<stdin>:1307:2: warning: #warning syscall copy_file_range not implemented [-Wcpp]
<stdin>:1307:2: warning: #warning syscall copy_file_range not implemented [-Wcpp]
../arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^

=============== HEAD commit 168309855 ===============
/home/wfg/linux
Previous HEAD position was 8ef79cd... Add linux-next specific files for 20160105
HEAD is now at 1683098... Linux 4.4-rc8
/home/wfg/linux/obj-compiletest

make ARCH=mips jmr3927_defconfig
make ARCH=mips arch/mips/vdso/gettimeofday.o

!!! BUILD ERROR !!!
grep -a -F arch/mips/vdso/gettimeofday.c /tmp/build-err-168309855a7d1e16db751e9c647119fe2d2dc878-wfg --color
../arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^

=============== NEW linus/master HEAD linus/master ===============
/home/wfg/linux
Previous HEAD position was 1683098... Linux 4.4-rc8
HEAD is now at ce1fad2... Merge branch 'keys-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs
/home/wfg/linux/obj-compiletest

make ARCH=mips jmr3927_defconfig
make ARCH=mips arch/mips/vdso/gettimeofday.o

!!! BUILD ERROR !!!
grep -a -F arch/mips/vdso/gettimeofday.c /tmp/build-err-ce1fad2740c648a4340f6f6c391a8a83769d2e8c-wfg --color

export ARCH=mips
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1302710 — Re: arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'

FromFengguang Wu <fengguang.wu@intel.com>
Date2016-01-06 13:10 +0100
SubjectRe: arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
Message-ID<qNV4C-Vs-11@gated-at.bofh.it>
In reply to#1302708
Hi Guenter,

> However I find that the latest mainline no longer has the error.
> So let's we ignore this error.
 
Oops, sorry that's not true -- I was testing rather old mainline HEAD.

Here is the new build log.

wfg@inn ~/linux% /c/kernel-tests/reproduce-build 398c7500a 168309855 linus/master gcc-5 mips-jmr3927_defconfig arch/mips/
No patch removed
HEAD is now at 398c750 MIPS: VDSO: Fix build error with binutils 2.24 and earlier

=============== commit 398c7500a ===============
/home/wfg/linux
HEAD is now at 398c750... MIPS: VDSO: Fix build error with binutils 2.24 and earlier
/home/wfg/linux/obj-compiletest

make ARCH=mips jmr3927_defconfig
make ARCH=mips arch/mips/

!!! BUILD ERROR !!!
make ARCH=mips M=arch/mips/

!!! BUILD ERROR !!!
grep -a -F arch/mips/ /tmp/build-err-398c7500a1f5f74e207bd2edca1b1721b3cc1f1e-wfg --color
../arch/mips/vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips/vdso/elf.o] Error 1
../arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips/vdso/gettimeofday.o] Error 1
../arch/mips/vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips/vdso/sigreturn.o] Error 1
make[3]: Target '__build' not remade because of errors.
make[2]: *** [arch/mips/vdso] Error 2
make[2]: Target '__build' not remade because of errors.
make[1]: *** [arch/mips/] Error 2
make: *** [sub-make] Error 2
../arch/mips//vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips//vdso/gettimeofday.o] Error 1
../arch/mips//vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips//vdso/elf.o] Error 1
../arch/mips//vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips//vdso/sigreturn.o] Error 1
make[3]: Target '__build' not remade because of errors.
make[2]: *** [arch/mips//vdso] Error 2
make[2]: Target '__build' not remade because of errors.
make[1]: *** [_module_arch/mips/] Error 2
make[1]: Target '_all' not remade because of errors.
make: *** [sub-make] Error 2

=============== PREV commit 74bf8efb5fa6e958d2d7c7917b8bb672085ec0c6 ===============
/home/wfg/linux
Previous HEAD position was 398c750... MIPS: VDSO: Fix build error with binutils 2.24 and earlier
HEAD is now at 74bf8ef... Linux 4.4-rc7
/home/wfg/linux/obj-compiletest

make ARCH=mips jmr3927_defconfig
make ARCH=mips arch/mips/

!!! BUILD ERROR !!!
make ARCH=mips M=arch/mips/

!!! BUILD ERROR !!!
grep -a -F arch/mips/ /tmp/build-err-74bf8efb5fa6e958d2d7c7917b8bb672085ec0c6-wfg --color
../arch/mips/vdso/Makefile:30: MIPS VDSO requires binutils >= 2.25
../arch/mips/vdso/Makefile:30: MIPS VDSO requires binutils >= 2.25
../arch/mips/vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips/vdso/sigreturn.o] Error 1
../arch/mips/vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips/vdso/elf.o] Error 1
make[3]: Target '__build' not remade because of errors.
make[2]: *** [arch/mips/vdso] Error 2
make[2]: Target '__build' not remade because of errors.
make[1]: *** [arch/mips/] Error 2
make: *** [sub-make] Error 2
../arch/mips//vdso/Makefile:30: MIPS VDSO requires binutils >= 2.25
../arch/mips//vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips//vdso/elf.o] Error 1
../arch/mips//vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips//vdso/sigreturn.o] Error 1
make[3]: Target '__build' not remade because of errors.
make[2]: *** [arch/mips//vdso] Error 2
make[2]: Target '__build' not remade because of errors.
make[1]: *** [_module_arch/mips/] Error 2
make[1]: Target '_all' not remade because of errors.
make: *** [sub-make] Error 2

=============== linus/master linus/master ===============
/home/wfg/linux
Previous HEAD position was 74bf8ef... Linux 4.4-rc7
HEAD is now at ee9a7d2... Merge tag 'trace-v4.4-rc4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
/home/wfg/linux/obj-compiletest

make ARCH=mips jmr3927_defconfig
make ARCH=mips arch/mips/

!!! BUILD ERROR !!!
make ARCH=mips M=arch/mips/

!!! BUILD ERROR !!!
grep -a -F arch/mips/ /tmp/build-err-ee9a7d2cb0cf1a1498478bc923d911f3d9c910ac-wfg --color
../arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips/vdso/gettimeofday.o] Error 1
../arch/mips/vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips/vdso/elf.o] Error 1
../arch/mips/vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips/vdso/sigreturn.o] Error 1
make[3]: Target '__build' not remade because of errors.
make[2]: *** [arch/mips/vdso] Error 2
make[2]: Target '__build' not remade because of errors.
make[1]: *** [arch/mips/] Error 2
make: *** [sub-make] Error 2
../arch/mips//vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips//vdso/gettimeofday.o] Error 1
../arch/mips//vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips//vdso/elf.o] Error 1
../arch/mips//vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips//vdso/sigreturn.o] Error 1
make[3]: Target '__build' not remade because of errors.
make[2]: *** [arch/mips//vdso] Error 2
make[2]: Target '__build' not remade because of errors.
make[1]: *** [_module_arch/mips/] Error 2
make[1]: Target '_all' not remade because of errors.
make: *** [sub-make] Error 2

=============== linux-next linux-next/master ===============
/home/wfg/linux
Previous HEAD position was ee9a7d2... Merge tag 'trace-v4.4-rc4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
HEAD is now at 8ef79cd... Add linux-next specific files for 20160105
/home/wfg/linux/obj-compiletest

make ARCH=mips jmr3927_defconfig
make ARCH=mips arch/mips/

!!! BUILD ERROR !!!
make ARCH=mips M=arch/mips/

!!! BUILD ERROR !!!
grep -a -F arch/mips/ /tmp/build-err-8ef79cd05e6894c01ab9b41aa918a402fa8022a7-wfg --color
<stdin>:1307:2: warning: #warning syscall copy_file_range not implemented [-Wcpp]
<stdin>:1307:2: warning: #warning syscall copy_file_range not implemented [-Wcpp]
../arch/mips/vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips/vdso/elf.o] Error 1
../arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips/vdso/gettimeofday.o] Error 1
../arch/mips/vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips/vdso/sigreturn.o] Error 1
make[3]: Target '__build' not remade because of errors.
make[2]: *** [arch/mips/vdso] Error 2
make[2]: Target '__build' not remade because of errors.
make[1]: *** [arch/mips/] Error 2
make: *** [sub-make] Error 2
../arch/mips//vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips//vdso/elf.o] Error 1
../arch/mips//vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
../arch/mips//vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips//vdso/gettimeofday.o] Error 1
make[3]: *** [arch/mips//vdso/sigreturn.o] Error 1
make[3]: Target '__build' not remade because of errors.
make[2]: *** [arch/mips//vdso] Error 2
make[2]: Target '__build' not remade because of errors.
make[1]: *** [_module_arch/mips/] Error 2
make[1]: Target '_all' not remade because of errors.
make: *** [sub-make] Error 2

=============== HEAD commit 168309855 ===============
/home/wfg/linux
Previous HEAD position was 8ef79cd... Add linux-next specific files for 20160105
HEAD is now at 1683098... Linux 4.4-rc8
/home/wfg/linux/obj-compiletest

make ARCH=mips jmr3927_defconfig
make ARCH=mips arch/mips/

!!! BUILD ERROR !!!
make ARCH=mips M=arch/mips/

!!! BUILD ERROR !!!
grep -a -F arch/mips/ /tmp/build-err-168309855a7d1e16db751e9c647119fe2d2dc878-wfg --color
../arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips/vdso/gettimeofday.o] Error 1
../arch/mips/vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips/vdso/elf.o] Error 1
../arch/mips/vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips/vdso/sigreturn.o] Error 1
make[3]: Target '__build' not remade because of errors.
make[2]: *** [arch/mips/vdso] Error 2
make[2]: Target '__build' not remade because of errors.
make[1]: *** [arch/mips/] Error 2
make: *** [sub-make] Error 2
../arch/mips//vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips//vdso/gettimeofday.o] Error 1
../arch/mips//vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips//vdso/elf.o] Error 1
../arch/mips//vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips//vdso/sigreturn.o] Error 1
make[3]: Target '__build' not remade because of errors.
make[2]: *** [arch/mips//vdso] Error 2
make[2]: Target '__build' not remade because of errors.
make[1]: *** [_module_arch/mips/] Error 2
make[1]: Target '_all' not remade because of errors.
make: *** [sub-make] Error 2

=============== NEW linus/master HEAD linus/master ===============
/home/wfg/linux
Previous HEAD position was 1683098... Linux 4.4-rc8
HEAD is now at ee9a7d2... Merge tag 'trace-v4.4-rc4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
/home/wfg/linux/obj-compiletest

make ARCH=mips jmr3927_defconfig
make ARCH=mips arch/mips/

!!! BUILD ERROR !!!
make ARCH=mips M=arch/mips/

!!! BUILD ERROR !!!
grep -a -F arch/mips/ /tmp/build-err-ee9a7d2cb0cf1a1498478bc923d911f3d9c910ac-wfg --color
../arch/mips/vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
../arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips/vdso/gettimeofday.o] Error 1
../arch/mips/vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips/vdso/sigreturn.o] Error 1
make[3]: *** [arch/mips/vdso/elf.o] Error 1
make[3]: Target '__build' not remade because of errors.
make[2]: *** [arch/mips/vdso] Error 2
make[2]: Target '__build' not remade because of errors.
make[1]: *** [arch/mips/] Error 2
make: *** [sub-make] Error 2
../arch/mips//vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
../arch/mips//vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
../arch/mips//vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
 /*
 ^
make[3]: *** [arch/mips//vdso/gettimeofday.o] Error 1
make[3]: *** [arch/mips//vdso/elf.o] Error 1
make[3]: *** [arch/mips//vdso/sigreturn.o] Error 1
make[3]: Target '__build' not remade because of errors.
make[2]: *** [arch/mips//vdso] Error 2
make[2]: Target '__build' not remade because of errors.
make[1]: *** [_module_arch/mips/] Error 2
make[1]: Target '_all' not remade because of errors.
make: *** [sub-make] Error 2

Thanks,
Fengguang
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1302711 — Re: [kbuild-all] arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'

FromFengguang Wu <fengguang.wu@intel.com>
Date2016-01-06 13:10 +0100
SubjectRe: [kbuild-all] arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
Message-ID<qNV4C-Vs-17@gated-at.bofh.it>
In reply to#1302710
On Wed, Jan 06, 2016 at 07:59:13PM +0800, Fengguang Wu wrote:
> Hi Guenter,
> 
> > However I find that the latest mainline no longer has the error.
> > So let's we ignore this error.
>  
> Oops, sorry that's not true -- I was testing rather old mainline HEAD.
> 
> Here is the new build log.
> 
> wfg@inn ~/linux% /c/kernel-tests/reproduce-build 398c7500a 168309855 linus/master gcc-5 mips-jmr3927_defconfig arch/mips/
> No patch removed
> HEAD is now at 398c750 MIPS: VDSO: Fix build error with binutils 2.24 and earlier
> 
> =============== commit 398c7500a ===============
> /home/wfg/linux
> HEAD is now at 398c750... MIPS: VDSO: Fix build error with binutils 2.24 and earlier
> /home/wfg/linux/obj-compiletest
> 
> make ARCH=mips jmr3927_defconfig
> make ARCH=mips arch/mips/
> 
> !!! BUILD ERROR !!!
> make ARCH=mips M=arch/mips/
> 
> !!! BUILD ERROR !!!
> grep -a -F arch/mips/ /tmp/build-err-398c7500a1f5f74e207bd2edca1b1721b3cc1f1e-wfg --color
> ../arch/mips/vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips/vdso/elf.o] Error 1
> ../arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'

As you may see, it's an old error and your commit merely triggered it
in one more place -- gettimeofday.

The error was initially introduced by

	commit c1fb442ade67fb41fa786dae1047c7c60df20bb2
	Author:     Alex Smith <alex.smith@imgtec.com>
	AuthorDate: Wed Oct 21 09:54:38 2015 +0100
	Commit:     Ralf Baechle <ralf@linux-mips.org>
	CommitDate: Mon Oct 26 09:50:09 2015 +0100

	    MIPS: Initial implementation of a VDSO

That patch's new commit id is ebb5e78cc63417a35254a791de66e1cc84f963cc

Thanks,
Fengguang

>  /*
>  ^
> make[3]: *** [arch/mips/vdso/gettimeofday.o] Error 1
> ../arch/mips/vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips/vdso/sigreturn.o] Error 1
> make[3]: Target '__build' not remade because of errors.
> make[2]: *** [arch/mips/vdso] Error 2
> make[2]: Target '__build' not remade because of errors.
> make[1]: *** [arch/mips/] Error 2
> make: *** [sub-make] Error 2
> ../arch/mips//vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips//vdso/gettimeofday.o] Error 1
> ../arch/mips//vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips//vdso/elf.o] Error 1
> ../arch/mips//vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips//vdso/sigreturn.o] Error 1
> make[3]: Target '__build' not remade because of errors.
> make[2]: *** [arch/mips//vdso] Error 2
> make[2]: Target '__build' not remade because of errors.
> make[1]: *** [_module_arch/mips/] Error 2
> make[1]: Target '_all' not remade because of errors.
> make: *** [sub-make] Error 2
> 
> =============== PREV commit 74bf8efb5fa6e958d2d7c7917b8bb672085ec0c6 ===============
> /home/wfg/linux
> Previous HEAD position was 398c750... MIPS: VDSO: Fix build error with binutils 2.24 and earlier
> HEAD is now at 74bf8ef... Linux 4.4-rc7
> /home/wfg/linux/obj-compiletest
> 
> make ARCH=mips jmr3927_defconfig
> make ARCH=mips arch/mips/
> 
> !!! BUILD ERROR !!!
> make ARCH=mips M=arch/mips/
> 
> !!! BUILD ERROR !!!
> grep -a -F arch/mips/ /tmp/build-err-74bf8efb5fa6e958d2d7c7917b8bb672085ec0c6-wfg --color
> ../arch/mips/vdso/Makefile:30: MIPS VDSO requires binutils >= 2.25
> ../arch/mips/vdso/Makefile:30: MIPS VDSO requires binutils >= 2.25
> ../arch/mips/vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips/vdso/sigreturn.o] Error 1
> ../arch/mips/vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips/vdso/elf.o] Error 1
> make[3]: Target '__build' not remade because of errors.
> make[2]: *** [arch/mips/vdso] Error 2
> make[2]: Target '__build' not remade because of errors.
> make[1]: *** [arch/mips/] Error 2
> make: *** [sub-make] Error 2
> ../arch/mips//vdso/Makefile:30: MIPS VDSO requires binutils >= 2.25
> ../arch/mips//vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips//vdso/elf.o] Error 1
> ../arch/mips//vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips//vdso/sigreturn.o] Error 1
> make[3]: Target '__build' not remade because of errors.
> make[2]: *** [arch/mips//vdso] Error 2
> make[2]: Target '__build' not remade because of errors.
> make[1]: *** [_module_arch/mips/] Error 2
> make[1]: Target '_all' not remade because of errors.
> make: *** [sub-make] Error 2
> 
> =============== linus/master linus/master ===============
> /home/wfg/linux
> Previous HEAD position was 74bf8ef... Linux 4.4-rc7
> HEAD is now at ee9a7d2... Merge tag 'trace-v4.4-rc4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
> /home/wfg/linux/obj-compiletest
> 
> make ARCH=mips jmr3927_defconfig
> make ARCH=mips arch/mips/
> 
> !!! BUILD ERROR !!!
> make ARCH=mips M=arch/mips/
> 
> !!! BUILD ERROR !!!
> grep -a -F arch/mips/ /tmp/build-err-ee9a7d2cb0cf1a1498478bc923d911f3d9c910ac-wfg --color
> ../arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips/vdso/gettimeofday.o] Error 1
> ../arch/mips/vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips/vdso/elf.o] Error 1
> ../arch/mips/vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips/vdso/sigreturn.o] Error 1
> make[3]: Target '__build' not remade because of errors.
> make[2]: *** [arch/mips/vdso] Error 2
> make[2]: Target '__build' not remade because of errors.
> make[1]: *** [arch/mips/] Error 2
> make: *** [sub-make] Error 2
> ../arch/mips//vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips//vdso/gettimeofday.o] Error 1
> ../arch/mips//vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips//vdso/elf.o] Error 1
> ../arch/mips//vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips//vdso/sigreturn.o] Error 1
> make[3]: Target '__build' not remade because of errors.
> make[2]: *** [arch/mips//vdso] Error 2
> make[2]: Target '__build' not remade because of errors.
> make[1]: *** [_module_arch/mips/] Error 2
> make[1]: Target '_all' not remade because of errors.
> make: *** [sub-make] Error 2
> 
> =============== linux-next linux-next/master ===============
> /home/wfg/linux
> Previous HEAD position was ee9a7d2... Merge tag 'trace-v4.4-rc4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
> HEAD is now at 8ef79cd... Add linux-next specific files for 20160105
> /home/wfg/linux/obj-compiletest
> 
> make ARCH=mips jmr3927_defconfig
> make ARCH=mips arch/mips/
> 
> !!! BUILD ERROR !!!
> make ARCH=mips M=arch/mips/
> 
> !!! BUILD ERROR !!!
> grep -a -F arch/mips/ /tmp/build-err-8ef79cd05e6894c01ab9b41aa918a402fa8022a7-wfg --color
> <stdin>:1307:2: warning: #warning syscall copy_file_range not implemented [-Wcpp]
> <stdin>:1307:2: warning: #warning syscall copy_file_range not implemented [-Wcpp]
> ../arch/mips/vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips/vdso/elf.o] Error 1
> ../arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips/vdso/gettimeofday.o] Error 1
> ../arch/mips/vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips/vdso/sigreturn.o] Error 1
> make[3]: Target '__build' not remade because of errors.
> make[2]: *** [arch/mips/vdso] Error 2
> make[2]: Target '__build' not remade because of errors.
> make[1]: *** [arch/mips/] Error 2
> make: *** [sub-make] Error 2
> ../arch/mips//vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips//vdso/elf.o] Error 1
> ../arch/mips//vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> ../arch/mips//vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips//vdso/gettimeofday.o] Error 1
> make[3]: *** [arch/mips//vdso/sigreturn.o] Error 1
> make[3]: Target '__build' not remade because of errors.
> make[2]: *** [arch/mips//vdso] Error 2
> make[2]: Target '__build' not remade because of errors.
> make[1]: *** [_module_arch/mips/] Error 2
> make[1]: Target '_all' not remade because of errors.
> make: *** [sub-make] Error 2
> 
> =============== HEAD commit 168309855 ===============
> /home/wfg/linux
> Previous HEAD position was 8ef79cd... Add linux-next specific files for 20160105
> HEAD is now at 1683098... Linux 4.4-rc8
> /home/wfg/linux/obj-compiletest
> 
> make ARCH=mips jmr3927_defconfig
> make ARCH=mips arch/mips/
> 
> !!! BUILD ERROR !!!
> make ARCH=mips M=arch/mips/
> 
> !!! BUILD ERROR !!!
> grep -a -F arch/mips/ /tmp/build-err-168309855a7d1e16db751e9c647119fe2d2dc878-wfg --color
> ../arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips/vdso/gettimeofday.o] Error 1
> ../arch/mips/vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips/vdso/elf.o] Error 1
> ../arch/mips/vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips/vdso/sigreturn.o] Error 1
> make[3]: Target '__build' not remade because of errors.
> make[2]: *** [arch/mips/vdso] Error 2
> make[2]: Target '__build' not remade because of errors.
> make[1]: *** [arch/mips/] Error 2
> make: *** [sub-make] Error 2
> ../arch/mips//vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips//vdso/gettimeofday.o] Error 1
> ../arch/mips//vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips//vdso/elf.o] Error 1
> ../arch/mips//vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips//vdso/sigreturn.o] Error 1
> make[3]: Target '__build' not remade because of errors.
> make[2]: *** [arch/mips//vdso] Error 2
> make[2]: Target '__build' not remade because of errors.
> make[1]: *** [_module_arch/mips/] Error 2
> make[1]: Target '_all' not remade because of errors.
> make: *** [sub-make] Error 2
> 
> =============== NEW linus/master HEAD linus/master ===============
> /home/wfg/linux
> Previous HEAD position was 1683098... Linux 4.4-rc8
> HEAD is now at ee9a7d2... Merge tag 'trace-v4.4-rc4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
> /home/wfg/linux/obj-compiletest
> 
> make ARCH=mips jmr3927_defconfig
> make ARCH=mips arch/mips/
> 
> !!! BUILD ERROR !!!
> make ARCH=mips M=arch/mips/
> 
> !!! BUILD ERROR !!!
> grep -a -F arch/mips/ /tmp/build-err-ee9a7d2cb0cf1a1498478bc923d911f3d9c910ac-wfg --color
> ../arch/mips/vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> ../arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips/vdso/gettimeofday.o] Error 1
> ../arch/mips/vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips/vdso/sigreturn.o] Error 1
> make[3]: *** [arch/mips/vdso/elf.o] Error 1
> make[3]: Target '__build' not remade because of errors.
> make[2]: *** [arch/mips/vdso] Error 2
> make[2]: Target '__build' not remade because of errors.
> make[1]: *** [arch/mips/] Error 2
> make: *** [sub-make] Error 2
> ../arch/mips//vdso/sigreturn.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> ../arch/mips//vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> ../arch/mips//vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'
>  /*
>  ^
> make[3]: *** [arch/mips//vdso/gettimeofday.o] Error 1
> make[3]: *** [arch/mips//vdso/elf.o] Error 1
> make[3]: *** [arch/mips//vdso/sigreturn.o] Error 1
> make[3]: Target '__build' not remade because of errors.
> make[2]: *** [arch/mips//vdso] Error 2
> make[2]: Target '__build' not remade because of errors.
> make[1]: *** [_module_arch/mips/] Error 2
> make[1]: Target '_all' not remade because of errors.
> make: *** [sub-make] Error 2
> 
> Thanks,
> Fengguang
> _______________________________________________
> kbuild-all mailing list
> kbuild-all@lists.01.org
> https://lists.01.org/mailman/listinfo/kbuild-all
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1301574 — Re: arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'

FromRalf Baechle <ralf@linux-mips.org>
Date2016-01-05 15:40 +0100
SubjectRe: arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'
Message-ID<qNAWf-43s-37@gated-at.bofh.it>
In reply to#1301551
On Tue, Jan 05, 2016 at 06:02:47AM -0800, Guenter Roeck wrote:

> Alternatively, what version of binutils does the mips cross compiler use ?

In theory any binutils >= 2.13 should work though I haven't tested versions
as old as that in a long time.

  Ralf
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web