Binary files 'test_deref/0015-0001' and 'test_deref/0011-0001' from test folder 
0.0.4 cause a problem.
Solution could be to threat these tests as the same tests from the 0.0.3 test 
folder:
https://gitlab.com/gbenson/libi8x/blob/master/tests/valid/test-corpus.c#L64-79

With these changes, package libi8x has been build successfully for mips, mipsel 
and 1386.

I have created and attached a patch that handles these tests.

Regards,
Radovan
--- libi8x-0.0.3.orig/tests/valid/test-corpus.c
+++ libi8x-0.0.3/tests/valid/test-corpus.c
@@ -78,6 +78,15 @@ do_test (struct i8x_ctx *ctx, const char
 	expect_err = I8X_NOTE_UNHANDLED;
     }
 
+  if (strstr (filename, "/i8c/0.0.4/") != NULL)
+    {
+      if (__WORDSIZE == 32
+          && strstr (filename, "/i8c/0.0.4/32") != NULL
+          && (strstr (filename, "/test_deref/0011-0001") != NULL
+              || strstr (filename, "/test_deref/0015-0001") != NULL))
+        expect_err = I8X_NOTE_UNHANDLED;
+    }
+
   struct i8x_func *func;
   err = i8x_func_new_bytecode (note, &func);
   i8x_note_unref (note);

Reply via email to