[Omake] Fwd: [CS134-ADMIN] Omake doesn't build...

Aleksey Nogin nogin at metaprl.org
Thu Jan 11 09:28:02 PST 2007


Maria,

There was a compilation problem on 64-bit systems in version 0.9.6.9. 
You should either switch to version 0.9.8, or apply the attached patch.

Aleksey

>> So, I have Gentoo linux on a AMD 64 machine, and I tried to emerge
>> omake, and it failed.
[...]
>> - build src/clib lm_heap.o
[...]
>> cc1: warnings being treated as errors
>> lm_heap.c: In function 'lm_heap_check_aux1':
>> lm_heap.c:94: warning: format '%d' expects type 'int', but argument 8
>> has type '
>> long int'
[...]

-------------- next part --------------
Index: src/libmojave-external/cutil/lm_heap.c
===================================================================
--- src/libmojave-external/cutil/lm_heap.c	(revision 9174)
+++ src/libmojave-external/cutil/lm_heap.c	(revision 9175)
@@ -83,15 +83,15 @@
     ptr = caml_young_ptr;
     end = caml_young_end;
 
-    fprintf(stderr, "AAA: %s: [0x%08lx, 0x%08lx, 0x%08lx, 0x%08lx] (%d/%d/%d bytes)\n",
+    fprintf(stderr, "AAA: %s: [0x%08lx, 0x%08lx, 0x%08lx, 0x%08lx] (%ld/%ld/%ld bytes)\n",
             name,
             (unsigned long) caml_young_start,
             (unsigned long) caml_young_ptr,
             (unsigned long) caml_young_limit,
             (unsigned long) caml_young_end, 
-            caml_young_end - caml_young_ptr,
-            caml_young_end - caml_young_limit,
-            caml_young_end - caml_young_start);
+            ((unsigned long) caml_young_end) - (unsigned long) caml_young_ptr,
+            ((unsigned long) caml_young_end) - (unsigned long) caml_young_limit,
+            ((unsigned long) caml_young_end) - (unsigned long) caml_young_start);
     fflush(stderr);
 
     /*
@@ -167,15 +167,16 @@
     ptr = caml_young_ptr;
     end = caml_young_end;
 
-    fprintf(stderr, "AAA: %s: [0x%08lx, 0x%08lx, 0x%08lx, 0x%08lx] (%d/%d/%d bytes)\n",
+    fprintf(stderr, "AAA: %s: [0x%08lx, 0x%08lx, 0x%08lx, 0x%08lx] (%ld/%ld/%ld bytes)\n",
             name,
             (unsigned long) caml_young_start,
             (unsigned long) caml_young_ptr,
             (unsigned long) caml_young_limit,
             (unsigned long) caml_young_end, 
-            caml_young_end - caml_young_ptr,
-            caml_young_end - caml_young_limit,
-            caml_young_end - caml_young_start);
+            ((unsigned long) caml_young_end) - (unsigned long) caml_young_ptr,
+            ((unsigned long) caml_young_end) - (unsigned long) caml_young_limit,
+            ((unsigned long) caml_young_end) - (unsigned long) caml_young_start);
+
     fflush(stderr);
 
     /*


More information about the Omake mailing list