Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Feb 2020 11:24:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        powerpc@FreeBSD.org
Subject:   [Bug 243865] games/openbor: fix build on powerpc* with clang
Message-ID:  <bug-243865-25139@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243865

            Bug ID: 243865
           Summary: games/openbor: fix build on powerpc* with clang
           Product: Ports & Packages
           Version: Latest
          Hardware: powerpc
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: jbeich@FreeBSD.org
          Reporter: pkubaj@FreeBSD.org
                CC: powerpc@FreeBSD.org
             Flags: maintainer-feedback?(jbeich@FreeBSD.org)
                CC: powerpc@FreeBSD.org
          Assignee: jbeich@FreeBSD.org

Created attachment 211339
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D211339&action=
=3Dedit
patch

Build on powerpc64 with clang fails with:
In file included from source/gfxlib/2xSaI.c:10:
source/gamelib/borendian.h:63:60: error: unsupported inline asm: input with
type 'int' matching output with type 'UInt16' (aka 'unsigned short')
    __asm__("rlwimi %0,%2,8,16,23" : "=3D&r" (result) : "0" (x >> 8), "r" (=
x));
                                            ~~~~~~         ^~~~~~
1 error generated.

This asm instruction is used on all powerpc*, not only on powerpc64.

Since Clang doesn't support it, switch to GCC.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-243865-25139>