Mike,
Then the following Patch will be needed:
On Thu, 2009-01-08 at 01:34 -0500, Mike Frysinger wrote:
> On Wednesday 07 January 2009 16:53:09 Edjunior Barbosa Machado wrote:
> > in a ppc64 machine running SLES11 RC1, I'm trying to build the December
> > 2008 LTP release (ltp-full-20081231) but it fails on "make":
> >
> > ....
> > make[3]: Entering directory
> > `/root/ltp-full-20081231/testcases/misc/tcore_patch_test_suites' gcc -o
> > tcore tcore.c -lm -lpthread
> > /usr/local/autobench/var/tmp/18957/ccu7XRNb.s: Assembler messages:
> > /usr/local/autobench/var/tmp/18957/ccu7XRNb.s:422: Error: Unrecognized
> > opcode: `movups'
>
> tcore only works on x86 systems ... building/running on other systems makes
> no
> sense
Signed-Off-By: Subrata Modak <subr...@linux.vnet.ibm.com>,
--
---
ltp-intermediate-20090105/testcases/misc/tcore_patch_test_suites/tcore.c.orig
2009-01-08 14:05:49.000000000 +0530
+++
ltp-intermediate-20090105/testcases/misc/tcore_patch_test_suites/tcore.c
2009-01-08 14:12:09.000000000 +0530
@@ -20,6 +20,8 @@
// Use gcc -o xmm xmm.c -pthread -lm to compile.
+#if defined __i386__ || defined(__x86_64__)
+
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
@@ -195,3 +197,17 @@ main (void)
pthread_join (th_b, &retval);
return 0;
}
+
+#else /* Not __i386__ */
+
+#include "test.h"
+#include "usctest.h"
+
+int TST_TOTAL = 0; /* Total number of test cases. */
+
+int main() {
+ tst_resm(TCONF, "tcore only works on x86 systems ...");
+ tst_exit();
+}
+
+#endif /* __i386__ */
Regards--
Subrata
> -mike
> ------------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It is the best place to buy or sell services for
> just about anything Open Source.
> http://p.sf.net/sfu/Xq1LFB
> _______________________________________________ Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
--- ltp-intermediate-20090105/testcases/misc/tcore_patch_test_suites/tcore.c.orig 2009-01-08 14:05:49.000000000 +0530
+++ ltp-intermediate-20090105/testcases/misc/tcore_patch_test_suites/tcore.c 2009-01-08 14:12:09.000000000 +0530
@@ -20,6 +20,8 @@
// Use gcc -o xmm xmm.c -pthread -lm to compile.
+#if defined __i386__ || defined(__x86_64__)
+
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
@@ -195,3 +197,17 @@ main (void)
pthread_join (th_b, &retval);
return 0;
}
+
+#else /* Not __i386__ */
+
+#include "test.h"
+#include "usctest.h"
+
+int TST_TOTAL = 0; /* Total number of test cases. */
+
+int main() {
+ tst_resm(TCONF, "tcore only works on x86 systems ...");
+ tst_exit();
+}
+
+#endif /* __i386__ */
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list