[Bug 243865] games/openbor: fix build on powerpc* with clang
| Newsgroups | gmane.os.freebsd.devel.ppc |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
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: [email protected]
Reporter: [email protected]
CC: [email protected]
Flags: maintainer-feedback?([email protected])
CC: [email protected]
Assignee: [email protected]
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 on the CC list for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
To unsubscribe, send any mail to "[email protected]"