ports/154394: [patch] devel/sdl12 fix build with clang
Koop Mast
kwm at FreeBSD.org
Sun Jan 30 14:40:07 UTC 2011
>Number: 154394
>Category: ports
>Synopsis: [patch] devel/sdl12 fix build with clang
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sun Jan 30 14:40:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Koop Mast
>Release: FreeBSD 8.1-STABLE i386
>Organization:
>Environment:
System: FreeBSD freefall.freebsd.org 8.1-STABLE FreeBSD 8.1-STABLE #2 r215627: Sun Nov 21 13:36:51 UTC 2010 simon at freefall.freebsd.org:/usr/obj/usr/src/sys/FREEFALL i386
>Description:
Build fails due to incorrect asm usages. Fix attached.
more info: http://bugzilla.libsdl.org/show_bug.cgi?id=1111
which contains link to clang/llvm bugs with some details.
>How-To-Repeat:
>Fix:
--- sdl12-clang.diff begins here ---
diff -ruN devel/sdl12.orig/files/patch-src_video_mmx.h devel/sdl12/files/patch-src_video_mmx.h
--- devel/sdl12.orig/files/patch-src_video_mmx.h 1970-01-01 00:00:00.000000000 +0000
+++ devel/sdl12/files/patch-src_video_mmx.h 2010-04-13 14:36:01.665607203 +0000
@@ -0,0 +1,11 @@
+--- src/video/mmx.h 2009-10-12 23:07:15.000000000 +0000
++++ src/video/mmx.h 2010-04-13 14:25:40.530735004 +0000
+@@ -355,7 +355,7 @@
+
+ #define mmx_r2m(op, reg, mem) \
+ __asm__ __volatile__ (#op " %%" #reg ", %0" \
+- : "=X" (mem) \
++ : "=m" (mem) \
+ : /* nothing */ )
+
+ #define mmx_r2r(op, regs, regd) \
--- sdl12-clang.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list