From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753652AbbKWMpc (ORCPT ); Mon, 23 Nov 2015 07:45:32 -0500 Received: from mga01.intel.com ([192.55.52.88]:15970 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753607AbbKWMp3 (ORCPT ); Mon, 23 Nov 2015 07:45:29 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,337,1444719600"; d="scan'208";a="827098349" Date: Mon, 23 Nov 2015 20:45:18 +0800 From: Fengguang Wu To: Michael Ellerman Cc: Anton Blanchard , kbuild-all@01.org, linux-kernel@vger.kernel.org Subject: Re: collect2: error: ld returned 1 exit status Message-ID: <20151123124518.GA22401@wfg-t540p.sh.intel.com> References: <201511220951.EHLYd8lw%fengguang.wu@intel.com> <1448272493.3452.4.camel@ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1448272493.3452.4.camel@ellerman.id.au> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michael, On Mon, Nov 23, 2015 at 08:54:53PM +1100, Michael Ellerman wrote: > On Sun, 2015-11-22 at 09:05 +0800, kbuild test robot wrote: > > > Hi Anton, > > > > FYI, the error/warning still remains. > > ... > > > /usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: arch/powerpc/kernel/vdso64/sigtramp.o: file class ELFCLASS64 incompatible with ELFCLASS32 > > /usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: final link failed: File in wrong format > > > > collect2: error: ld returned 1 exit status > > Hi Fengguang, > > How new is your GCC? This looks like a bug that was fixed recently (September) in GCC: > > https://github.com/gcc-mirror/gcc/commit/0012c439035bc1d5843e5c8e72c6c5fad357d389 I'm using Debian's cross gcc 5.2.1: gcc-powerpc64le-linux-gnu 5.2.1-14+really5.2.1-13 It may take some time for debian to catchup up with the newer version. Thanks, Fengguang