Re: ci.freebsd.org: powerpcspe build failing due to linker error in assembly code

From: luporl <luporl_at_freebsd.org>
Date: Tue, 21 May 2019 10:22:15 -0300
It seems the break was caused by this part of the change:

Index: stand/powerpc/kboot/Makefile
===================================================================
--- stand/powerpc/kboot/Makefile (revision 348004)
+++ stand/powerpc/kboot/Makefile (revision 348005)
_at__at_ -36,9 +36,6 _at__at_

 LDFLAGS= -nostdlib -static -T ${.CURDIR}/ldscript.powerpc

-# 64-bit bridge extensions
-CFLAGS+= -Wa,-mppc64bridge
-
 DPADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA}
 LDADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA}

The integrated assembler of clang doesn't support the -mppc64bridge option,
that is why it was removed.

Fortunately, Justin noticed that kboot is only made for powerpc64 systems
and fixed this in r348028.

Cheers,
-Leandro

On Mon, May 20, 2019 at 10:00 PM Ian Lepore <ian_at_freebsd.org> wrote:

> On Mon, 2019-05-20 at 17:54 -0700, Enji Cooper wrote:
> > Hi,
> >       The following build issue has been cropping up over the past 6
> hours. From
> https://ci.freebsd.org/job/FreeBSD-head-powerpcspe-build/11154/console :
> >
> > 12:49:01 /usr/src/stand/powerpc/kboot/kerneltramp.S: Assembler messages:
> > 12:49:01 /usr/src/stand/powerpc/kboot/kerneltramp.S:88: Error:
> Unrecognized opcode: `rldicr'
> > 12:49:01 /usr/src/stand/powerpc/kboot/kerneltramp.S:96: Error:
> Unrecognized opcode: `rfid'
> >
> >       This code hasn’t changed for some time. I’m not sure what
> > triggered the issue, but I suspect it has to deal with an external
> > [toolchain] change.
> > Cheers!
> > -Enji
>
>
> r347992 seems like a good candidate.
>
> -- Ian
>
>
Received on Tue May 21 2019 - 11:22:28 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:20 UTC