From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 2640B7EF37 for ; Fri, 17 Jul 2015 20:53:25 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of wangshuai901@gmail.com) identity=pra; client-ip=209.85.216.52; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="wangshuai901@gmail.com"; x-sender="wangshuai901@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of wangshuai901@gmail.com designates 209.85.216.52 as permitted sender) identity=mailfrom; client-ip=209.85.216.52; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="wangshuai901@gmail.com"; x-sender="wangshuai901@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-vn0-f52.google.com) identity=helo; client-ip=209.85.216.52; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="wangshuai901@gmail.com"; x-sender="postmaster@mail-vn0-f52.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0DdCgDsTalVczTYVdFagkaBIVoPBoMduBaCJIV7AoFCB0wBAQEBAQESAQoKDAkhLoQjAQEBAwESER0BGxcGAQMBCwYFCw0qAgIhAQERAQUBHAYTIod2AQMKCA2sW4EsPjGLP4FsgnmLJgoZJw1XhFcBAQEBAQUBAQEBAQEWAQUOiz6CTYFnAQFQB4JogUMFkViCbwWKOIFngUOQGYNGghcSI4EVEQaCHByBbyIxAQGBC4E+AQEB X-IPAS-Result: A0DdCgDsTalVczTYVdFagkaBIVoPBoMduBaCJIV7AoFCB0wBAQEBAQESAQoKDAkhLoQjAQEBAwESER0BGxcGAQMBCwYFCw0qAgIhAQERAQUBHAYTIod2AQMKCA2sW4EsPjGLP4FsgnmLJgoZJw1XhFcBAQEBAQUBAQEBAQEWAQUOiz6CTYFnAQFQB4JogUMFkViCbwWKOIFngUOQGYNGghcSI4EVEQaCHByBbyIxAQGBC4E+AQEB X-IronPort-AV: E=Sophos;i="5.15,497,1432591200"; d="scan'208";a="140399448" Received: from mail-vn0-f52.google.com ([209.85.216.52]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 17 Jul 2015 20:53:24 +0200 Received: by vnav141 with SMTP id v141so4169820vna.0 for ; Fri, 17 Jul 2015 11:53:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=JG9GTsu5hPiHvUgzrNSCZ74ZPmCfN6HaejNQXIT0u5A=; b=fnW0jfyTcDweyM//l4NEYOck7yDZiAIUyxvBAV3z2JMVCvpXd53QR3m43NOV3ZmQxp ltsXy/VYMi6ioeCcc3kB5Kxrn5+AsLDGSt98vH10i4grgrTa6R6amQ4YY9KK9o4k3087 67AIjLe5RsMOPShAIhaE2170dAMkdVLf0PlknBL+JibeA3H9PcYVhX/O2e+qZYARsAxa XvJ1qsdPhPdbVKv8pf+ldHOwmpJsYkbYKlP5Jf8JKnQRhOlUiafeHZc0RJNEljM+/Sc1 r4xHpaEw8CyE3yzWa5vuyC8RNwh5NnrbhMcQE/uUDmBkJ/YzN6qi/4wpJoOzEnEP1aiF /SvQ== MIME-Version: 1.0 X-Received: by 10.52.2.170 with SMTP id 10mr18623467vdv.93.1437159202785; Fri, 17 Jul 2015 11:53:22 -0700 (PDT) Received: by 10.31.4.8 with HTTP; Fri, 17 Jul 2015 11:53:22 -0700 (PDT) In-Reply-To: References: Date: Fri, 17 Jul 2015 14:53:22 -0400 Message-ID: From: Shuai Wang To: Kenneth Adam Miller Cc: caml users Content-Type: multipart/alternative; boundary=bcaec502d9fac4914f051b16b3b4 Subject: Re: [Caml-list] Cannot execute "main" function --bcaec502d9fac4914f051b16b3b4 Content-Type: text/plain; charset=UTF-8 Here is my compilation script. ocamlbuild -use-ocamlfind XXX1.native XXX2.native ... init.native -ocamlopt "-inline 20" -ocamlopt -nodynlink And our tool always execute init.native. On Fri, Jul 17, 2015 at 2:50 PM, Kenneth Adam Miller < kennethadammiller@gmail.com> wrote: > Can you post your build specification? > > On Fri, Jul 17, 2015 at 2:35 PM, Shuai Wang > wrote: > >> Dear list, >> >> >> I am working on some tools written in OCaml (compiled by OCaml version >> 4.01.0). >> >> This morning I changed some code, compiled it and let it processing some >> large data (~ 4G), it never stops after over 2 hours. >> >> I feed the tool with a tiny input which took less than 1 second to >> process before, and I figured out that now it takes around 2.5 minutes >> before entering into "main" function! >> >> I tried to clean the whole codebase, and recompile it ( I use ocamlbuild >> 4.01.0), but the same wired situation still happens.. >> >> I did this: >> >> ltrace ./init.native input >> >> and I got this output flushing out for a very long time (sorry mail list >> blocks my large image.. ): >> >> http://i.stack.imgur.com/sEkKk.png >> >> >> >> Is anyone aware this kind of issue before..? Am I messed up something..? >> I have been working on OCaml for a relatively long time and I didn't >> encounter this kind of stuff before... >> >> >> Sincerely, >> Shuai >> > > --bcaec502d9fac4914f051b16b3b4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Here is my compilation script.=C2=A0

ocamlbuild -use-ocamlfind =C2=A0XXX1.native XXX2.native ... init.n= ative =C2=A0-ocamlopt "-inline 20" -ocamlopt -nodynlink

And our tool always execute init.native.=C2=A0



=
On Fri, Jul 17, 2015 at 2:50 PM, Kenneth Adam Mi= ller <kennethadammiller@gmail.com> wrote:
Can you post your build specific= ation?

On Fri, Jul 17, 2015 at 2:35 PM, Shuai W= ang <wangshuai901@gmail.com> wrote:
Dear list,

<= div style=3D"font-size:12.8000001907349px">
I am working on some tools written in OCaml (compiled= by OCaml version 4.01.0).=C2=A0

This morning I= changed some code, compiled it and let it processing some large data (~ 4G= ), it never stops after over 2 hours.=C2=A0

I f= eed the tool with a tiny input which took less than 1 second to process bef= ore, and =C2=A0I figured out that now it takes around 2.5 minutes before en= tering into "main" function!

I tried = to clean the whole codebase, and recompile it ( I use ocamlbuild 4.01.0), b= ut the same wired situation still happens..=C2=A0

I did this:

<= div style=3D"font-size:12.8000001907349px">=C2=A0 =C2=A0 ltrace ./init.nati= ve input

and I got this output flushing out for= a very long time (sorry mail list blocks my large image.. ):




Is anyone aware this kind of issue before..? Am I messed u= p something..?=C2=A0
I hav= e been working on OCaml for a relatively long time and I didn't encount= er this kind of stuff before...


Sincerely,
Shuai


--bcaec502d9fac4914f051b16b3b4--