wiki:TipAndDoc/service/Google/Drive/error_on_google-drive-ocamlfuse-0.6.7-1

pre-installed

  • $ pacaur -Q linux pacaur cower
    linux 4.10.3-1
    pacaur 4.7.5-1
    cower 16-1
    
    cppo 1.4.0-1
    gapi-ocaml 0.3.1-1
    ocaml-biniou 1.0.12-1
    ocaml-cryptokit 1.11-2
    ocaml-curl 0.5.3-5
    ocaml-easy-format 1.2.0-1
    ocaml-extlib 1.7.1-1
    ocaml-pcre 7.2.3-2
    ocaml-sqlite3 4.0.5-2
    ocaml-xmlm 1.2.0-1
    ocaml-yojson 1.3.3-1
    ocamlfuse 2.7.1-6
    ocamlnet 4.1.2-2
    zarith 1.4.1-4
    aspcud 1.9.1-1
    clasp 3.2.1-1
    clingo 5.1.0-1
    fuse-common 3.0.0-1
    fuse2 2.9.7-3
    ocaml 4.04.0-1
    ocaml-findlib 1.7.1-1
    ocamlbuild 0.9.3-1
    opam 1.2.2-2
    

Cannot find file /usr/lib/ocaml/camlidl/com.cmxa

  • $ pacaur -S google-drive-ocamlfuse
    :: Package google-drive-ocamlfuse not found in repositories, trying AUR...
    :: resolving dependencies...
    :: looking for inter-conflicts...
    
    AUR Packages  (1) google-drive-ocamlfuse-0.6.7-1
    
    :: Proceed with installation? [Y/n]
    
    :: Retrieving package(s)...
    :: google-drive-ocamlfuse build files are up-to-date -- skipping
    :: Checking google-drive-ocamlfuse integrity...
    ==> Making package: google-drive-ocamlfuse 0.6.7-1 (Mon Mar 20 15:52:26 JST 2017)
    ==> Retrieving sources...
      -> Found v0.6.7.tar.gz
    ==> Validating source files with md5sums...
        v0.6.7.tar.gz ... Passed
    :: Building google-drive-ocamlfuse package(s)...
    ==> Making package: google-drive-ocamlfuse 0.6.7-1 (Mon Mar 20 15:52:26 JST 2017)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> WARNING: Using existing $srcdir/ tree
    ==> Removing existing $pkgdir/ directory...
    ==> Starting build()...
    
    Configuration:
    ocamlfind: ........................................... /usr/bin/ocamlfind
    ocamlc: .............................................. /usr/bin/ocamlc.opt
    ocamlopt: ............................................ /usr/bin/ocamlopt.opt
    ocamlbuild: .......................................... /usr/bin/ocamlbuild
    Package name: ........................................ google-drive-ocamlfuse
    Package version: ..................................... 0.6.7
    os_type: ............................................. Unix
    system: .............................................. linux
    architecture: ........................................ amd64
    ccomp_type: .......................................... cc
    ocaml_version: ....................................... 4.04.0
    standard_library_default: ............................ /usr/lib/ocaml
    standard_library: .................................... /usr/lib/ocaml
    standard_runtime: .................................... /usr/bin/ocamlrun
    bytecomp_c_compiler: ................................. gcc -std=gnu99 -O2 -fno-strict-aliasing -fwrapv -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC
    native_c_compiler: ................................... gcc -std=gnu99 -O2 -fno-strict-aliasing -fwrapv -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
    model: ............................................... default
    ext_obj: ............................................. .o
    ext_asm: ............................................. .s
    ext_lib: ............................................. .a
    ext_dll: ............................................. .so
    default_executable_name: ............................. a.out
    systhread_supported: ................................. true
    Install architecture-independent files dir: .......... /usr
    Install architecture-dependent files in dir: ......... /home/mitty/.cache/pacaur/google-drive-ocamlfuse/pkg/google-drive-ocamlfuse/usr
    User executables: .................................... $exec_prefix/bin
    System admin executables: ............................ $exec_prefix/sbin
    Program executables: ................................. $exec_prefix/libexec
    Read-only single-machine data: ....................... $prefix/etc
    Modifiable architecture-independent data: ............ $prefix/com
    Modifiable single-machine data: ...................... $prefix/var
    Object code libraries: ............................... $exec_prefix/lib
    Read-only arch-independent data root: ................ $prefix/share
    Read-only architecture-independent data: ............. $datarootdir
    Info documentation: .................................. $datarootdir/info
    Locale-dependent data: ............................... $datarootdir/locale
    Man documentation: ................................... $datarootdir/man
    Documentation root: .................................. $datarootdir/doc/$pkg_name
    HTML documentation: .................................. $docdir
    DVI documentation: ................................... $docdir
    PDF documentation: ................................... $docdir
    PS documentation: .................................... $docdir
    Prepend a path when installing package: .............. /home/mitty/.cache/pacaur/google-drive-ocamlfuse/pkg/google-drive-ocamlfuse
    findlib_version: ..................................... 1.7.1
    is_native: ........................................... true
    suffix_program: ......................................
    Remove a file.: ...................................... rm -f
    Remove a directory.: ................................. rm -rf
    Turn ocaml debug flag on: ............................ true
    Turn ocaml profile flag on: .......................... false
    Compiler support generation of .cmxs.: ............... true
    OCamlbuild additional flags: .........................
    Create documentations: ............................... true
    Compile tests executable and library and run them: ... false
    pkg_gapi_ocaml: ...................................... /usr/lib/ocaml/gapi-ocaml
    pkg_fuse: ............................................ /usr/lib/ocaml/Fuse
    pkg_sqlite3: ......................................... /usr/lib/ocaml/sqlite3
    pkg_threads: ......................................... /usr/lib/ocaml
    pkg_camlidl: ......................................... /usr/lib/ocaml/camlidl
    
    Finished, 0 targets (0 cached) in 00:00:00.
    File "_tags", line 32, characters 22-31:
    Warning: the tag "pkg_oUnit" is not used in any flag or dependency declaration, so it will have no effect; it may be a typo. Otherwise you can use `mark_tag_used` in your myocamlbuild.ml to disable this warning.
    File "_tags", line 35, characters 18-27:
    Warning: the tag "pkg_oUnit" is not used in any flag or dependency declaration, so it will have no effect; it may be a typo. Otherwise you can use `mark_tag_used` in your myocamlbuild.ml to disable this warning.
    + /usr/bin/ocamlfind ocamlopt -g -linkpkg -package Fuse -package camlidl -package gapi-ocaml -package sqlite3 -package threads -thread src/appDir.cmx src/utils.cmx src/buffering.cmx src/config.cmx src/cache.cmx src/concurrentGlobal.cmx src/keyValueStore.cmx src/state.cmx src/threadPool.cmx src/context.cmx src/gaeProxy.cmx src/mime.cmx src/oauth2.cmx src/drive.cmx src/gdfuse.cmx -o src/gdfuse.native
    File "_none_", line 1:
    Error: Cannot find file /usr/lib/ocaml/camlidl/com.cmxa
    Command exited with code 2.
    Compilation unsuccessful after building 47 targets (46 cached) in 00:00:00.
    E: Failure("Command ''/usr/bin/ocamlbuild' src/gdfuse.native -tag debug' terminated with error code 10")
    ==> ERROR: A failure occurred in build().
        Aborting...
    :: failed to build google-drive-ocamlfuse package(s)
    

