ocaml-cross / opam-cross-android

An OCaml cross-toolchain for Android and several useful libraries
105 stars 15 forks source link

The `-f` switch missing when install android-ndk-linux #27

Closed Kakadu closed 7 years ago

Kakadu commented 7 years ago

Or something like that. Probably need to investigate

ARCH=arm SUBARCH=armv7 SYSTEM=linux_eabi \
  CCARCH=arm TOOLCHAIN=arm-linux-androideabi-4.9 \
  TRIPLE=arm-linux-androideabi LEVEL=24 \
  STLVER=4.9 STLARCH=armeabi \
  opam install conf-android -v
The following actions will be performed:
  ∗  install android-ndk-linux 11c            [required by conf-android]
  ∗  install conf-android      1  
===== ∗  2 =====
Do you want to continue ? [Y/n] y

=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+ mkdir "-p" "/home/kakadu/.opam/4.04.0+32bit/android-ndk" (CWD=/home/kakadu/.opam/4.04.0+32bit/.opam-switch/build/android-ndk-linux.11c)
+ sh "-c" "mv * /home/kakadu/.opam/4.04.0+32bit/android-ndk/" (CWD=/home/kakadu/.opam/4.04.0+32bit/.opam-switch/build/android-ndk-linux.11c)
+ sh "-c" "cd /home/kakadu/.opam/4.04.0+32bit/android-ndk/ && rm android-ndk-*.env android-ndk-*.info android-ndk-*.err android-ndk-*.out" (CWD=/home/kakadu/.opam/4.04.0+32bit/.opam-switch/build/android-ndk-linux.11c)
- rm: cannot remove 'android-ndk-*.err': No such file or directory
[ERROR] The installation of android-ndk-linux failed at "sh -c cd /home/kakadu/.opam/4.04.0+32bit/android-ndk/ && rm android-ndk-*.env android-ndk-*.info android-ndk-*.err
        android-ndk-*.out".
+ rm "-rf" "/home/kakadu/.opam/4.04.0+32bit/android-ndk" (CWD=/home/kakadu/.opam/4.04.0+32bit/.opam-switch/remove/android-ndk-linux.11c)

#=== ERROR while installing android-ndk-linux.11c =============================#
# command      sh -c cd /home/kakadu/.opam/4.04.0+32bit/android-ndk/ && rm android-ndk-*.env android-ndk-*.info android-ndk-*.err android-ndk-*.out
# path         /home/kakadu/.opam/4.04.0+32bit/.opam-switch/build/android-ndk-linux.11c
# exit-code    1
# env-file     /home/kakadu/.opam/4.04.0+32bit/.opam-switch/build/android-ndk-linux.11c/android-ndk-linux-15484-6d07ae.env
# output-file  /home/kakadu/.opam/4.04.0+32bit/.opam-switch/build/android-ndk-linux.11c/android-ndk-linux-15484-6d07ae.out
### output ###
# rm: cannot remove 'android-ndk-*.err': No such file or directory

=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
┌─ The following actions were aborted
│ ∗  install conf-android 1
└─ 
┌─ The following actions failed
│ ∗  install android-ndk-linux 11c
└─ 
╶─ No changes have been performed
'opam install conf-android -v' failed.