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 NAA16397; Thu, 13 Feb 2003 13:41:42 +0100 (MET) 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 NAA15705 for ; Thu, 13 Feb 2003 13:41:21 +0100 (MET) Received: from comtv.ru (comtv.ru [217.10.32.4]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h1DCfKf09048 for ; Thu, 13 Feb 2003 13:41:20 +0100 (MET) Received: from [10.0.66.9] ([10.0.66.9] verified) by comtv.ru (CommuniGate Pro SMTP 4.0.5) with ESMTP id 7081836; Thu, 13 Feb 2003 15:41:16 +0300 Date: Thu, 13 Feb 2003 15:43:20 +0300 (MSK) From: malc X-X-Sender: malc@home.oyster.ru To: Hal Daume III cc: Caml Mailing List Subject: Re: [Caml-list] using ocamlopt with -cc cc In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, 12 Feb 2003, Hal Daume III wrote: > On a Sparc machine, I'm forced to use cc instead of gcc. However, when I > try to compile something I get undefined symbol errors, like the > following: > > bash$ cat foo.ml > let _ = print_int 5; > bash$ /tmp1/daume/bin/ocamlopt -cc cc foo.ml -o foo > Undefined first referenced > symbol in file > __ashldi3 > /tmp1/daume/lib/ocaml/libasmrun.a(ints.o) > __ashrdi3 > /tmp1/daume/lib/ocaml/libasmrun.a(ints.o) > __floatdidf > /tmp1/daume/lib/ocaml/libasmrun.a(ints.o) > __lshrdi3 > /tmp1/daume/lib/ocaml/libasmrun.a(ints.o) Those are functions from libgcc(64bit arithmetics and so on). You can either link libgcc with your code to satisify the dependancy or rebuild whole ocaml froms scratch with cc. -- mailto:malc@pulsesoft.com ------------------- 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