Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jan 2009 00:00:56 +0100 (CET)
From:      Daniel Roethlisberger <daniel@roe.ch>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        daniel@roe.ch
Subject:   ports/130396: [maintainer] Fix build on i386 with unset CPUTYPE or no MMX support
Message-ID:  <200901112300.n0BN0uG6096354@marvin.ustcor.roe.ch>
Resent-Message-ID: <200901112300.n0BN0GdD095258@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         130396
>Category:       ports
>Synopsis:       [maintainer] Fix build on i386 with unset CPUTYPE or no MMX support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 11 23:00:16 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Daniel Roethlisberger
>Release:        FreeBSD 7.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD marvin.ustcor.roe.ch 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
svn add files/patch-include_util.h

Fix build in the following situations:
- On i386 with unset CPUTYPE
- On i386 without MMX support

Reported by: pointyhat
>How-To-Repeat:
>Fix:
--- msieve_MMX_fix.diff begins here ---
diff -ruN msieve.orig/files/patch-include_util.h msieve/files/patch-include_util.h
--- msieve.orig/files/patch-include_util.h	1970-01-01 01:00:00.000000000 +0100
+++ msieve/files/patch-include_util.h	2009-01-11 23:47:04.000000000 +0100
@@ -0,0 +1,21 @@
+--- include/util.h.orig	2008-09-24 15:59:32.000000000 +0200
++++ include/util.h	2009-01-11 23:46:55.000000000 +0100
+@@ -202,8 +202,18 @@
+    the only CPU that doesn't have these instructions is
+    the classic Pentium */
+ 
++#if defined(CPU_GENERIC)	|| \
++    defined(CPU_PENTIUM2)	|| \
++    defined(CPU_ATHLON)		|| \
++    defined(CPU_PENTIUM3)	|| \
++    defined(CPU_ATHLON_XP)	|| \
++    defined(CPU_PENTIUM4)	|| \
++    defined(CPU_PENTIUM_M)	|| \
++    defined(CPU_CORE)		|| \
++    defined(CPU_OPTERON)
+ #define HAS_CMOV
+ #define HAS_MMX
++#endif
+ 
+ #if defined(CPU_GENERIC)
+ 	#define MANUAL_PREFETCH
--- msieve_MMX_fix.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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