From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA26675; Sun, 17 Aug 2003 20:11:15 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA26972 for ; Sun, 17 Aug 2003 20:11:10 +0200 (MET DST) Received: from cog.brown.edu (titan.cog.brown.edu [128.148.208.226]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h7HIB9T07898 for ; Sun, 17 Aug 2003 20:11:09 +0200 (MET DST) Received: from venere.cog.brown.edu ([128.148.208.214] verified) by cog.brown.edu (CommuniGate Pro SMTP 4.0.6) with ESMTP id 510138; Sun, 17 Aug 2003 14:11:08 -0400 Received: from venere.cog.brown.edu (localhost.localdomain [127.0.0.1]) by venere.cog.brown.edu (8.12.9/8.12.9) with ESMTP id h7HI96Gq019449; Sun, 17 Aug 2003 14:09:06 -0400 Received: (from tahir@localhost) by venere.cog.brown.edu (8.12.9/8.12.9/Debian-5) id h7HI96PY019447; Sun, 17 Aug 2003 14:09:06 -0400 X-Authentication-Warning: venere.cog.brown.edu: tahir set sender to tahir@acm.jhu.edu using -f Subject: [Caml-list] problems with ocamlopt From: Tahir H Butt To: caml-list@inria.fr, debian-ocaml-maint@lists.debian.org Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1061143746.3142.16.camel@venere.cog.brown.edu> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.3 Date: 17 Aug 2003 14:09:06 -0400 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; butt:99 ocamlopt:01 3.06:01 2.4.18:01 gcc:01 ocamlc:01 flags:01 binaries:01 model:01 2.26:01 fdiv:99 bug:01 pse:99 pae:99 mca:99 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi all, I have some code which is doing some basic matrix calculations (for a perceptron classifier) and I've run into some problems with ocamlopt. It seems that the same code, which runs fine on my laptop (powerbook, mac os x > 10.2, ocaml 3.06) with ocamlopt and runs fine on a linux machine (athlon mp 2000+, 2.4.18-24.7, ocaml 3.06 using gcc 3.2), does not run on my work machine (pentium 4 2.26, debian 2.4.20, ocaml 3.06 using gcc 3.3.1). On my work machine if I just compile via ocamlc, the code runs fine. But if I do it to native code, I get (a) incorrect numbers after a certain number of iterations of my code, (b) a stack overflow after a few more iterations. I have no special ocamlopt flags set. I first thought maybe it's the binaries from debian that were at fault, but I tried recompiling but that did not help the situation. What could possibly be at fault here? Is it ocamlopt? Is it debian? the kernel? Any help would be much appreciated. Below is some information on the work machine where ocamlopt is coughing up. Thanks! # /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Pentium(R) 4 CPU 2.26GHz stepping : 4 cpu MHz : 2254.022 cache size : 512 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm bogomips : 4495.76 # gcc --version gcc (GCC) 3.3.1 20030626 (Debian prerelease) # ocamlopt -version 3.06 ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners