From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: Damien Doligez <Damien.Doligez@inria.fr>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] state of native dynlink on os x
Date: Wed, 29 Feb 2012 09:33:29 +0100 [thread overview]
Message-ID: <51640A57-929F-4E01-94A2-966027648C25@polytechnique.org> (raw)
In-Reply-To: <8FFF332E-3635-467F-B135-F09F806A034E@polytechnique.org>
On 27 févr. 2012, at 16:43, Damien Doligez wrote:
> Hi Alan,
>> Following a suggestion by Daniel Bünzli, I used the minimum example from http://caml.inria.fr/mantis/view.php?id=5093 then I can see that native dynlink does work.
>>
>> However two questions remain. I get `ld: warning: -read_only_relocs cannot be used with x86_64` each time I link natively. Does this mean I should reopen http://caml.inria.fr/mantis/view.php?id=4863 (the patch there is applied to my version of caml)?
>
> Which version of Mac OS X, which version of OCaml, and what is the output of configure?
Here is the output of configure:
Configuring for a i686-apple-darwin11.3.0 ...
The C compiler is ANSI-compliant.
Checking the sizes of integers and pointers...
Wow! A 64 bit architecture!
This is a little-endian architecture.
Doubles can be word-aligned.
64-bit integers can be word-aligned.
Native division and modulus have round-towards-zero semantics, will use them.
ranlib found
#! appears to work in shell scripts
POSIX signal handling found.
expm1() and log1p() found.
getrusage() found.
times() found.
termcap functions found (with libraries '-lcurses')
You have BSD sockets.
socklen_t is defined in <sys/socket.h>
inet_aton() found.
IPv6 is supported.
unistd.h found.
off_t is defined in <sys/types.h>
dirent.h found.
rewinddir() found.
lockf() found.
mkfifo() found.
getcwd() found.
getwd() found.
getpriority() found.
utime() found.
utimes() found.
dup2() found.
fchmod() found.
truncate() found.
sys/select.h found.
select() found.
symlink() found.
waitpid() found.
wait4() found.
getgroups() found.
setgroups() found.
initgroups() found.
POSIX termios found.
Asynchronous I/O are supported.
setitimer() found.
gethostname() found.
uname() found.
gettimeofday() found.
mktime() found.
setsid() found.
putenv() found.
setlocale() and <locale.h> found.
dlopen() found.
Dynamic loading of shared libraries is supported.
mmap() found.
Replay debugger supported.
System stack overflow can be detected.
POSIX threads library supported.
Options for linking with POSIX threads: -lpthread
sigwait() found
Bytecode threads library supported.
Location of X11 include files: /usr/X11R6/include/X11
Options for linking with X11: -L/usr/X11R6/lib -lX11
NDBM found (in /usr/include)
Configuring LablTk...
tcl.h and tk.h version 8.5 found with "".
Tcl/Tk libraries found.
BFD library not found, 'objinfo' will be unable to display info on .cmxs files
** Configuration summary **
Directories where Objective Caml will be installed:
binaries.................. /Users/schmitta/godi/bin
standard library.......... /Users/schmitta/godi/lib/ocaml/std-lib
manual pages.............. /Users/schmitta/godi/man (with extension .1)
Configuration for the bytecode compiler:
C compiler used........... gcc
options for compiling..... -fno-defer-pop -no-cpp-precomp -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
options for linking....... -lcurses -lpthread
shared libraries are supported
options for compiling..... -fno-defer-pop -no-cpp-precomp -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
command for building...... gcc -bundle -flat_namespace -undefined suppress -read_only_relocs suppress -o lib.so /a/path objs
Configuration for the native-code compiler:
hardware architecture..... amd64
OS variant................ macosx
C compiler used........... gcc
options for compiling..... -D_FILE_OFFSET_BITS=64 -D_REENTRANT
options for linking.......
assembler ................ as -arch x86_64
preprocessed assembler ... gcc -arch x86_64 -c
native dynlink ........... true
profiling with gprof ..... supported
Source-level replay debugger: supported
Additional libraries supported:
unix str num dynlink bigarray systhreads threads graph dbm labltk
Configuration for the "num" library:
target architecture ...... amd64 (asm level 1)
Configuration for the "graph" library:
options for compiling .... -I/usr/X11R6/include
options for linking ...... -L/usr/X11R6/lib -lX11
Configuration for the "labltk" library:
use tcl/tk version ....... 8.5
options for compiling ....
options for linking ...... -ltk8.5 -ltcl8.5
Alan
next prev parent reply other threads:[~2012-02-29 8:33 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-15 11:17 Alan Schmitt
2012-02-15 12:34 ` Daniel Bünzli
2012-02-15 14:16 ` Alan Schmitt
2012-02-17 6:47 ` Alan Schmitt
2012-02-27 15:43 ` Damien Doligez
2012-02-27 17:49 ` Pierre-Alexandre Voye
2012-02-28 10:15 ` David MENTRE
2012-02-28 10:32 ` Pierre-Alexandre Voye
2012-02-28 15:34 ` Alan Schmitt
2012-02-29 8:33 ` Alan Schmitt [this message]
2012-03-07 10:55 ` Damien Doligez
2012-03-07 15:14 ` Alan Schmitt
2012-03-08 11:13 ` Alan Schmitt
2012-03-08 14:16 ` Alan Schmitt
2012-03-08 14:23 ` Pierre-Alexandre Voye
2012-03-08 14:35 ` Alan Schmitt
2012-03-08 15:50 ` Pierre-Alexandre Voye
2012-03-08 16:19 ` Jérémie Dimino
2012-03-08 16:16 ` Gabriel Scherer
2012-03-08 16:25 ` Jérémie Dimino
2012-03-08 16:31 ` Alan Schmitt
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=51640A57-929F-4E01-94A2-966027648C25@polytechnique.org \
--to=alan.schmitt@polytechnique.org \
--cc=Damien.Doligez@inria.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