caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] native compilation on NetBSD/sparc
@ 2003-07-30 22:17 Dan Debertin
  2003-08-18  9:37 ` Xavier Leroy
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Debertin @ 2003-07-30 22:17 UTC (permalink / raw)
  To: caml-list

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'
/tmp/camlstartupd76812.o(.text+0x14): undefined reference to `_caml_globals_inited'
/tmp/camlstartupd76812.o(.text+0x1c): undefined reference to `_caml_globals_inited'
/tmp/camlstartupd76812.o(.text+0x20): undefined reference to `_caml_globals_inited'
/tmp/camlstartupd76812.o: In function `L150':
/tmp/camlstartupd76812.o(.text+0x2c): undefined reference to `_caml_globals_inited'
/tmp/camlstartupd76812.o(.text+0x30): more undefined references to `_caml_globals_inited' follow
...And so on for several pages, until the bottom:

/usr/local/lib/ocaml/libasmrun.a(callback.o): In function `callback':
callback.o(.text+0x148): undefined reference to `callback_exn'
/usr/local/lib/ocaml/libasmrun.a(callback.o): In function `callback2':
callback.o(.text+0x180): undefined reference to `callback2_exn'
/usr/local/lib/ocaml/libasmrun.a(callback.o): In function `callback3':
callback.o(.text+0x1bc): undefined reference to `callback3_exn'
Error during linking

The same program compiles fine on NetBSD/i386. ocamlopt is also unable
to build ocamlopt.opt.


Dan
--
/^Dan Debertin$/         | 
airboss@nodewarrior.org  | 
www.nodewarrior.org      | 



-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] native compilation on NetBSD/sparc
  2003-07-30 22:17 [Caml-list] native compilation on NetBSD/sparc Dan Debertin
@ 2003-08-18  9:37 ` Xavier Leroy
  2003-08-18 14:34   ` [Caml-list] " Dan Debertin
  0 siblings, 1 reply; 3+ messages in thread
From: Xavier Leroy @ 2003-08-18  9:37 UTC (permalink / raw)
  To: Dan Debertin; +Cc: caml-list

> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Caml-list] Re: native compilation on NetBSD/sparc
  2003-08-18  9:37 ` Xavier Leroy
@ 2003-08-18 14:34   ` Dan Debertin
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Debertin @ 2003-08-18 14:34 UTC (permalink / raw)
  To: caml-list

Xavier Leroy <xavier.leroy@inria.fr> writes:

>> /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.  

Yes, the latest 3.07 beta appears to work fine. Thanks!


Dan
--
/^Dan Debertin$/         | 
airboss@nodewarrior.org  | 
www.nodewarrior.org      | 

-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-08-18 14:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-30 22:17 [Caml-list] native compilation on NetBSD/sparc Dan Debertin
2003-08-18  9:37 ` Xavier Leroy
2003-08-18 14:34   ` [Caml-list] " Dan Debertin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).