mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: Fengguang Wu <fengguang.wu@intel.com>
Cc: kbuild-all@01.org, Paul Burton <paul.burton@imgtec.com>,
	linux-kernel@vger.kernel.org, Philip Li <philip.li@intel.com>
Subject: Re: [kbuild-all] mipsel-linux-gnu-gcc: error: unrecognized command line option '-mcompact-branches=optimal'
Date: Thu, 21 Apr 2016 22:31:35 +0200	[thread overview]
Message-ID: <20160421203135.GJ24051@linux-mips.org> (raw)
In-Reply-To: <20160421045129.GB4038@wfg-t540p.sh.intel.com>

On Thu, Apr 21, 2016 at 12:51:29PM +0800, Fengguang Wu wrote:

> On Wed, Apr 20, 2016 at 03:30:21PM +0200, Ralf Baechle wrote:
> > On Wed, Apr 20, 2016 at 01:44:28PM +0800, kbuild test robot wrote:
> > 
> > > FYI, the error/warning still remains.
> > > 
> > > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > > head:   12566cc35d0e68308bde7aad615743d560cb097b
> > > commit: c1a0e9bc885d46e519fd87d35af6a7937abfb986 MIPS: Allow compact branch policy to be changed
> > > date:   6 months ago
> > > config: mips-malta_qemu_32r6_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 c1a0e9bc885d46e519fd87d35af6a7937abfb986
> > >         # save the attached .config to linux build tree
> > >         make.cross ARCH=mips 
> > > 
> > > All errors (new ones prefixed by >>):
> > > 
> > > >> mipsel-linux-gnu-gcc: error: unrecognized command line option '-mcompact-branches=optimal'
> > > >> mipsel-linux-gnu-gcc: error: unrecognized command line option '-mcompact-branches=optimal'
> > 
> > -mcompact-branches=optimal is an option for the latest version of the MIPS
> > architecture which is enabled by mips-malta_qemu_32r6_defconfig but your
> > compiler is too old, doesn't support R6.  Unfortunately there's no simple
> > way to run a test on the build environment from kconfig or even before
> > kconfig runs so we've just ignord this particular build issue.  Plus
> > there being the additional issue that we only know the toolchain to be
> > used after certain options have been picked.
> 
> We are running Debian's mips cross compiler.
> 
> % mips-linux-gnu-gcc --version
> mips-linux-gnu-gcc (Debian 5.2.1-16) 5.2.1 20150903
> Copyright (C) 2015 Free Software Foundation, Inc.
> 
> How about temporarily disable that error, until we upgrade to a new
> gcc version which supports the -mcompact-branches option?

Let's try to sort this properly :)

The culprit seems to be commit c1a0e9bc885d46e519fd87d35af6a7937abfb986
("MIPS: Allow compact branch policy to be changed").  Paul, any reason
why we don't offer the option of not using -mcompact-branches?  It seems
GCC 5.2 needs that.

  Ralf

      parent reply	other threads:[~2016-04-21 20:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-20  5:44 kbuild test robot
2016-04-20 13:30 ` Ralf Baechle
2016-04-21  4:51   ` [kbuild-all] " Fengguang Wu
2016-04-21 19:55     ` Maciej W. Rozycki
2016-04-21 20:34       ` Ralf Baechle
2016-04-21 21:10         ` Maciej W. Rozycki
2016-04-22  8:54           ` Paul Burton
2016-04-22 15:48             ` Maciej W. Rozycki
2016-04-21 20:31     ` Ralf Baechle [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160421203135.GJ24051@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=fengguang.wu@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paul.burton@imgtec.com \
    --cc=philip.li@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome