From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id F27FEBC0A for ; Sat, 5 May 2007 22:50:56 +0200 (CEST) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l45Kou6Z030948 for ; Sat, 5 May 2007 22:50:56 +0200 Received: by ug-out-1314.google.com with SMTP id k3so746426ugf for ; Sat, 05 May 2007 13:50:56 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=cUY2JELFp6znQdQ/Na3iX1jWxGUJD+NzOorMi8w0qPaMU+6KryrgSalpPyBp5BHrySFVGjurONrBIsVSL9lCI+vqTJ2xGrPkE+wOuwUXvNzmF8/ysTEoihUYooVMTXg5PCjw3qTgRxpolwzasDGrUqihfQC6ISJ8h44nR9fDvSI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=e8F7rlBhIJ5zoUbnSQJCorjxuHHCyaG+rnPk/G3fmWEQ2sTMTE1EI3w+J46z0d/7Km3z+CoY93rETKaWis2wqUiXFjUpBPi/x8RYfX3AJPNl9XnQVXAr+QpKtQEgVp1zFaRrmFZurf+FRIbCecgfwpu4BbRzyTCXg3iHBUDn8Gg= Received: by 10.67.119.9 with SMTP id w9mr3748224ugm.1178398256196; Sat, 05 May 2007 13:50:56 -0700 (PDT) Received: from ?192.168.1.33? ( [83.34.3.221]) by mx.google.com with ESMTP id 28sm6387457ugc.2007.05.05.13.50.54; Sat, 05 May 2007 13:50:55 -0700 (PDT) In-Reply-To: <20070505150418.GA10402@furbychan.cocan.org> References: <44877EEA-45A5-4680-9800-2834A5FF8D42@gmail.com> <20070505150418.GA10402@furbychan.cocan.org> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <44CC75F3-F393-4C03-BC8D-C2BE7422D53B@gmail.com> Cc: OCaml List Content-Transfer-Encoding: 7bit From: Joel Reymont Subject: Re: [Caml-list] ocamlfind and linking with -g for stack backtrace Date: Sat, 5 May 2007 21:50:51 +0100 To: Richard Jones X-Mailer: Apple Mail (2.752.3) X-j-chkmail-Score: MSGID : 463CEE30.001 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 463CEE30.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocamlfind:01 stack:01 backtrace:01 backtrace:01 cmi:01 cmo:01 cmx:01 ocamlfind:01 ocamlc:01 -verbose:01 -package:01 netstring:01 netcgi:01 -thread:01 -linkpkg:01 It's still not working, even with "-ccopt -g". There's -g all over the place but I'm still not getting a backtrace. make clean rm -f *.cmi *.cmo *.cmx *.o rm -f test_acceptor easy_daemon easy_reactor easy_engine easy_engine.opt rm -f proxy_engine proxy_engine.opt file_reactor file_mt_reactor rm -f file_mt_reactor.opt file_engine netplex make netplex ocamlfind ocamlc -verbose -ccopt -g -g -o netplex -package "netstring,netcgi2,unix,nethttpd-for-netcgi2,netplex" \ -thread netplex.ml -linkpkg -g Effective set of compiler predicates: pkg_unix,pkg_threads.posix,pkg_threads,pkg_pcre,pkg_netsys,pkg_netstring ,pkg_netcgi2,pkg_equeue,pkg_rpc,pkg_netplex,pkg_nethttpd-for- netcgi2,autolink,mt,mt_posix,byte + ocamlc.opt -verbose -ccopt -g -g -o netplex -g -thread -I /usr/ local/lib/ocaml/site-lib/pcre -ccopt -I/usr/local/lib/ocaml/site-lib/ pcre -I /usr/local/lib/ocaml/site-lib/netsys -ccopt -I/usr/local/lib/ ocaml/site-lib/netsys -I /usr/local/lib/ocaml/site-lib/netstring - ccopt -I/usr/local/lib/ocaml/site-lib/netstring -I /usr/local/lib/ ocaml/site-lib/netcgi2 -ccopt -I/usr/local/lib/ocaml/site-lib/netcgi2 -I /usr/local/lib/ocaml/site-lib/equeue -ccopt -I/usr/local/lib/ocaml/ site-lib/equeue -I /usr/local/lib/ocaml/site-lib/rpc -ccopt -I/usr/ local/lib/ocaml/site-lib/rpc -I /usr/local/lib/ocaml/site-lib/netplex -ccopt -I/usr/local/lib/ocaml/site-lib/netplex -I /usr/local/lib/ ocaml/site-lib/nethttpd-for-netcgi2 -ccopt -I/usr/local/lib/ocaml/ site-lib/nethttpd-for-netcgi2 -ccopt -L/usr/local/lib/ocaml/site-lib/ pcre -ccopt -L/usr/local/lib/ocaml/site-lib/netsys -ccopt -L/usr/ local/lib/ocaml/site-lib/netstring -ccopt -L/usr/local/lib/ocaml/site- lib/netcgi2 -ccopt -L/usr/local/lib/ocaml/site-lib/equeue -ccopt -L/ usr/local/lib/ocaml/site-lib/rpc -ccopt -L/usr/local/lib/ocaml/site- lib/netplex -ccopt -L/usr/local/lib/ocaml/site-lib/nethttpd-for- netcgi2 /usr/local/lib/ocaml/unix.cma /usr/local/lib/ocaml/threads/ threads.cma /usr/local/lib/ocaml/site-lib/pcre/pcre.cma /usr/local/ lib/ocaml/site-lib/netsys/netsys.cma /usr/local/lib/ocaml/site-lib/ netstring/netstring.cma /usr/local/lib/ocaml/site-lib/netstring/ netstring_mt.cmo /usr/local/lib/ocaml/site-lib/netstring/ netaccel.cma /usr/local/lib/ocaml/site-lib/netstring/ netaccel_link.cmo /usr/local/lib/ocaml/site-lib/netcgi2/netcgi.cma / usr/local/lib/ocaml/site-lib/equeue/equeue.cma /usr/local/lib/ocaml/ site-lib/equeue/unixqueue_mt.cmo /usr/local/lib/ocaml/site-lib/rpc/ rpc.cma /usr/local/lib/ocaml/site-lib/netplex/netplex.cma /usr/local/ lib/ocaml/site-lib/netplex/netplex_mt.cmo /usr/local/lib/ocaml/site- lib/nethttpd-for-netcgi2/nethttpd-for-netcgi2.cma netplex.ml + gcc -o 'netplex' -I'/usr/local/lib/ocaml' -g -I/usr/local/lib/ ocaml/site-lib/pcre -I/usr/local/lib/ocaml/site-lib/netsys -I/usr/ local/lib/ocaml/site-lib/netstring -I/usr/local/lib/ocaml/site-lib/ netcgi2 -I/usr/local/lib/ocaml/site-lib/equeue -I/usr/local/lib/ocaml/ site-lib/rpc -I/usr/local/lib/ocaml/site-lib/netplex -I/usr/local/lib/ ocaml/site-lib/nethttpd-for-netcgi2 -L/usr/local/lib/ocaml/site-lib/ pcre -L/usr/local/lib/ocaml/site-lib/netsys -L/usr/local/lib/ocaml/ site-lib/netstring -L/usr/local/lib/ocaml/site-lib/netcgi2 -L/usr/ local/lib/ocaml/site-lib/equeue -L/usr/local/lib/ocaml/site-lib/rpc - L/usr/local/lib/ocaml/site-lib/netplex -L/usr/local/lib/ocaml/site- lib/nethttpd-for-netcgi2 -g -I/usr/local/lib/ocaml/site-lib/pcre -I/ usr/local/lib/ocaml/camlp4 -g -I/usr/local/lib/ocaml/site-lib/pcre -I/ usr/local/lib/ocaml/camlp4 -g -I/usr/local/lib/ocaml/site-lib/pcre -g -I/usr/local/lib/ocaml/site-lib/pcre -g -I/usr/local/lib/ocaml/site- lib/pcre -g -I/usr/local/lib/ocaml/site-lib/pcre -I/usr/local/lib/ ocaml/camlp4 /tmp/camlprim9bec2b.c '-L/usr/local/lib/ocaml/site-lib/ pcre' '-L/usr/local/lib/ocaml/site-lib/netsys' '-L/usr/local/lib/ ocaml/site-lib/netstring' '-L/usr/local/lib/ocaml/site-lib/netcgi2' '- L/usr/local/lib/ocaml/site-lib/equeue' '-L/usr/local/lib/ocaml/site- lib/rpc' '-L/usr/local/lib/ocaml/site-lib/netplex' '-L/usr/local/lib/ ocaml/site-lib/nethttpd-for-netcgi2' '-L/usr/local/lib/ocaml/threads' '-L/usr/local/lib/ocaml' '-lnetaccel_c' '-lnetsys' '-lpcre_stubs' '- lpcre' '-lthreads' '-lpthread' '-lunix' -lcamlrun -lcurses -lpthread ./netplex -conf netplex.cfg [...] (Program not linked with -g, cannot print stack backtrace) -- http://wagerlabs.com/