Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932790AbcDTOC7 (ORCPT ); Wed, 20 Apr 2016 10:02:59 -0400 Received: from eddie.linux-mips.org ([148.251.95.138]:40368 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754541AbcDTOC5 (ORCPT ); Wed, 20 Apr 2016 10:02:57 -0400 Date: Wed, 20 Apr 2016 15:30:21 +0200 From: Ralf Baechle To: kbuild test robot Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, Paul Burton Subject: Re: mipsel-linux-gnu-gcc: error: unrecognized command line option '-mcompact-branches=optimal' Message-ID: <20160420133021.GG24051@linux-mips.org> References: <201604201320.YHjfc2dZ%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201604201320.YHjfc2dZ%fengguang.wu@intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1479 Lines: 30 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. Ralf