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

Just question about compile ocaml in termux #1

Closed
wants to merge 1 commit into from

Commits on Jun 28, 2018

  1. Just question about compile ocaml in termux

    Hi ygrek,
    Sorry for bother you, please ignore this PR I just wanted a way to ask you about this tutorial: http://ygrek.org.ua/p/ocaml-termux.html
    I just gave it a try to the second way (True way) and did not have any luck.
    I tried a couple of time and got the same error: 
    ```
    $ make world.opt install
    make -C byterun  all
    make[1]: Entering directory '/data/data/com.termux/files/home/ocaml/byterun'
    gcc -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -Wl,-E -Wl,-E -o ocamlrun prims.o libcamlrun.a -lm  -lcurses -lpthread
    libcamlrun.a(signals.o): In function `caml_try_leave_blocking_section_default':
    /data/data/com.termux/files/home/ocaml/byterun/signals.c:101: undefined reference to `__atomic_exchange_4'
    clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)
    make[1]: *** [Makefile:181: ocamlrun] Error 1
    make[1]: Leaving directory '/data/data/com.termux/files/home/ocaml/byterun'
    make: *** [Makefile:384: coldstart] Error 2
    ```
    I would like to install opam to be able to install Bucklescript later.
    What do you think is happening if you don't mind... thank you very much in advance for shared this article with the community.
    Some details:
    termux 0.63
    
    uname -a
    Linux localhost 3.18.31-perf-g2830021-00101-g31fe6a0 ygrek#1 SMP PREEMPT Thu Mar 29 04:06:50 CDT 2018 armv7l Android
    
    branch
    * termux-4.06.1
    
    ld -v                                               
    GNU ld (GNU Binutils) 2.30
    
    Cheers.
    salc2 authored Jun 28, 2018
    Configuration menu
    Copy the full SHA
    cbd565b View commit details
    Browse the repository at this point in the history