Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Benoît Pin" <pin@cri.ensmp.fr>
To: caml-list@inria.fr
Subject: [Caml-list] OSX 32bit, native dynlink?
Date: Wed, 1 Jul 2015 14:50:28 +0200	[thread overview]
Message-ID: <88871EF7-757A-4FE2-B750-6528ED64173F@cri.ensmp.fr> (raw)

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

                 reply	other threads:[~2015-07-01 12:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=88871EF7-757A-4FE2-B750-6528ED64173F@cri.ensmp.fr \
    --to=pin@cri.ensmp.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox