caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] OSX 32bit, native dynlink?
@ 2015-07-01 12:50 Benoît Pin
  0 siblings, 0 replies; only message in thread
From: Benoît Pin @ 2015-07-01 12:50 UTC (permalink / raw)
  To: caml-list

Hi everybody,

is it possible to build ocaml 32bits in OSX with native dynlink support?

We were trying to build camlp4 (opam install camlp4) in OSX 10.10.3 with a 32bit ocaml runtime (opam switch 4.02.1+32bit) but it fails with:

# + /Users/pinbe/.opam/4.02.1+32bit/bin/ocamlopt.opt dynlink.cmxa -g camlp4/config/Camlp4_import.cmx camlp4/config/Camlp4_config.cmx camlp4/boot/Camlp4.cmx camlp4/boot/camlp4boot.cmx -o camlp4/boot/camlp4boot.native
# File "_none_", line 1:
# Error: Cannot find file dynlink.cmxa

indeed, it seems that we are doing something wrong and the 32bit version of Ocaml is built by opam without native dynlink support:

** Configuration summary **

Directories where OCaml will be installed:
        binaries.................. /usr/local/bin
        standard library.......... /usr/local/lib/ocaml
        manual pages.............. /usr/local/man (with extension .1)
Configuration for the bytecode compiler:
        C compiler used........... gcc -arch i386 -m32
        options for compiling.....  -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
        options for linking.......     -lcurses -lpthread
        shared libraries are supported
        options for compiling.....   -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
        command for building...... gcc -arch i386 -m32 -bundle -flat_namespace -undefined suppress -Wl,-no_compact_unwind -o lib.so /a/path objs
Configuration for the native-code compiler:
        hardware architecture..... i386
        OS variant................ macosx
        C compiler used........... gcc -arch i386 -m32
        options for compiling..... -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
        options for linking.......   
        assembler ................ as -arch i386
        preprocessed assembler ... gcc -arch i386 -m32 -c
        assembler supports CFI ... no
        with frame pointers....... no
        naked pointers forbidden.. no
        native dynlink ........... false
        profiling with gprof ..... supported
Source-level replay debugger: supported
Additional libraries supported:
        unix str num dynlink bigarray systhreads threads
Configuration for the "num" library:
        target architecture ...... ia32 (asm level 2)
The "graph" library: not supported

** OCaml configuration completed successfully **

Best regards,
Benoit

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-01 12:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-01 12:50 [Caml-list] OSX 32bit, native dynlink? Benoît Pin

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