[Bug 243865] games/openbor: fix build on powerpc* with clang

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Feb 4 11:24:05 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243865

            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 at FreeBSD.org
          Reporter: pkubaj at FreeBSD.org
                CC: powerpc at FreeBSD.org
             Flags: maintainer-feedback?(jbeich at FreeBSD.org)
                CC: powerpc at FreeBSD.org
          Assignee: jbeich at FreeBSD.org

Created attachment 211339
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=211339&action=edit
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" : "=&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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list