* collect2: error: ld returned 1 exit status
@ 2015-11-22 1:05 kbuild test robot
2015-11-23 9:54 ` Michael Ellerman
0 siblings, 1 reply; 4+ messages in thread
From: kbuild test robot @ 2015-11-22 1:05 UTC (permalink / raw)
To: Anton Blanchard; +Cc: kbuild-all, linux-kernel, Michael Ellerman
[-- Attachment #1: Type: text/plain, Size: 5384 bytes --]
Hi Anton,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 707b4f493e77638387f29d5ea35e383c418e710d
commit: 238abecde8ad43f914e095fcf23e0bd35dc7a7f2 powerpc: Don't use gcc specific options on clang
date: 5 months ago
config: powerpc-allmodconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 238abecde8ad43f914e095fcf23e0bd35dc7a7f2
# save the attached .config to linux build tree
make.cross ARCH=powerpc
All errors (new ones prefixed by >>):
/usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: arch/powerpc/kernel/vdso32/sigtramp.o: compiled for a little endian system and target is big endian
/usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: failed to merge target specific data of file arch/powerpc/kernel/vdso32/sigtramp.o
/usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: arch/powerpc/kernel/vdso32/gettimeofday.o: compiled for a little endian system and target is big endian
/usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: failed to merge target specific data of file arch/powerpc/kernel/vdso32/gettimeofday.o
/usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: arch/powerpc/kernel/vdso32/datapage.o: compiled for a little endian system and target is big endian
/usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: failed to merge target specific data of file arch/powerpc/kernel/vdso32/datapage.o
/usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: arch/powerpc/kernel/vdso32/cacheflush.o: compiled for a little endian system and target is big endian
/usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: failed to merge target specific data of file arch/powerpc/kernel/vdso32/cacheflush.o
/usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: arch/powerpc/kernel/vdso32/note.o: compiled for a little endian system and target is big endian
/usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: failed to merge target specific data of file arch/powerpc/kernel/vdso32/note.o
/usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: arch/powerpc/kernel/vdso32/getcpu.o: compiled for a little endian system and target is big endian
/usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: failed to merge target specific data of file arch/powerpc/kernel/vdso32/getcpu.o
/usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: .eh_frame_hdr table[0] FDE at 00000000000004c4 overlaps table[1] FDE at 0000000000000c30.
/usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: .eh_frame_hdr table[1] FDE at 0000000000000c30 overlaps table[2] FDE at 0000000000000c88.
/usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: .eh_frame_hdr table[2] FDE at 0000000000000c88 overlaps table[3] FDE at 0000000000000ca0.
/usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: .eh_frame_hdr table[3] FDE at 0000000000000ca0 overlaps table[4] FDE at 0000000000000cb8.
/usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: .eh_frame_hdr table[4] FDE at 0000000000000cb8 overlaps table[5] FDE at 0000000000000cd0.
/usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: .eh_frame_hdr table[5] FDE at 0000000000000cd0 overlaps table[6] FDE at 0000000000000864.
/usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: .eh_frame_hdr table[7] FDE at 0000000000000c48 overlaps table[8] FDE at 0000000000000c5c.
/usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: .eh_frame_hdr table[8] FDE at 0000000000000c5c overlaps table[9] FDE at 0000000000000c18.
/usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: .eh_frame_hdr table[9] FDE at 0000000000000c18 overlaps table[10] FDE at 0000000000000c74.
/usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: .eh_frame_hdr table[10] FDE at 0000000000000c74 overlaps table[11] FDE at 0000000000000ce8.
/usr/lib/gcc-cross/powerpc64le-linux-gnu/5/../../../../powerpc64le-linux-gnu/bin/ld: .eh_frame_hdr table[11] FDE at 0000000000000ce8 overlaps table[12] FDE at 0000000000000cfc.
>> collect2: error: ld returned 1 exit status
--
/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
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 44424 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: collect2: error: ld returned 1 exit status
2015-11-22 1:05 collect2: error: ld returned 1 exit status kbuild test robot
@ 2015-11-23 9:54 ` Michael Ellerman
2015-11-23 12:45 ` Fengguang Wu
0 siblings, 1 reply; 4+ messages in thread
From: Michael Ellerman @ 2015-11-23 9:54 UTC (permalink / raw)
To: kbuild test robot, Anton Blanchard; +Cc: kbuild-all, linux-kernel
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
cheers
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: collect2: error: ld returned 1 exit status
2015-11-23 9:54 ` Michael Ellerman
@ 2015-11-23 12:45 ` Fengguang Wu
2015-11-24 20:05 ` Breno Leitao
0 siblings, 1 reply; 4+ messages in thread
From: Fengguang Wu @ 2015-11-23 12:45 UTC (permalink / raw)
To: Michael Ellerman; +Cc: Anton Blanchard, kbuild-all, linux-kernel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: collect2: error: ld returned 1 exit status
2015-11-23 12:45 ` Fengguang Wu
@ 2015-11-24 20:05 ` Breno Leitao
0 siblings, 0 replies; 4+ messages in thread
From: Breno Leitao @ 2015-11-24 20:05 UTC (permalink / raw)
To: Fengguang Wu; +Cc: Michael Ellerman, Anton Blanchard, kbuild-all, linux-kernel
Hi Fengguang,
On 11/23/2015 10:45 AM, Fengguang Wu wrote:
> 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.
I already opened a Debian bug to track the backport of this fix into
Debian's GCC 5.2.1.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=806160
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-11-24 20:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-22 1:05 collect2: error: ld returned 1 exit status kbuild test robot
2015-11-23 9:54 ` Michael Ellerman
2015-11-23 12:45 ` Fengguang Wu
2015-11-24 20:05 ` Breno Leitao
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.