Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000766OCamlOCaml generalpublic2001-12-30 23:442002-01-09 20:41
Reporteradministrator 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000766: [ocaml-3.04] Error with 'make camlp4optopt' on OS X 10.1.2
DescriptionGreetings, thanks for all the excellent work on ocaml. This is a tiny
bug report on building under OS X, 10.1.2. While I've composed this,
I'll also mention in passing that although strongly attracted to the
great technical capabilities of ocaml -- wide platform support,
brilliant compiler, good libraries and community -- I am still avoiding
significant use of ocaml with a key reason being the very heavy
syntax. Compared to languages like Lisp, Python, and Haskell for
example, I find ocaml more difficult to remember and visually
distracting (eg. the reliance on the overly black ';' character where
spaces, commas or periods might be used in other languages.) I have
been through this pull-push ambivalence several times with ocaml and not
yet convinced myself to work with it very much. I hope you will
consider an eventual migration to a lighter, more easy to remember and
visually appealing syntax -- to better complement ocaml's many other
great features.

Best regards,

John


Bug report:

Building ocaml-3.04 on OS X 10.1.2, there seems to be a problem making
    camlp4optopt

This is triggered with
    make opt.opt
which makes that one additional target,

    opt.opt: ocamlc.opt ocamlopt.opt ocamllex.opt camlp4optopt

Note: that the directions in the INSTALL file for building separately
don't mention that target:
         make ocamlc.opt # to build a native-code version of
ocamlc
         make ocamlopt.opt # to build a native-code version of
ocamlopt
         make ocamllex.opt # to build a native-code version of
ocamllex
or
         make opt.opt # to build all of them

so I only encountered the error when doing 'make opt.opt'

The log follows. Everything builds find until the 'make camp4optopt'
command. Let me know if you would like the rest of the build logs.

% ./configure >> & /tmp/o.log
% make world >> & /tmp/o.log
% make bootstrap >> & /tmp/o.log
% make opt >> & /tmp/o.log
% make ocamlc.opt >> & /tmp/o.log
% make ocamlopt.opt >> & /tmp/o.log
% make ocamllex.opt >> & /tmp/o.log
% make camlp4optopt

cd camlp4; make optp4
set -e; for i in lib odyl camlp4 meta etc; do cd $i; make opt; cd ..;
done
make[2]: Nothing to be done for `opt'.
cp odyl_config.ml odyl_config.ppo
../../boot/ocamlrun ../../ocamlopt -I ../../stdlib -I
../../otherlibs/dynlink -c -impl odyl_config.ppo
rm -f odyl_config.ppo
OTOP=../.. OPT= EXE= ../tools/camlp4_comm.sh -nolib -DOPT -o
odyl_main.ppo odyl_main.ml
../../boot/ocamlrun ../boot/camlp4r -nolib -I ../boot pa_ifdef.cmo
-nolib -DOPT -o odyl_main.ppo odyl_main.ml
../../boot/ocamlrun ../../ocamlopt -I ../../stdlib -c -impl odyl_main.ppo
rm -f odyl_main.ppo
../../boot/ocamlrun ../../ocamlopt -I ../../stdlib -I
../../otherlibs/dynlink odyl_config.cmx odyl_main.cmx -a -o odyl.cmxa
../../boot/ocamlrun ../boot/camlp4r -nolib -I ../boot -o odyl.ppo odyl.ml
../../boot/ocamlrun ../../ocamlopt -I ../../stdlib -I
../../otherlibs/dynlink -c -impl odyl.ppo
rm -f odyl.ppo
../../boot/ocamlrun ../boot/camlp4r -nolib -I ../boot -o quotation.ppo
quotation.ml
../../boot/ocamlrun ../../ocamlopt -I ../../stdlib -I ../odyl -I ../boot
-I ../../utils -I ../../parsing -I ../../otherlibs/dynlink -c -impl
quotation.ppo
rm -f quotation.ppo
../../boot/ocamlrun ../boot/camlp4r -nolib -I ../boot -o ast2pt.ppo
ast2pt.ml
../../boot/ocamlrun ../../ocamlopt -I ../../stdlib -I ../odyl -I ../boot
-I ../../utils -I ../../parsing -I ../../otherlibs/dynlink -c -impl
ast2pt.ppo
rm -f ast2pt.ppo
../../boot/ocamlrun ../boot/camlp4r -nolib -I ../boot -o spretty.ppo
spretty.ml
../../boot/ocamlrun ../../ocamlopt -I ../../stdlib -I ../odyl -I ../boot
-I ../../utils -I ../../parsing -I ../../otherlibs/dynlink -c -impl
spretty.ppo
rm -f spretty.ppo
../../boot/ocamlrun ../boot/camlp4r -nolib -I ../boot -o reloc.ppo
reloc.ml
../../boot/ocamlrun ../../ocamlopt -I ../../stdlib -I ../odyl -I ../boot
-I ../../utils -I ../../parsing -I ../../otherlibs/dynlink -c -impl
reloc.ppo
rm -f reloc.ppo
../../boot/ocamlrun ../boot/camlp4r -nolib -I ../boot pa_extend.cmo -o
pcaml.ppo pcaml.ml
../../boot/ocamlrun ../../ocamlopt -I ../../stdlib -I ../odyl -I ../boot
-I ../../utils -I ../../parsing -I ../../otherlibs/dynlink -c -impl
pcaml.ppo
rm -f pcaml.ppo
../../boot/ocamlrun ../boot/camlp4r -nolib -I ../boot q_MLast.cmo -o
argl.ppo argl.ml
../../boot/ocamlrun ../../ocamlopt -I ../../stdlib -I ../odyl -I ../boot
-I ../../utils -I ../../parsing -I ../../otherlibs/dynlink -c -impl
argl.ppo
rm -f argl.ppo
../../boot/ocamlrun ../../ocamlopt -I ../../stdlib -I ../odyl -I ../boot
-I ../../utils -I ../../parsing -I ../../otherlibs/dynlink
../lib/stdpp.cmx ../lib/token.cmx ../lib/plexer.cmx ../lib/gramext.cmx
../lib/grammar.cmx ../lib/extfun.cmx ../lib/fstream.cmx
../../utils/config.cmx quotation.cmx ast2pt.cmx spretty.cmx reloc.cmx
pcaml.cmx argl.cmx -a -o camlp4.cmxa
../../boot/ocamlrun ../boot/camlp4r -nolib -I ../boot pa_extend.cmo
q_MLast.cmo -o pa_r.ppo pa_r.ml
../../boot/ocamlrun ../../ocamlopt -I ../../stdlib -I ../camlp4 -I
../boot -I ../../utils -c -impl pa_r.ppo
make[2]: *** [pa_r.cmx] Error 139
make[1]: *** [optp4] Error 2
make: *** [camlp4optopt] Error 2

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000789)
administrator (administrator)
2001-12-31 11:04

Hi,

On Mon, Dec 31, 2001 at 08:44:18AM +0100, jbthiel@pobox.com wrote:

> Building ocaml-3.04 on OS X 10.1.2, there seems to be a problem making
> camlp4optopt

This is a known bug under MacOS X and some other systems. See bug 0000723:
    http://caml.inria.fr/bin/caml-bugs/incoming?id=723 [^]

In the meantime, just remove the call to camlp4optopt in the Makefile:
this is optional. You will get no camlp4o.opt, that's all, but you can
use camlp4o.

--
Daniel de RAUGLAUDRE
daniel.de_rauglaudre@inria.fr
http://cristal.inria.fr/~ddr/ [^]

(0000790)
administrator (administrator)
2002-01-04 14:26

Same bug as PR#723

- Issue History
Date Modified Username Field Change
2005-11-18 10:13 administrator New Issue


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker