Hi everyone! I am also applying for this internship and very excited about starting to contribute!
I have run into a few issues starting off. I thought this may be the right place to ask questions (we could establish a channel in OCaml discord or smth? for better communication between ocaml compiler starters)
- I started by creating an empty opam switch and building the compiler from clone of ocaml repo
trunk branch into that switch. Is this the right way to go about getting the dev version of the compiler?
opam switch does not show the compiler for my switch.
# switch compiler description
→ ocaml_dev ocaml_dev
- I am currently working on writing some material for the ocaml tutorial (manual). I am nearly done with the content but cannot wrap my head around "make"ing the manual. I’m closely following the instructions on building the docs but get errors.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C tools clean
rm -f *.o *.cm? *.cmx?
rm -f transf.ml htmltransf.ml
rm -f texquote2 transf
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C tools all
../../runtime/ocamlrun ../../ocamlc -nostdlib -I ../../stdlib -I ../../otherlibs/str -I ../../otherlibs/unix -o texquote2 texquote2.ml
**make: ../../runtime/ocamlrun: No such file or directory**
make: *** [texquote2] Error 1
make: *** [tools] Error 2
I do not understand why the makefile thinks there needs to be ocamlrun in
I tried to run
ocaml_repo/manual/manual but also got an error:
shell $ make
/Users/ulugbekna/code/ocaml/ocaml_source/runtime/ocamlrun ../tools/texquote2 < allfiles.etex > allfiles.texquote_error.tex
/bin/sh: /Users/ulugbekna/code/ocaml/ocaml_source/runtime/ocamlrun: No such file or directory
make: *** [allfiles.tex] Error 127
Does anybody know how to tackle this? @Lereena have you managed to build the docs?
- Does building the ocaml from source make it impossible to get packages from opam? Currently, if I want to get a package, I have to build that package from source, e.g. qcheck (for efftester program generator). Any ideas here?
Thank a lot, sorry for a long post