From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752011AbdF1M7A (ORCPT ); Wed, 28 Jun 2017 08:59:00 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:36748 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751945AbdF1M6s (ORCPT ); Wed, 28 Jun 2017 08:58:48 -0400 Date: Wed, 28 Jun 2017 22:58:37 +1000 From: Nicholas Piggin To: Guenter Roeck Cc: Masahiro Yamada , "linux-kernel@vger.kernel.org" Subject: Re: Build failure in -next due to 'sh: thin archives fix linking' Message-ID: <20170628225837.25abba1e@roar.ozlabs.ibm.com> In-Reply-To: <77ef6224-28f6-d71d-29d8-74b41fa26f0b@roeck-us.net> References: <77ef6224-28f6-d71d-29d8-74b41fa26f0b@roeck-us.net> Organization: IBM X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 28 Jun 2017 05:38:50 -0700 Guenter Roeck wrote: > Hi, > > I see the following build error in -next when building sh:rts7751r2dplus_defconfig. > > sh4-linux-ld: arch/sh/kernel/vsyscall/vsyscall-dummy.o: compiled for a big endian system and target is little endian > sh4-linux-ld: arch/sh/kernel/vsyscall/vsyscall-dummy.o: uses instructions which are incompatible with instructions used in previous modules > sh4-linux-ld: failed to merge target specific data of file arch/sh/kernel/vsyscall/vsyscall-dummy.o > make[2]: *** [arch/sh/kernel/vsyscall/vsyscall-syms.o] Error 1 > > Bisect points to 'sh: thin archives fix linking' as the culprit. Bisect log is attached. > I tried with gcc 4.8.3 and 6.3.0, both built with buildroot for sh4eb. Thanks for the report. In arch/sh/kernel/vsyscall/Makefile, the line: cmd_syscall_syms = $(LD) -r -o $@ -R $< Can you try adding $(LDFLAGS), e.g. change it to: cmd_syscall_syms = $(LD) $(LDFLAGS) -r -o $@ -R $< Thanks, Nick