ocaml-omake / omake

The new home of OMake - docs, downloads, mailing list etc. see:
http://projects.camlcity.org/projects/omake.html
GNU General Public License v2.0
67 stars 25 forks source link

Filename cases going wrong on MacOS #160

Open andiejs opened 3 weeks ago

andiejs commented 3 weeks ago

Everything works fine on Linux. My colleague @caseybasichis is trying to get our system going on his MacOS and there's some odd behavior running omake, where ocamlfind seems to be looking for the files with the wrong initial case -- everything is lowercase, files exist in the system in lowercase, and for certain files it's searching for and not finding the file in uppercase.

In particular Arr.cmo, L1.cmo, Hash.cmo are mentioned wheras it should be arr.cmo, l1.cmo, hash.cmo. The lowercase files are present.

  Entered /Users/caseybasichis/shape/ocaml_lib/ext
*** omake: reading OMakefiles
*** omake: finished reading OMakefiles (0.00 sec)
- build . ext.cma
+ ocamlfind ocamlc -package easy-format -w y -g -a -o ext.cma ext_fail.cmo Arr.cmo L1.cmo s1.cmo cis_orig.cmo bitv.cmo vec.cmo l2.cmo lSet.cmo listSet.cmo Hash.cmo linkedList.cmo roman.cmo files.cmo multiset.cmo listMset.cmo setMemo.cmo uunix.cmo
File "_none_", line 1:
Error: Cannot find file Arr.cmo

I'm aware that MacOS has some weird case behavior but here the files have the right case and only the ocamlfind call, generated by omake, is incorrect. The OMakefile has the correct lowercases. Any insight appreciated!

andiejs commented 2 weeks ago

Solved, the issue was it's demanding the OMakefile list the files in dependency order, which previously wasn't enforced.