From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p4JAoDjp006535 for ; Thu, 19 May 2011 12:50:13 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvYCAM301E1KfVIqkGdsb2JhbACmBAgUAQEBAQkJDQcUBCGIcKEggkKMGgqCK4UAN4hiAQEDBoYTBJARhC9cNYMIgj07K4MM X-IronPort-AV: E=Sophos;i="4.65,236,1304287200"; d="scan'208";a="108966900" Received: from mail-ww0-f42.google.com ([74.125.82.42]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-MD5; 19 May 2011 12:50:08 +0200 Received: by wwk4 with SMTP id 4so5900216wwk.3 for ; Thu, 19 May 2011 03:50:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:reply-to:user-agent :mime-version:to:subject:content-type:content-transfer-encoding; bh=5oe+Ocn+unUczAH2xGOi5tZxqyXNKR9eda2hAJTWbvA=; b=X9v61g3hngmmv37NwSfLWXDn980qmwwI8B278PaDJVwfOSNrNnPkiO09vtDmpA4pLf I/EbgNr4S3abug/uDpbTh7PdYGURymFsMz6WrMjndeVbb/mNJpjoDdQmrcPMMdnRUmCD JMRJM/NSQClHAkx9gVPdlbHteceNy7iAg11pc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=IIk534AzLZN4sDGVesfiTOgJ2pRExvShWfw4bOPmoBf5WddFXPFNjE55WmGBECsi/2 /ftzQoBtHcuYK8sCvfC55r9KJENJ5wD4ClTrlSV6qMlbvvnAhjXd8aE9huYhG5AV7MBA /IWgL9mVUbvFQAFVX7aCwkCHRhW0VhGRohvnM= Received: by 10.227.132.210 with SMTP id c18mr3003008wbt.44.1305802207461; Thu, 19 May 2011 03:50:07 -0700 (PDT) Received: from [172.17.1.5] (papillon.metalscan.fr [93.95.58.150]) by mx.google.com with ESMTPS id bo14sm1530613wbb.11.2011.05.19.03.50.06 (version=SSLv3 cipher=OTHER); Thu, 19 May 2011 03:50:06 -0700 (PDT) Message-ID: <4DD4F5DB.4020402@gmail.com> Date: Thu, 19 May 2011 12:50:03 +0200 From: Matthieu Dubuget Reply-To: matthieu.dubuget@gmail.com User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: Caml Mailing List Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Subject: [Caml-list] Ocamlbuild question Hello, I'm trying to build xml-light using ocamlbuild (don't ask me why, I do not know myself…) The standard way for building xml-light.cma is working (with a patch stolen from debian package): > wget http://tech.motion-twin.com/zip/xml-light-2.2.zip > unzip xml-light-2.2.zip > cd xml-light > sed -i -e 's/.mly.ml:/%mli %ml: %mly/' Makefile > make xml-light.cma > ... > > ocamlyacc xml_parser.mly > ocamlc xml.mli > ocamlc dtd.mli > ocamlc xml_parser.mli > ocamlc -c xml_parser.ml > ocamllex xml_lexer.mll > 228 states, 1162 transitions, table size 6016 bytes > ocamlc xml_lexer.mli > ocamlc -c xml_lexer.ml > ocamlc -c dtd.ml > ocamlc xmlParser.mli > ocamlc -c xmlParser.ml > ocamlc -c xml.ml > ocamlc -o xml-light.cma -a xml_parser.cmo xml_lexer.cmo dtd.cmo > xmlParser.cmo xml.cmo Here is my try with ocamlbuild: > wget http://tech.motion-twin.com/zip/xml-light-2.2.zip > unzip xml-light-2.2.zip > cd xml-light > for d in Xml_parser Xml_lexer Dtd XmlParser Xml; > do echo "$d" >> xml-light.mllib; > done > ocamlbuild xml-light.cma > ls _build/*.cmo > ... > > Circular dependencies: "dtd.cmo" already seen in > [ "xml.cmo"; "dtd.cmo"; "xml_parser.cmo" ] > > Compilation unsuccessful after building 22 targets (0 cached) in 00:00:00. > _build/dtd.cmo _build/xml.cmo _build/xml_lexer.cmo > _build/xml_parser.cmo _build/xmlParser.cmo I would like to understand the origin of the problem? Salutations Matthieu