Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1264816
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Laurent Vivier <laurent@vivier.eu> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel |
| Date | Sat, 07 Nov 2015 12:40:02 +0100 |
| Message-ID | <qsa0G-1Go-31@gated-at.bofh.it> (permalink) |
| References | <qrrdg-64e-31@gated-at.bofh.it> <qrWAq-1tw-7@gated-at.bofh.it> <qrYsx-2Hd-7@gated-at.bofh.it> |
| X-Original-To | Benjamin Herrenschmidt <benh@kernel.crashing.org>, Scott Wood <scottwood@freescale.com> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| X-Provags-ID | V03:K0:LK6O1k1GDViJDRTTYZM98xTLAJuKkhH1IFscDYIeci41oZ9cEKc 79NShZJkwXvri2kJDFMalXPiaVFn67IyjYC/2HZla8NCQlgDI1yi+Y8HvhW6tCtcEMA8RxG 0+oFKNQjA+WTlqwZHc/pJm+B4EuS/VxCRekYVQdAQ9UMvU9lUOIxwtHsi5oQVAG580Fpmvb 1+B9Vs/S8pukG8SDKmQ1w== |
| X-Ui-Out-Filterresults | notjunk:1;V01:K0:eLDiOfDuiZc=:mbfXWSjWxGyEDma2STR/bk +bOnF3hOjt/W0qSpTRgYRmjWeCMrIlEXMqHkUok17Ytc1FQTKnkfIO8Tf/KAx72rA9GC+zKL0 pdCReJkgKzMdS0snoYGfCuQdR5QTxmClNW+YAS9CAu6jky4umjFM0AHkq8x7ROe7+yKRARGe/ lZAlVro6Ylk6r8bBmfKiQstMm15p4Om/WRfem0i8lWfF/miFsok9M2JuIFZoTIoz4loKF3c80 9Cy998Y0/KEslm7rQWqiZ0fKY3JBwVnEdOIJKbzc4RB12nCbI+tL5E71Z1fu5AJZbkRtbTZKk Srmzoi+s3oBw3Wu2jNGfLAcJAXrHt7BOM4uC9IbZVI3P1rLiPsFUlY1UfKcPpfLn6lspTmxoL bFIb68hDm6pqBiz2eo1vLMpsgvJ8KGHjagnZuz/fDVxjwSltRSOH5+b2eSGGbj1AfG6isjI9W 2zvPmugccY+hOd7JfLfFzTZUahWKFhp4VwokP9JlqRMLgIUwGm7fYA14h/rYzgaY870yheoSq IJ/HoigsdIotJUpvn2hIp5UKWZgLguFo9E5rTMOTCWOuAgBCBXlFWouM5+whKO9/9GvtmEa+Z X5Q8t87A5IcgWUgm1MNF/D15/eC7DhXUFJiPIFYizLfSBaUS/dtbVN0z/0ClB8C1lyZAI4k4y TQzuUecuERwTQJLSvarRlNEvQ9/r9ul651cuF8hla8rUomCM5GGDadr0CQpgO5z+ictqKvOoQ Ipc/uhj9wid1kC3y |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 40 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | paulus@samba.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org |
| X-Original-Date | Sat, 7 Nov 2015 12:34:11 +0100 |
| X-Original-Message-ID | <563DE1B3.4060402@vivier.eu> |
| X-Original-References | <1446724029-10884-1-git-send-email-laurent@vivier.eu> <1446844180.11597.13.camel@freescale.com> <1446851564.14282.40.camel@kernel.crashing.org> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1264816 |
Show key headers only | View raw
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- >>> 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: >>> arch/powerpc/kernel/vdso64/sigtramp.o: >>> file class ELFCLASS64 incompatible with ELFCLASS32 >>> /usr/bin/powerpc64-linux-gnu-ld: final link failed: File in wrong >>> format >>> >>> This fails because gcc calls "collect2" with >>> "--oformat elf32-powerpcle" with ppc64 objects, without the >>> "--oformat" ld works well because it use the format of the >>> first object as output format. >>> >>> As this case is correctly managed to build the other kernel >>> objects, this patch replaces $(GCC) by $(LD) to generate the >>> VDSO objects. > > This is LE ? I think that's a bug in binutils or gcc ... I remember we > fought that a while ago for the openpower builds. It might have been > fixed in upstream toolchain. Yes, Segher has given me the commit id. It is just what I need. Laurent -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] powerpc: allow cross-compilation of ppc64 kernel Laurent Vivier <laurent@vivier.eu> - 2015-11-05 12:50 +0100
Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel Scott Wood <scottwood@freescale.com> - 2015-11-06 22:20 +0100
Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel Laurent Vivier <laurent@vivier.eu> - 2015-11-06 23:30 +0100
Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel Scott Wood <scottwood@freescale.com> - 2015-11-07 00:30 +0100
Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel Laurent Vivier <laurent@vivier.eu> - 2015-11-07 12:40 +0100
Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel Michael Ellerman <mpe@ellerman.id.au> - 2015-11-10 01:30 +0100
Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel Laurent Vivier <laurent@vivier.eu> - 2015-11-10 09:00 +0100
Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel Segher Boessenkool <segher@kernel.crashing.org> - 2015-11-07 00:00 +0100
Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel Segher Boessenkool <segher@kernel.crashing.org> - 2015-11-07 00:40 +0100
Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel Laurent Vivier <laurent@vivier.eu> - 2015-11-07 12:40 +0100
Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel Benjamin Herrenschmidt <benh@kernel.crashing.org> - 2015-11-07 00:20 +0100
Re: [PATCH] powerpc: allow cross-compilation of ppc64 kernel Laurent Vivier <laurent@vivier.eu> - 2015-11-07 12:40 +0100
csiph-web