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 LAA09400; Mon, 18 Aug 2003 11:38:11 +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 LAA10539 for ; Mon, 18 Aug 2003 11:38:10 +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 h7I9c0f24090; Mon, 18 Aug 2003 11:38:00 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA03659; Mon, 18 Aug 2003 11:37:59 +0200 (MET DST) Date: Mon, 18 Aug 2003 11:37:59 +0200 From: Xavier Leroy To: Dan Debertin Cc: caml-list@inria.fr Subject: Re: [Caml-list] native compilation on NetBSD/sparc Message-ID: <20030818113759.A28533@pauillac.inria.fr> References: <87brvbzmko.fsf@moped.nodewarrior.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <87brvbzmko.fsf@moped.nodewarrior.org>; from airboss@nodewarrior.org on Wed, Jul 30, 2003 at 05:17:27PM -0500 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 netbsd:01 ocamlopt:01 compiles:01 386.:01 3.07:01 cmxa:01 ocaml:01 caml:01 patch:02 native:02 unix:02 undefined:04 compilation:04 switched:04 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > Appears to be broken: > > clarity% ocamlopt unix.cmxa str.cmxa index-mail.ml -o index-mail > /tmp/camlstartupd76812.o: In function `L149': > /tmp/camlstartupd76812.o(.text+0x10): undefined reference to `_caml_globals_inited' > > The same program compiles fine on NetBSD/i386. ocamlopt is also unable > to build ocamlopt.opt. Yes, the initial port of ocamlopt to NetBSD/Sparc was done at a time where the latter used a.out asm conventions. Since then, NetBSD/Sparc switched to ELF conventions. A user provided me with a patch, which is applied in OCaml 3.07 beta1 and will be in 3.07 as well. So, if you wish to give 3.07 beta1 a test... - 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