Re: powerpc cross compiler issue
From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2016-05-31 04:20:19
On Tue, 2016-05-31 at 09:48 +1000, oliver wrote:
On Thu, May 26, 2016 at 9:29 PM, Safa Hamza [off-list ref] wrote:
quoted
thanks for replying, I tried a powerpc cross compiler from the list you have send but I always got this error VDSO32L arch/powerpc/kernel/vdso32/vdso32.so.dbg /home/marwa/Bureau/lauterbach/powerpc/gcc-4.6.3-nolibc/powerpc64-linux/bin/../lib/gcc/powerpc64-linux/4.6.3/../../../../powerpc64-linux/bin/ld: arch/powerpc/kernel/vdso32/note.o: compiled for a little endian system and target is big endian /home/marwa/Bureau/lauterbach/powerpc/gcc-4.6.3-nolibc/powerpc64-linux/bin/../lib/gcc/powerpc64-linux/4.6.3/../../../../powerpc64-linux/bin/ld: failed to merge target specific data of file arch/powerpc/kernel/vdso32/note.o collect2: ld returned 1 exit status make[2]: *** [arch/powerpc/kernel/vdso32/vdso32.so.dbg] Erreur 1 make[1]: *** [arch/powerpc/kernel/vdso32] Erreur 2 make: *** [arch/powerpc/kernel] Erreur 2This kind of error is usually caused by building for one endianess then changing endianness in the kernel configuration. The build system isn't smart enough to realise that it needs to recompile the VDSO when this happens so you'll get linker errors unless you clean the build directory with `make mrproper` or similar. We should probably fix that.
We should: https://github.com/linuxppc/linux/issues/30 cheers