fix camlidl path

  • $ pacaur -Ql camlidl
    camlidl /usr/
    camlidl /usr/bin/
    camlidl /usr/bin/camlidl
    camlidl /usr/lib/
    camlidl /usr/lib/ocaml/
    camlidl /usr/lib/ocaml/caml/
    camlidl /usr/lib/ocaml/caml/camlidlruntime.h
    camlidl /usr/lib/ocaml/camlidl/
    camlidl /usr/lib/ocaml/camlidl/META
    camlidl /usr/lib/ocaml/com.a
    camlidl /usr/lib/ocaml/com.cma
    camlidl /usr/lib/ocaml/com.cmi
    camlidl /usr/lib/ocaml/com.cmxa
    camlidl /usr/lib/ocaml/libcamlidl.a
    camlidl /usr/share/
    camlidl /usr/share/licenses/
    camlidl /usr/share/licenses/camlidl/
    camlidl /usr/share/licenses/camlidl/LICENSE
    
  • mitty@google:~$ sudo ln -s /usr/lib/ocaml/com.a /usr/lib/ocaml/camlidl/
  • mitty@google:~$ sudo ln -s /usr/lib/ocaml/com.cma /usr/lib/ocaml/camlidl/
  • mitty@google:~$ sudo ln -s /usr/lib/ocaml/com.cmi /usr/lib/ocaml/camlidl/
  • mitty@google:~$ sudo ln -s /usr/lib/ocaml/com.cmxa /usr/lib/ocaml/camlidl/
  • mitty@google:~$ sudo ln -s /usr/lib/ocaml/libcamlidl.a /usr/lib/ocaml/camlidl/

