Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ocaml-3.04] Error with 'make camlp4optopt' on OS X 10.1.2 #3112

Closed
vicuna opened this issue Dec 30, 2001 · 2 comments
Closed

[ocaml-3.04] Error with 'make camlp4optopt' on OS X 10.1.2 #3112

vicuna opened this issue Dec 30, 2001 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Dec 30, 2001

Original bug ID: 766
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Greetings, 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

@vicuna
Copy link
Author

vicuna commented Dec 31, 2001

Comment author: administrator

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 #723:
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/

@vicuna
Copy link
Author

vicuna commented Jan 4, 2002

Comment author: administrator

Same bug as #3086

@vicuna vicuna closed this as completed Jan 9, 2002
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant