Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-09 Thread Laurent Vivier
Le 10/11/2015 01:29, Michael Ellerman a écrit : > On Sat, 2015-11-07 at 12:35 +0100, Laurent Vivier wrote: >> Le 07/11/2015 00:24, Scott Wood a écrit : >>> On Fri, 2015-11-06 at 23:22 +0100, Laurent Vivier wrote: Le 06/11/2015 22:09, Scott Wood a écrit : > On Thu, 2015-11-05 at 12:47

Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-09 Thread Michael Ellerman
On Sat, 2015-11-07 at 12:35 +0100, Laurent Vivier wrote: > Le 07/11/2015 00:24, Scott Wood a écrit : > > On Fri, 2015-11-06 at 23:22 +0100, Laurent Vivier wrote: > > > Le 06/11/2015 22:09, Scott Wood a écrit : > > > > On Thu, 2015-11-05 at 12:47 +0100, Laurent Vivier wrote: > > > > > When I try to

Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-09 Thread Laurent Vivier
Le 10/11/2015 01:29, Michael Ellerman a écrit : > On Sat, 2015-11-07 at 12:35 +0100, Laurent Vivier wrote: >> Le 07/11/2015 00:24, Scott Wood a écrit : >>> On Fri, 2015-11-06 at 23:22 +0100, Laurent Vivier wrote: Le 06/11/2015 22:09, Scott Wood a écrit : > On Thu, 2015-11-05 at 12:47

Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-09 Thread Michael Ellerman
On Sat, 2015-11-07 at 12:35 +0100, Laurent Vivier wrote: > Le 07/11/2015 00:24, Scott Wood a écrit : > > On Fri, 2015-11-06 at 23:22 +0100, Laurent Vivier wrote: > > > Le 06/11/2015 22:09, Scott Wood a écrit : > > > > On Thu, 2015-11-05 at 12:47 +0100, Laurent Vivier wrote: > > > > > When I try to

Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-07 Thread Laurent Vivier
Le 07/11/2015 00:24, Scott Wood a écrit : > On Fri, 2015-11-06 at 23:22 +0100, Laurent Vivier wrote: >> Le 06/11/2015 22:09, Scott Wood a écrit : >>> On Thu, 2015-11-05 at 12:47 +0100, Laurent Vivier wrote: When I try to cross compile a ppc64 kernel, it generally fails on the VDSO

Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-07 Thread Laurent Vivier
Le 07/11/2015 00:12, Benjamin Herrenschmidt a écrit : > On Fri, 2015-11-06 at 15:09 -0600, Scott Wood wrote: >> On Thu, 2015-11-05 at 12:47 +0100, Laurent Vivier wrote: >>> When I try to cross compile a ppc64 kernel, it generally >>> fails on the VDSO stage. This is true for powerpc64 cross- >>>

Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-07 Thread Laurent Vivier
Le 07/11/2015 00:32, Segher Boessenkool a écrit : > On Fri, Nov 06, 2015 at 04:55:49PM -0600, Segher Boessenkool wrote: >> On Fri, Nov 06, 2015 at 03:09:40PM -0600, Scott Wood wrote: >>> Why is GCC building ppc64 object files but telling the linker --oformat >>> elf32- >>> powerpcle? Are

Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-07 Thread Laurent Vivier
Le 07/11/2015 00:32, Segher Boessenkool a écrit : > On Fri, Nov 06, 2015 at 04:55:49PM -0600, Segher Boessenkool wrote: >> On Fri, Nov 06, 2015 at 03:09:40PM -0600, Scott Wood wrote: >>> Why is GCC building ppc64 object files but telling the linker --oformat >>> elf32- >>> powerpcle? Are

Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-07 Thread Laurent Vivier
Le 07/11/2015 00:12, Benjamin Herrenschmidt a écrit : > On Fri, 2015-11-06 at 15:09 -0600, Scott Wood wrote: >> On Thu, 2015-11-05 at 12:47 +0100, Laurent Vivier wrote: >>> When I try to cross compile a ppc64 kernel, it generally >>> fails on the VDSO stage. This is true for powerpc64 cross- >>>

Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-07 Thread Laurent Vivier
Le 07/11/2015 00:24, Scott Wood a écrit : > On Fri, 2015-11-06 at 23:22 +0100, Laurent Vivier wrote: >> Le 06/11/2015 22:09, Scott Wood a écrit : >>> On Thu, 2015-11-05 at 12:47 +0100, Laurent Vivier wrote: When I try to cross compile a ppc64 kernel, it generally fails on the VDSO

Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-06 Thread Segher Boessenkool
On Fri, Nov 06, 2015 at 04:55:49PM -0600, Segher Boessenkool wrote: > On Fri, Nov 06, 2015 at 03:09:40PM -0600, Scott Wood wrote: > > Why is GCC building ppc64 object files but telling the linker --oformat > > elf32- > > powerpcle? Are different options somehow being passed to GCC in one case >

Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-06 Thread Scott Wood
On Fri, 2015-11-06 at 23:22 +0100, Laurent Vivier wrote: > Le 06/11/2015 22:09, Scott Wood a écrit : > > On Thu, 2015-11-05 at 12:47 +0100, Laurent Vivier wrote: > > > When I try to cross compile a ppc64 kernel, it generally > > > fails on the VDSO stage. This is true for powerpc64 cross- > > >

Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-06 Thread Benjamin Herrenschmidt
On Fri, 2015-11-06 at 15:09 -0600, Scott Wood wrote: > On Thu, 2015-11-05 at 12:47 +0100, Laurent Vivier wrote: > > When I try to cross compile a ppc64 kernel, it generally > > fails on the VDSO stage. This is true for powerpc64 cross- > > compiler, but also when I try to build a ppc64le kernel >

Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-06 Thread Segher Boessenkool
On Fri, Nov 06, 2015 at 03:09:40PM -0600, Scott Wood wrote: > Why is GCC building ppc64 object files but telling the linker --oformat elf32- > powerpcle? Are different options somehow being passed to GCC in one case > versus the other? This was changed for GCC 6 in ,

Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-06 Thread Laurent Vivier
Le 06/11/2015 22:09, Scott Wood a écrit : > On Thu, 2015-11-05 at 12:47 +0100, Laurent Vivier wrote: >> When I try to cross compile a ppc64 kernel, it generally >> fails on the VDSO stage. This is true for powerpc64 cross- >> compiler, but also when I try to build a ppc64le kernel >> on a ppc64

Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-06 Thread Scott Wood
On Thu, 2015-11-05 at 12:47 +0100, Laurent Vivier wrote: > When I try to cross compile a ppc64 kernel, it generally > fails on the VDSO stage. This is true for powerpc64 cross- > compiler, but also when I try to build a ppc64le kernel > on a ppc64 host. > > VDSO64L fails: > > VDSO64L

Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-06 Thread Segher Boessenkool
On Fri, Nov 06, 2015 at 03:09:40PM -0600, Scott Wood wrote: > Why is GCC building ppc64 object files but telling the linker --oformat elf32- > powerpcle? Are different options somehow being passed to GCC in one case > versus the other? This was changed for GCC 6 in ,

Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-06 Thread Scott Wood
On Fri, 2015-11-06 at 23:22 +0100, Laurent Vivier wrote: > Le 06/11/2015 22:09, Scott Wood a écrit : > > On Thu, 2015-11-05 at 12:47 +0100, Laurent Vivier wrote: > > > When I try to cross compile a ppc64 kernel, it generally > > > fails on the VDSO stage. This is true for powerpc64 cross- > > >

Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-06 Thread Benjamin Herrenschmidt
On Fri, 2015-11-06 at 15:09 -0600, Scott Wood wrote: > On Thu, 2015-11-05 at 12:47 +0100, Laurent Vivier wrote: > > When I try to cross compile a ppc64 kernel, it generally > > fails on the VDSO stage. This is true for powerpc64 cross- > > compiler, but also when I try to build a ppc64le kernel >

Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-06 Thread Segher Boessenkool
On Fri, Nov 06, 2015 at 04:55:49PM -0600, Segher Boessenkool wrote: > On Fri, Nov 06, 2015 at 03:09:40PM -0600, Scott Wood wrote: > > Why is GCC building ppc64 object files but telling the linker --oformat > > elf32- > > powerpcle? Are different options somehow being passed to GCC in one case >

Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-06 Thread Scott Wood
On Thu, 2015-11-05 at 12:47 +0100, Laurent Vivier wrote: > When I try to cross compile a ppc64 kernel, it generally > fails on the VDSO stage. This is true for powerpc64 cross- > compiler, but also when I try to build a ppc64le kernel > on a ppc64 host. > > VDSO64L fails: > > VDSO64L

Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-06 Thread Laurent Vivier
Le 06/11/2015 22:09, Scott Wood a écrit : > On Thu, 2015-11-05 at 12:47 +0100, Laurent Vivier wrote: >> When I try to cross compile a ppc64 kernel, it generally >> fails on the VDSO stage. This is true for powerpc64 cross- >> compiler, but also when I try to build a ppc64le kernel >> on a ppc64

[PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-05 Thread Laurent Vivier
When I try to cross compile a ppc64 kernel, it generally fails on the VDSO stage. This is true for powerpc64 cross- compiler, but also when I try to build a ppc64le kernel on a ppc64 host. VDSO64L fails: VDSO64L arch/powerpc/kernel/vdso64/vdso64.so.dbg /usr/bin/powerpc64-linux-gnu-ld:

[PATCH] powerpc: allow cross-compilation of ppc64 kernel

2015-11-05 Thread Laurent Vivier
When I try to cross compile a ppc64 kernel, it generally fails on the VDSO stage. This is true for powerpc64 cross- compiler, but also when I try to build a ppc64le kernel on a ppc64 host. VDSO64L fails: VDSO64L arch/powerpc/kernel/vdso64/vdso64.so.dbg /usr/bin/powerpc64-linux-gnu-ld: