Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S945432AbcJSPh5 (ORCPT ); Wed, 19 Oct 2016 11:37:57 -0400 Received: from ud10.udmedia.de ([194.117.254.50]:49035 "EHLO mail.ud10.udmedia.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S944193AbcJSPhv (ORCPT ); Wed, 19 Oct 2016 11:37:51 -0400 Date: Wed, 19 Oct 2016 17:37:46 +0200 From: Markus Trippelsdorf To: Will Deacon Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, peterz@infradead.org, mingo@kernel.org, ard.biesheuvel@linaro.org, james.greenhalgh@arm.com, gregory.clement@free-electrons.com, sboyd@codeaurora.org Subject: Re: Build failure with v4.9-rc1 and GCC trunk -- compiler weirdness Message-ID: <20161019153746.GA4411@x4> References: <20161017183806.GG5601@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161017183806.GG5601@arm.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 885 Lines: 28 On 2016.10.17 at 19:38 +0100, Will Deacon wrote: > Hi all, > > I'm seeing an arm64 build failure with -rc1 and GCC trunk, although I > believe that the new compiler behaviour at the heart of the problem > has the potential to affect other architectures and other pieces of > kernel code relying on dead-code elimination to remove deliberately > undefined functions. > > The failure looks like: > > | drivers/built-in.o: In function `armada_3700_add_composite_clk': > | > | linux/drivers/clk/mvebu/armada-37xx-periph.c:351: > | undefined reference to `____ilog2_NaN' > | > | linux/drivers/clk/mvebu/armada-37xx-periph.c:351:(.text+0xc72e0): > | relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol > | `____ilog2_NaN' > | > | make: *** [vmlinux] Error 1 > This is a gcc bug, see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72785 -- Markus