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 KAA10068; Tue, 22 Oct 2002 10:42:19 +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 KAA10308 for ; Tue, 22 Oct 2002 10:42:19 +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 g9M8gF525362; Tue, 22 Oct 2002 10:42:16 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA10207; Tue, 22 Oct 2002 10:42:15 +0200 (MET DST) Date: Tue, 22 Oct 2002 10:42:15 +0200 From: Xavier Leroy To: Yang Shouxun Cc: caml-list@inria.fr Subject: Re: [Caml-list] Error during partial linking Message-ID: <20021022104215.A9456@pauillac.inria.fr> References: <200210221333.36858.yangsx@fltrp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200210221333.36858.yangsx@fltrp.com>; from yangsx@fltrp.com on Tue, Oct 22, 2002 at 01:33:36PM +0800 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > I'm trying to compile "baire" data structures library and package it > as a .deb. I have a problem when try to pack all the modules as a > single "baire" module to avoid name clash with stdlibs. The error > message is shown as the title. If you want help, you should provide more context for the error, i.e. the command that fails and all error messages it prints. Adding the "-verbose" option to ocamlopt will give even more useful context. At any rate: > $(CAMLOPT) -pack -o $(RESULT:.cmo=.cmx) $(SOURCES:.ml=.cmx) $(SOURCES:.ml=.o) The -o $(RESULT:.cmo=.cmx) might be wrong, since $(RESULT) is (apparently) "baire", not "baire.cmo". The $(SOURCES:.ml=.o) is wrong too, you should just pass the .cmx files to ocamlopt, it will deal with the underlying .o files all by itself. - 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