From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751899AbdF1OCU (ORCPT ); Wed, 28 Jun 2017 10:02:20 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:56802 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752218AbdF1OCF (ORCPT ); Wed, 28 Jun 2017 10:02:05 -0400 Subject: Re: Build failure in -next due to 'sh: thin archives fix linking' To: Nicholas Piggin Cc: Masahiro Yamada , "linux-kernel@vger.kernel.org" References: <77ef6224-28f6-d71d-29d8-74b41fa26f0b@roeck-us.net> <20170628225837.25abba1e@roar.ozlabs.ibm.com> From: Guenter Roeck Message-ID: <4a610d3a-76de-7fec-40dc-61ec5ef175ee@roeck-us.net> Date: Wed, 28 Jun 2017 07:02:02 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20170628225837.25abba1e@roar.ozlabs.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated_sender: linux@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: linux@roeck-us.net X-Authenticated-Sender: bh-25.webhostbox.net: linux@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/28/2017 05:58 AM, Nicholas Piggin wrote: > 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 $< > That fixes the problem (including the missing symbols seen after reverting the offending patch). Thanks, Guenter