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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/