Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Problems compiling 3.08.3 on Solaris/SPARC 9
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-03-21 (20:12)
From: Damien Doligez <damien.doligez@i...>
Subject: Re: [Caml-list] Problems compiling 3.08.3 on Solaris/SPARC 9
On Mar 21, 2005, at 20:35, Eijiro Sumii wrote:

>   ocaml-3.08.3/otherlibs/graph/.depend
> includes paths like
>   /usr/X11R6/include/X11/Xlib.h
> which are not correct in environments like Solaris 9.  I had to edit
> them by hand.

This looks like a new gcc "feature".  From the man page of gcc on my

        -MM Like -M but do not mention header files that are found in 
            header directories, nor header files that are included, 
directly or
            indirectly, from such a header.

            This implies that the choice of angle brackets or double 
quotes in
            an #include directive does not in itself determine whether 
            header will appear in -MM dependency output.  This is a 
            change in semantics from GCC versions 3.0 and earlier.

So it doesn't think that /usr/X11R6/include is a system header
directory; I guess we should use the "-isystem" option instead of "-I",
but that would make it even harder to compile OCaml without gcc.

-- Damien