Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751948AbdIMStD (ORCPT ); Wed, 13 Sep 2017 14:49:03 -0400 Received: from mail-pg0-f48.google.com ([74.125.83.48]:43049 "EHLO mail-pg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751148AbdIMStC (ORCPT ); Wed, 13 Sep 2017 14:49:02 -0400 X-Google-Smtp-Source: ADKCNb4qdRmoZkVeLWBqPZo8i3A4ENBgSpx4Ci1152jQD2DL9UdGfII7pxWtjtLtHJ3fFaNLzJtgMg== Date: Wed, 13 Sep 2017 11:49:00 -0700 From: Guenter Roeck To: Max Filippov Cc: Byungchul Park , Peter Zijlstra , LKML , Chris Zankel , "linux-xtensa@linux-xtensa.org" Subject: Re: xtensa compiler error triggered by 'locking/lockdep: Implement the 'crossrelease' feature' Message-ID: <20170913184900.GA2385@roeck-us.net> References: <20170910183150.GA2172@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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: 1371 Lines: 32 On Mon, Sep 11, 2017 at 08:19:46PM -0700, Max Filippov wrote: > On Sun, Sep 10, 2017 at 6:58 PM, Max Filippov wrote: > > On Sun, Sep 10, 2017 at 11:31 AM, Guenter Roeck wrote: > >> xtensa:allmodconfig fails to build in mainline with compiler errors > >> as follows. > >> > >> drivers/staging/rtl8723bs/core/rtw_ap.c: In function ‘expire_timeout_chk’: > >> drivers/staging/rtl8723bs/core/rtw_ap.c:442:1: internal compiler error: > >> in change_address_1, at emit-rtl.c:2126 > >> > >> drivers/staging/rtl8188eu/core/rtw_ap.c: In function ‘expire_timeout_chk’: > >> drivers/staging/rtl8188eu/core/rtw_ap.c:445:1: internal compiler error: > >> in change_address_1, at emit-rtl.c:2150 > >> > >> I tried gcc 6.3, 6.4, and 7.2; they all have the same problem. > >> > >> Bisect points to commit b09be676e0f ("locking/lockdep: Implement the > >> 'crossrelease' feature"). > >> > >> The compile error is still seen if I disable CONFIG_LOCKDEP_CROSSRELEASE. > >> The image builds fine if I disable both CONFIG_RTL8723BS and CONFIG_R8188EU. > > > > Thanks for the report. I'll look at the compiler. > > There was a bug in the xtensa gcc backend, now fixed. See > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82181 > xtensa:allmodconfig builds fine with patched gcc-7.2.0. Thanks a lot for the quick fix! Guenter