GODI-Batteries: Installation problems

巧了我就是萌 提交于 2019-12-11 03:25:40

问题


I am trying to install godi-batteries using GODI console. I seem to have all dependencies sorted (like Camomile). I get the following error within Godi's interface:

    > ocamlfind ocamlopt -shared -linkall -package camomile,num,str -o src/batteries_uni.cmxs src/batteries_uni.cmxa
    > + ocamlfind ocamlopt -shared -linkall -package camomile,num,str -o src/batteries_uni.cmxs src/batteries_uni.cmxa
    > ld: warning: -read_only_relocs cannot be used with x86_64
    > ld: codegen problem, can't use rel32 to external symbol _caml_negf_mask in .L101 from src/batteries_uni.a(batFloat.o)
    > collect2: ld returned 1 exit status
    > File "caml_startup", line 1, characters 0-1:
    > Error: Error during linking
    > Command exited with code 2.
    > make[7]: *** [all] Error 10
    > Error: Exec error: File /Users/surikator/godi/build/godi/godi-batteries/./../../mk/bsd.pkg.mk, line 1039: Command returned with non-zero exit code
    > Error: Exec error: File /Users/surikator/godi/build/godi/godi-batteries/./../../mk/bsd.pkg.mk, line 1378: Command returned with non-zero exit code

I'm using Mac OS X 10.6.4. and I have a 64 bit machine.

Any ideas on how to go around this?

Thanks, Surikator.


回答1:


For some reason, OSX OCaml can't build shared libraries. You'll have to disable batteries' building of shared libraries with

BATTERIES_NATIVE_SHLIB=no make

This problem has been fixed in git commit 92b323, and will be included in the next release.



来源:https://stackoverflow.com/questions/4658877/godi-batteries-installation-problems

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!