re-install

  • $ pacaur -S google-drive-ocamlfuse
    :: Package google-drive-ocamlfuse not found in repositories, trying AUR...
    :: resolving dependencies...
    :: looking for inter-conflicts...
    
    AUR Packages  (1) google-drive-ocamlfuse-0.6.7-1
    
    :: Proceed with installation? [Y/n]
    
    :: Retrieving package(s)...
    :: google-drive-ocamlfuse build files are up-to-date -- skipping
    :: Checking google-drive-ocamlfuse integrity...
    ==> Making package: google-drive-ocamlfuse 0.6.7-1 (Mon Mar 20 16:21:46 JST 2017)
    ==> Retrieving sources...
      -> Found v0.6.7.tar.gz
    ==> Validating source files with md5sums...
        v0.6.7.tar.gz ... Passed
    :: Building google-drive-ocamlfuse package(s)...
    ==> Making package: google-drive-ocamlfuse 0.6.7-1 (Mon Mar 20 16:21:46 JST 2017)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> WARNING: Using existing $srcdir/ tree
    ==> Removing existing $pkgdir/ directory...
    ==> Starting build()...
    
    Configuration:
    ocamlfind: ........................................... /usr/bin/ocamlfind
    ocamlc: .............................................. /usr/bin/ocamlc.opt
    ocamlopt: ............................................ /usr/bin/ocamlopt.opt
    ocamlbuild: .......................................... /usr/bin/ocamlbuild
    Package name: ........................................ google-drive-ocamlfuse
    Package version: ..................................... 0.6.7
    os_type: ............................................. Unix
    system: .............................................. linux
    architecture: ........................................ amd64
    ccomp_type: .......................................... cc
    ocaml_version: ....................................... 4.04.0
    standard_library_default: ............................ /usr/lib/ocaml
    standard_library: .................................... /usr/lib/ocaml
    standard_runtime: .................................... /usr/bin/ocamlrun
    bytecomp_c_compiler: ................................. gcc -std=gnu99 -O2 -fno-strict-aliasing -fwrapv -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC
    native_c_compiler: ................................... gcc -std=gnu99 -O2 -fno-strict-aliasing -fwrapv -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
    model: ............................................... default
    ext_obj: ............................................. .o
    ext_asm: ............................................. .s
    ext_lib: ............................................. .a
    ext_dll: ............................................. .so
    default_executable_name: ............................. a.out
    systhread_supported: ................................. true
    Install architecture-independent files dir: .......... /usr
    Install architecture-dependent files in dir: ......... /home/mitty/.cache/pacaur/google-drive-ocamlfuse/pkg/google-drive-ocamlfuse/usr
    User executables: .................................... $exec_prefix/bin
    System admin executables: ............................ $exec_prefix/sbin
    Program executables: ................................. $exec_prefix/libexec
    Read-only single-machine data: ....................... $prefix/etc
    Modifiable architecture-independent data: ............ $prefix/com
    Modifiable single-machine data: ...................... $prefix/var
    Object code libraries: ............................... $exec_prefix/lib
    Read-only arch-independent data root: ................ $prefix/share
    Read-only architecture-independent data: ............. $datarootdir
    Info documentation: .................................. $datarootdir/info
    Locale-dependent data: ............................... $datarootdir/locale
    Man documentation: ................................... $datarootdir/man
    Documentation root: .................................. $datarootdir/doc/$pkg_name
    HTML documentation: .................................. $docdir
    DVI documentation: ................................... $docdir
    PDF documentation: ................................... $docdir
    PS documentation: .................................... $docdir
    Prepend a path when installing package: .............. /home/mitty/.cache/pacaur/google-drive-ocamlfuse/pkg/google-drive-ocamlfuse
    findlib_version: ..................................... 1.7.1
    is_native: ........................................... true
    suffix_program: ......................................
    Remove a file.: ...................................... rm -f
    Remove a directory.: ................................. rm -rf
    Turn ocaml debug flag on: ............................ true
    Turn ocaml profile flag on: .......................... false
    Compiler support generation of .cmxs.: ............... true
    OCamlbuild additional flags: .........................
    Create documentations: ............................... true
    Compile tests executable and library and run them: ... false
    pkg_gapi_ocaml: ...................................... /usr/lib/ocaml/gapi-ocaml
    pkg_fuse: ............................................ /usr/lib/ocaml/Fuse
    pkg_sqlite3: ......................................... /usr/lib/ocaml/sqlite3
    pkg_threads: ......................................... /usr/lib/ocaml
    pkg_camlidl: ......................................... /usr/lib/ocaml/camlidl
    
    Finished, 0 targets (0 cached) in 00:00:00.
    File "_tags", line 32, characters 22-31:
    Warning: the tag "pkg_oUnit" is not used in any flag or dependency declaration, so it will have no effect; it may be a typo. Otherwise you can use `mark_tag_used` in your myocamlbuild.ml to disable this warning.
    File "_tags", line 35, characters 18-27:
    Warning: the tag "pkg_oUnit" is not used in any flag or dependency declaration, so it will have no effect; it may be a typo. Otherwise you can use `mark_tag_used` in your myocamlbuild.ml to disable this warning.
    + /usr/bin/ocamlfind ocamlopt -g -linkpkg -package Fuse -package camlidl -package gapi-ocaml -package sqlite3 -package threads -thread src/appDir.cmx src/utils.cmx src/buffering.cmx src/config.cmx src/cache.cmx src/concurrentGlobal.cmx src/keyValueStore.cmx src/state.cmx src/threadPool.cmx src/context.cmx src/gaeProxy.cmx src/mime.cmx src/oauth2.cmx src/drive.cmx src/gdfuse.cmx -o src/gdfuse.native
    findlib: [WARNING] Interface com.cmi occurs in several directories: /usr/lib/ocaml/camlidl, /usr/lib/ocaml
    Finished, 47 targets (46 cached) in 00:00:00.
    ==> Starting check()...
    W: Tests are turned off, consider enabling with 'ocaml setup.ml -configure --enable-tests'
    ==> Entering fakeroot environment...
    ==> Starting package()...
    ==> Tidying install...
      -> Removing libtool files...
      -> Purging unwanted files...
      -> Stripping unneeded symbols from binaries and libraries...
      -> Compressing man and info pages...
    ==> Checking for packaging issue...
    ==> Creating package "google-drive-ocamlfuse"...
      -> Generating .PKGINFO file...
      -> Generating .BUILDINFO file...
      -> Generating .MTREE file...
      -> Compressing package...
    ==> Leaving fakeroot environment.
    ==> Finished making: google-drive-ocamlfuse 0.6.7-1 (Mon Mar 20 16:21:52 JST 2017)
    ==> Cleaning up...
    :: Installing google-drive-ocamlfuse package(s)...
    loading packages...
    resolving dependencies...
    looking for conflicting packages...
    
    Packages (1) google-drive-ocamlfuse-0.6.7-1
    
    Total Installed Size:  4.31 MiB
    
    :: Proceed with installation? [Y/n]
    (1/1) checking keys in keyring                                                                                                                [#######################################################################################] 100%
    (1/1) checking package integrity                                                                                                              [#######################################################################################] 100%
    (1/1) loading package files                                                                                                                   [#######################################################################################] 100%
    (1/1) checking for file conflicts                                                                                                             [#######################################################################################] 100%
    (1/1) checking available disk space                                                                                                           [#######################################################################################] 100%
    :: Processing package changes...
    (1/1) installing google-drive-ocamlfuse                                                                                                       [#######################################################################################] 100%
    :: Running post-transaction hooks...
    (1/1) Arming ConditionNeedsUpdate...
    
Last modified 9 months ago Last modified on Mar 20, 2017 4:25:39 PM