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 MAA20245; Sun, 13 Oct 2002 12:09:51 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA20160 for ; Sun, 13 Oct 2002 12:09:49 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g9DA9j520518; Sun, 13 Oct 2002 12:09:45 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id MAA19600; Sun, 13 Oct 2002 12:09:45 +0200 (MET DST) Date: Sun, 13 Oct 2002 12:09:45 +0200 From: Xavier Leroy To: Chris Hecker Cc: caml-list@inria.fr Subject: Re: [Caml-list] "-pack" on win32/msvc Message-ID: <20021013120945.D19319@pauillac.inria.fr> References: <4.3.2.7.2.20021011115333.01ab8720@mail.d6.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <4.3.2.7.2.20021011115333.01ab8720@mail.d6.com>; from checker@d6.com on Fri, Oct 11, 2002 at 12:02:19PM -0700 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > Hi, -pack is disabled on msvc builds because nm and objcopy are not > installed by default. However, the cygwin nm and objcopy work on PE format > files (msvc objs, libs, and exes), so everything should work just fine > (perhaps you didn't know this, Xavier, or maybe you did know it and they're > broken in some nonobvious way?). I was told that nm and objcopy might work on MSVC-generated object files. But I was also warned that the .obj file format used by MSVC might not be *exactly* the documented PE format... So, basically, it should work most of the time, but might break. A perhaps less risky alternative is to use the mingw build of OCaml. I encourage all our advanced Windows users to give it a try and let us know if it works well. If it does, it might provide a better alternative to the MSVC build (working -pack, no need to fetch MASM from obscure places, etc). > I enabled nm and objcopy in the config > files, rebuilt, and I've almost got it working (there's a "-o" that needs > to be turned into a "-out:" as a config.ml parm to link, but that's > minor). The big problem is that when the pack.obj is made by asmpackager, > it includes the camlpackage tmp obj file created, so nm dumps out this > file's symbols as well. I don't fully understand what you're describing. Let us (you and me) discuss that off-list once you've experimented some more. - Xavier Leroy ------------------- 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