[Teaching] opam installation problem

Nicolas Ojeda Bar no263 at dpmms.cam.ac.uk
Sun Feb 8 21:03:53 GMT 2015


Hi Robert,

What version of ocaml are you using?  This was fixed shortly after 10.10
was released.  See <http://caml.inria.fr/mantis/view.php?id=6346> for
details.

Cheers,
Nicolas

On Sunday, February 8, 2015, Robert Muller <robert.muller2 at gmail.com> wrote:

> Greetings, things have gone sideways for me with opam since upgrading my
> OSX to 10.10.  In particular, my attempt to reinstall Kenichi Asai's
> Universe library is failing because opam is failing in its attempt to
> install lablgtk. I'm pretty sure this problem is solved somewhere but I'm
> not finding a solution or workaround.
>
> I'm pretty sure this isn't the right forum for posting this sort of
> problem, but I checked the opam FAQ and couldn't find any other obvious
> spot, and I've been seeing traffic relating to problems with opam. Hints as
> to where to post this kind of thing would be appreciated.
>
> Anyway, as far as I can tell, the gcc compiler seems to fail because it's
> invoked with a switch:
>
> -fno-defer-pop
>
> that it doesn't recognize. I'm under the impression that earlier versions
> of Xcode treated this as a warning rather than an error, but I'm getting:
>
> # clang: error: unknown argument: '-fno-defer-pop'
> I'm running OSX 10.10.1 and Xcode 6.1.1. Any hints appreciated.
>
> Thanks,
> Bob Muller
>
> -----------------------------
>
> #=== *ERROR* *while installing lablgtk.2.18.3*
> ====================================#
>
> # opam-version 1.2.0
>
> # os           darwin
>
> # command      make world
>
> # path         /Users/muller/.opam/system/build/lablgtk.2.18.3
>
> # compiler     system (4.01.0)
>
> # exit-code    2
>
> # env-file
> /Users/muller/.opam/system/build/lablgtk.2.18.3/lablgtk-36443-e4db2f.env
>
> # stdout-file
> /Users/muller/.opam/system/build/lablgtk.2.18.3/lablgtk-36443-e4db2f.out
>
> # stderr-file
> /Users/muller/.opam/system/build/lablgtk.2.18.3/lablgtk-36443-e4db2f.err
>
> ### stdout ###
>
> # ...[truncated]
>
> #
>
> #         debug           no
>
> # -e      C compiler      gcc
>
> # /Applications/Xcode.app/Contents/Developer/usr/bin/make -C src world
>
> # ocamlc.opt -c -pp "camlp4o -impl" -impl varcc.ml4
>
> # ocamlc.opt   -o varcc varcc.cmo
>
> # rm -f *_tags.h *_tags.c
>
> # ./varcc gdkpixbuf_tags.var
>
> # ./varcc gdk_tags.var
>
> # ocamlc.opt -c -ccopt '-DG_DISABLE_ASSERT -DG_DISABLE_CAST_CHECKS
> -D_REENTRANT -I/opt/X11/include -I/opt/X11/include/cairo
> -I/opt/X11/include/pixman-1 -I/opt/X11/include/libpng15 -I/opt/X11/include
> -I/opt/X11/include/freetype2 -I/opt/local/include/libglade-2.0
> -I/opt/local/include/libxml2 -I/opt/local/include/libgnomecanvas-2.0
> -I/opt/local/include/gail-1.0 -I/opt/local/include/libart-2.0
> -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include
> -I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0/
> -I/opt/local/include/atk-1.0 -I/opt/local/include/gdk-pixbuf-2.0
> -I/opt/local/include/libpng16 -I/opt/local/include/pango-1.0
> -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0
> -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
> -I/opt/local/include  -imacros ml_domain.h -O' -verbose ml_gdkpixbuf.c
>
> ### stderr ###
>
> # + gcc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT  -c
> -DG_DISABLE_ASSERT -DG_DISABLE_CAST_CHECKS -D_REENTRANT -I/opt/X11/include
> -I/opt/X11/include/cairo -I/opt/X11/include/pixman-1
> -I/opt/X11/include/libpng15 -I/opt/X11/include -I/opt/X11/include/freetype2
> -I/opt/local/include/libglade-2.0 -I/opt/local/include/libxml2
> -I/opt/local/include/libgnomecanvas-2.0
> -I/opt/local/include/gail-...[truncated]
>
> # clang: error: unknown argument: '-fno-defer-pop'
>
> # make[1]: *** [ml_gdkpixbuf.o] Error 2
>
> # make: *** [world] Error 2
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ocaml.org/pipermail/teaching/attachments/20150208/193621cd/attachment.html>


More information about the Teaching mailing list