From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965139AbcHDSjk (ORCPT ); Thu, 4 Aug 2016 14:39:40 -0400 Received: from 216-12-86-13.cv.mvl.ntelos.net ([216.12.86.13]:59582 "EHLO brightrain.aerifal.cx" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753644AbcHDSjj (ORCPT ); Thu, 4 Aug 2016 14:39:39 -0400 Date: Thu, 4 Aug 2016 14:38:48 -0400 From: Rich Felker To: Guenter Roeck Cc: "linux-kernel@vger.kernel.org" , Linux-sh list Subject: Re: Build error in -next due to 'sh: add working futex atomic ops on userspace addresses for smp' Message-ID: <20160804183848.GK15995@brightrain.aerifal.cx> References: <57A2C843.6060108@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57A2C843.6060108@roeck-us.net> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 03, 2016 at 09:44:51PM -0700, Guenter Roeck wrote: > Hi, > > I see the following build error in -next when building sh:shx3_defconfig. > > {standard input}: Assembler messages: > {standard input}:177: Error: unknown opcode > {standard input}:7760: Error: unknown opcode > > {standard input}:163: Error: displacement to defined symbol .L24 overflows 8-bit field > {standard input}:6826: Error: displacement to defined symbol .L1409 overflows 12-bit field > {standard input}:7051: Error: displacement to defined symbol .L1469 overflows 12-bit field > [many more of those] > > {standard input}:148: Error: pcrel too far > {standard input}:7549: Error: negative offset > [several more of those] > > This is seen when building kernel/futex.o. > > I initially thought that the problem was due to an old compiler/toolchain, > but using a new toolchain did not help. > > Toolchain: > sh4-linux-gcc.br_real (Buildroot 2016.05) 5.3.0 > GNU ld (GNU Binutils) 2.26.20160125 > > When using gcc 4.6.3 (from the kernel.org toolchain), the error is reported as: > > {standard input}: Assembler messages: > {standard input}:318: Error: unknown opcode > {standard input}:7282: Error: unknown opcode > > Bisect (for both toolchains) points to 'sh: add working futex atomic ops on userspace > addresses for smp' as the culprit. Bisect log is attached. Thanks! It's just a missing "\n\t" after the "synco" before the #ifdef CONFIG_MMU that caused the .section on the next line to get concatenated with the synco. I'll fix it now. Glad you caught it. Rich