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
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
```
$ 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


termux 0.63

uname -a
Linux localhost 3.18.31-perf-g2830021-00101-g31fe6a0 #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
```