Package Details: google-drive-ocamlfuse 0.7.27-1

Git Clone URL: https://aur.archlinux.org/google-drive-ocamlfuse.git (read-only, click to copy)
Package Base: google-drive-ocamlfuse
Description: FUSE-based file system backed by Google Drive, written in OCaml
Upstream URL: https://astrada.github.io/google-drive-ocamlfuse/
Keywords: drive fuse google ocaml
Licenses: MIT
Submitter: mlq
Maintainer: pricechrispy
Last Packager: pricechrispy
Votes: 60
Popularity: 0.052206
First Submitted: 2013-10-14 21:44 (UTC)
Last Updated: 2022-01-20 04:48 (UTC)

Pinned Comments

pricechrispy commented on 2018-01-27 00:47 (UTC) (edited on 2018-01-27 00:51 (UTC) by pricechrispy)

Another error now exists with the camlidl package on a fresh build system.

In this case, the package is no longer creating a required file called "META". This prevents camlidl from showing up as installed, and prevents the package from building.

If you run "ocamlfind list | grep -i 'camlidl'", you should see the camlidl packages listed.

If not, manually create the META file: /usr/lib/ocaml/camlidl/META

description = "Stub generator"
version = "1.06"
directory = "^"
archive(byte) = "com.cma"
archive(native) = "com.cmxa"

pricechrispy commented on 2017-04-25 17:39 (UTC) (edited on 2017-06-03 18:32 (UTC) by pricechrispy)

Before you flag this package out-of-date: According to the official project page: https://astrada.github.io/google-drive-ocamlfuse/ Find latest release versions here: https://launchpad.net/~alessandro-strada/+archive/ubuntu/ppa The latest releases are not all tagged versions on GitHub. For the latest development versions on git, try: https://aur.archlinux.org/packages/google-drive-ocamlfuse-git OLD official project page: http://gdfuse.forge.ocamlcore.org/ OLD release versions here: https://forge.ocamlcore.org/frs/?group_id=305

pricechrispy commented on 2016-11-17 10:46 (UTC) (edited on 2017-06-03 18:34 (UTC) by pricechrispy)

While upgrading to the newer build, the same build error persists as reported in the comments. When doing a fresh build, I manually created symlinks as root so that the build process finds them, as similarly suggested in the comments. # ln -s /usr/lib/ocaml/com.cmxa /usr/lib/ocaml/camlidl/ # ln -s /usr/lib/ocaml/com.a /usr/lib/ocaml/camlidl/ After doing this, the directory '/usr/lib/ocaml/camlidl/' should have the following structure in a fresh environment: $ ls -l /usr/lib/ocaml/camlidl/ total 4 lrwxrwxrwx 1 root root 20 Nov 17 02:23 com.a -> /usr/lib/ocaml/com.a lrwxrwxrwx 1 root root 23 Nov 17 02:23 com.cmxa -> /usr/lib/ocaml/com.cmxa -rw-r--r-- 1 root root 102 Nov 17 01:11 META As suggested in the comments, this seems to be an issue with the camlidl package. This should allow the package to build for now, until an automated PKGBUILD solution is found.

Latest Comments

sunplan commented on 2022-05-11 06:28 (UTC)

It seems that /usr/doc should be /usr/share/doc.

sgt-hartman commented on 2022-02-03 19:18 (UTC)

@snakeroot

Thank's for reporting this. Unfortunatelly the error pointed by the issue is installation on Manjaro through Pamac, which seems to use AUR as a backend. I don't think this is an upstream issue.

snakeroot commented on 2022-02-03 18:49 (UTC)

@sgt-hartman / @dangpzanco

Note that this has been reported as an issue in upstream's GitHub:

https://github.com/astrada/google-drive-ocamlfuse/issues/750

sgt-hartman commented on 2022-01-25 08:08 (UTC) (edited on 2022-01-25 08:10 (UTC) by sgt-hartman)

I have the same issue as @dangpzanco:

==> Starting build()...
File "src/drive.ml", line 478, characters 15-31:
478 |     match file.File.resourceKey with "" -> None | _ as s -> Some s

Error: Unbound record field File.resourceKey
==> ERROR: A failure occurred in build().
    Aborting...

That's right each time this package is upgraded the process is not really as smooth as it should be, it breaks because of compiler version mismatches or something. But on the other hand, as a simple user, it really bother me to install specific programming languages tools only to install a package. Theses tools tend to pollute $HOME directory and you have to remember to look for updates by yourself. Maybe this package could be refactored to use theses tools "internally" during the build ?

dangpzanco commented on 2022-01-21 05:54 (UTC) (edited on 2022-01-21 06:12 (UTC) by dangpzanco)

I think @JayKobe6k's suggestion is the easiest way of installing and keeping this package updated. Here's what I did to install this:

Remove google-drive-ocamlfuse and its dependencies (this is necessary to have a clean install of ocamlbuild via opam) and install opam via pacman (this will also reinstall ocaml, see instructions here). Then you may run:

> opam init
> eval $(opam env)
> opam install google-drive-ocamlfuse

opam init creates a folder at ~/.opam, where it keeps the google-drive-ocamlfuse executable and other stuff. It will ask to be added to your ~/.zshrc or ~/.bashrc script. Seems to be really easy to use, kinda like cargo (Rust), npm (JavaScript) and conda (Python).

areaman commented on 2022-01-21 03:46 (UTC)

I received this message when I tried to update this to the latest version:

==> Starting build()... File "src/config.ml", line 1: Error: The files src/.google_drive_ocamlfuse.objs/byte/utils.cmi and /usr/lib/ocaml/curl/curl.cmi make inconsistent assumptions over interface Curl ==> ERROR: A failure occurred in build(). Aborting...

JayKobe6k commented on 2022-01-20 18:20 (UTC)

This package is generally a nightmare. Opam is the package manager for ocaml and it is much easier to use for installing this package. This package expects specific versions of things to be installed which causes lots of issues, while the opam version is more aware of its build environment and figures out the dependencies properly.

Probably better to just look here: https://opam.ocaml.org/packages/google-drive-ocamlfuse/

dangpzanco commented on 2022-01-20 12:33 (UTC) (edited on 2022-01-25 17:54 (UTC) by dangpzanco)

Fails to build on the latest version (running Manjaro here). It worked fine on version 0.7.26

Building google-drive-ocamlfuse...
==> Making package: google-drive-ocamlfuse 0.7.27-1 (qui 20 jan 2022 09:31:34)
...
==> Starting build()...
File "src/drive.ml", line 478, characters 15-31:
478 |     match file.File.resourceKey with "" -> None | _ as s -> Some s
                     ^^^^^^^^^^^^^^^^
Error: Unbound record field File.resourceKey
==> ERROR: A failure occurred in build().
    Aborting...

galacta_dm commented on 2022-01-20 07:39 (UTC)

I encountered an error while updating "google-drive-ocamlfuse" package. I also tried rebuilding dependencies but I got the same error.

==> Starting build()...
File "src/config.ml", line 1:
Error: The files src/.google_drive_ocamlfuse.objs/byte/utils.cmi
       and /usr/lib/ocaml/curl/curl.cmi make inconsistent assumptions
       over interface Curl
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'google-drive-ocamlfuse-0.7.27-1': 
error: packages failed to build: google-drive-ocamlfuse-0.7.27-1

Does anyone encounter the same error or have a solution for this?

pricechrispy commented on 2021-08-15 00:28 (UTC)

This package can be difficult to build on a system you've already built it, after dependencies get updated.

Some users have had luck removing things in a certain way, in order to rebuild. For example, see: https://aur.archlinux.org/packages/gapi-ocaml/

I use a build server to build cleanly every time.

RyderSJ commented on 2021-07-07 00:04 (UTC)

Have looked everywhere but can't seem to be able to figure out how to build it. I've tried going through and installing the dune libraries that it requests to no avail.

==> Starting build()... File "src/gapi/dune", line 5, characters 63-69: 5 | (libraries extlib netsys threads netstring curl str cryptokit yojson) ^^^^^^ Error: Library "yojson" not found. Hint: try: dune external-lib-deps --missing @install File "src/gdata/dune", line 5, characters 23-27: 5 | (libraries gapi-ocaml xmlm) ^^^^ Error: Library "xmlm" not found. Hint: try: dune external-lib-deps --missing @install ==> ERROR: A failure occurred in build(). Aborting... error: failed to build 'gapi-ocaml-0.3.19-2': ==> Making package: google-drive-ocamlfuse 0.7.26-2 (Wed 07 Jul 2021 12:01:38) ==> Retrieving sources... -> Found google-drive-ocamlfuse-0.7.26.tar.gz ==> Validating source files with sha256sums... google-drive-ocamlfuse-0.7.26.tar.gz ... Passed ==> Making package: google-drive-ocamlfuse 0.7.26-2 (Wed 07 Jul 2021 12:01:38) ==> Checking runtime dependencies... ==> Missing dependencies: -> gapi-ocaml>=0.3.19 ==> Checking buildtime dependencies... ==> ERROR: Could not resolve all dependencies. error: failed to build 'google-drive-ocamlfuse-0.7.26-2': error: packages failed to buid: gapi-ocaml-0.3.19-2 google-drive-ocamlfuse-0.7.26-2

frojnd commented on 2021-06-24 10:46 (UTC) (edited on 2021-06-24 10:47 (UTC) by frojnd)

@pricechrispy I'm trying to install this package but I get: File "src/dune", line 5, characters 40-49: 5 | (libraries cryptokit extlib gapi-ocaml ocamlfuse sqlite3 threads camlidl)) ^^^^^^^^^ Error: Library "ocamlfuse" not found. Hint: try: dune external-lib-deps --missing @install ==> ERROR: A failure occurred in build(). Aborting... error making: google-drive-ocamlfuse

My version of ocamlfuse is: 2.7.1-11

Any ideas?

pricechrispy commented on 2020-12-01 03:37 (UTC) (edited on 2020-12-01 05:54 (UTC) by pricechrispy)

ocaml-cryptokit is failing to build on most recent ocaml, due to ocamlbuild needing a rebuild, see for details https://aur.archlinux.org/packages/ocaml-cryptokit/#comment-778235

~~you can either build ocamlbuild from ABS against newest ocaml, or wait~~

dependent package has been fixed, ocaml-cryptokit now builds, and google-drive-ocamlfuse confirmed successful build.

quattro commented on 2020-10-23 12:43 (UTC) (edited on 2020-10-23 12:58 (UTC) by quattro)

hi,pricechrispy! same problem with ocaml-cryptokit!! please help, don't build gapi-ocaml and google-drive-ocamlfuse


ocaml-cryptokit 1.13-2  (2018-05-14 21:25)
( Неподдерживаемый пакет: Потенциально опасен ! )
==> Отредактировать PKGBUILD ? Да/нет [Y/n] ("A" для отмены)
==> --------------------------------------------------------
==> n

==> зависимости ocaml-cryptokit:
 - ocaml (уже установлен) [makedepend]
 - zlib (уже установлен)
 - ocaml-zarith (уже установлен)
 - ocaml (уже установлен) [makedepend]
 - ocaml-findlib (уже установлен) [makedepend]
 - ocamlbuild (уже установлен) [makedepend]


==> Продолжить сборку ocaml-cryptokit ? Да/нет [Y/n]
==> ------------------------------------------------
==> 
==> Сборка и установка пакета
==> Сборка пакета ocaml-cryptokit 1.13-2 (Пт 23 окт 2020 15:31:11)
==> Проверка зависимостей для запуска...
==> Проверка зависимостей для сборки...
==> Получение исходных файлов...
  -> Загрузка release113.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   133  100   133    0     0    302      0 --:--:-- --:--:-- --:--:--   302
100  161k    0  161k    0     0  93102      0 --:--:--  0:00:01 --:--:--  255k
==> Проверка файлов source с использованием md5sums...
    release113.tar.gz ... Готово
==> Распаковка исходных файлов...
  -> Распаковка 'release113.tar.gz' с помощью bsdtar
==> Запускается build()...
File "./setup.ml", line 1775, characters 22-40:
1775 |         let compare = Pervasives.compare
                             ^^^^^^^^^^^^^^^^^^
Alert deprecated: module Stdlib.Pervasives
Use Stdlib instead.

If you need to stay compatible with OCaml < 4.07, you can use the 
stdlib-shims library: https://github.com/ocaml/stdlib-shims
File "setup.ml", line 3467, characters 16-34:
Alert deprecated: module Stdlib.Pervasives
Use Stdlib instead.

If you need to stay compatible with OCaml < 4.07, you can use the 
stdlib-shims library: https://github.com/ocaml/stdlib-shims

Configuration:
ocamlfind: ...................................................... /usr/bin/ocamlfind
ocamlc: ......................................................... /usr/bin/ocamlc.opt
ocamlopt: ....................................................... /usr/bin/ocamlopt.opt
ocamlbuild: ..................................................... /usr/bin/ocamlbuild
Package name: ................................................... cryptokit
Package version: ................................................ 1.13
os_type: ........................................................ Unix
system: ......................................................... linux
architecture: ................................................... amd64
ccomp_type: ..................................................... cc
ocaml_version: .................................................. 4.11.1
standard_library_default: ....................................... /usr/lib/ocaml
standard_library: ............................................... /usr/lib/ocaml
bytecomp_c_compiler: ............................................ gcc -O2 -fno-strict-aliasing -fwrapv -fPIC -D_FILE_OFFSET_BITS=64 -D_REENTRANT
native_c_compiler: .............................................. gcc -O2 -fno-strict-aliasing -fwrapv -fPIC -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/local
Install architecture-dependent files in dir: .................... $prefix
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
findlib_version: ................................................ 1.8.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: ....................................
Enable ZLib: .................................................... true
Enable hardware support for AES and GCM (needs GCC or Clang): ... true
Build and run benchmark: ........................................ false
Create documentations: .......................................... true
Compile tests executable and library and run them: .............. false
ocamldoc: ....................................................... /usr/bin/ocamldoc
pkg_unix: ....................................................... /usr/lib/ocaml
pkg_zarith: ..................................................... /usr/lib/ocaml/zarith

ocaml setup.ml -build 
File "./setup.ml", line 1775, characters 22-40:
1775 |         let compare = Pervasives.compare
                             ^^^^^^^^^^^^^^^^^^
Alert deprecated: module Stdlib.Pervasives
Use Stdlib instead.

If you need to stay compatible with OCaml < 4.07, you can use the 
stdlib-shims library: https://github.com/ocaml/stdlib-shims
File "setup.ml", line 3467, characters 16-34:
Alert deprecated: module Stdlib.Pervasives
Use Stdlib instead.

If you need to stay compatible with OCaml < 4.07, you can use the 
stdlib-shims library: https://github.com/ocaml/stdlib-shims
+ /usr/bin/ocamlopt.opt unix.cmxa -I /usr/lib/ocaml/ocamlbuild /usr/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /usr/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
File "myocamlbuild.ml", line 1:
Error: Files /usr/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa
       and /usr/lib/ocaml/stdlib.cmxa
       make inconsistent assumptions over implementation Stdlib__sys
Command exited with code 2.
Compilation unsuccessful after building 1 target (0 cached) in 00:00:00.
E: Failure("Command ''/usr/bin/ocamlbuild' src/libcryptokit_stubs.a src/dllcryptokit_stubs.so src/cryptokit.cma src/cryptokit.cmxa src/cryptokit.a src/cryptokit.cmxs -tag debug' terminated with error code 10")
make: *** [Makefile:7: build] Ошибка 1
==> ОШИБКА: Произошел сбой в build().
    Прерывание...
==> ОШИБКА: Makepkg не смог собрать ocaml-cryptokit.
==> Перезапустить сборку ocaml-cryptokit ? да/Нет [y/N]
==> ---------------------------------------------------

sihosi1812 commented on 2020-10-06 12:18 (UTC)

I get this error when building ocaml-cryptokit, any possible mistakes I made?

+ /usr/bin/ocamlopt.opt unix.cmxa -I /usr/lib/ocaml/ocamlbuild /usr/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /usr/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
File "myocamlbuild.ml", line 1:
Error: Files /usr/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa
       and /usr/lib/ocaml/stdlib.cmxa
       make inconsistent assumptions over implementation Stdlib__sys
Command exited with code 2.
E: Failure("Command ''/usr/bin/ocamlbuild' src/libcryptokit_stubs.a src/dllcryptokit_stubs.so src/cryptokit.cma src/cryptokit.cmxa src/cryptokit.a src/cryptokit.cmxs -tag debug' terminated with error code 10")
make: *** [Makefile:7: build] Error 1

I see egyptianbman is having a similar issue: https://aur.archlinux.org/packages/google-drive-ocamlfuse/#comment-766933

pricechrispy commented on 2020-10-04 16:48 (UTC)

Note: package is maintained, 0.7.22 is the latest release. Each PKGBUILD change I test on a fresh build system. If you are having problems building on a dirty system, others have posted their workarounds, so please look for those and try the solutions posted. If you are having problems building with a 3rd party AUR helper, that is not the supported AUR way to build. It's up to you and other users of the tool to figure out workarounds for that. If none of those apply, and the build is broken for you, post the full package build and installation console log and I will compare on my end to validate this package still builds on an updated AUR environment.

egyptianbman commented on 2020-09-22 18:34 (UTC)

Build currently fails with the following:

==> Starting build()...                                                                                              
File "_none_", line 1: 
Error: Files /usr/lib/ocaml/dune-configurator/configurator.cmxa         
       and /usr/lib/ocaml/stdlib.cmxa
       make inconsistent assumptions over implementation Stdlib__sys
Done: 98/117 (jobs: 1)==> ERROR: A failure occurred in build().
    Aborting...                            
error: target not found: ocaml-sexplib0
error: target not found: ocaml-base-git
error: target not found: ocaml-pcre                                                                                  
error: target not found: cppo        
error: target not found: ocaml-mmap                                                                                  
error: target not found: ocaml-ocplib-endian                                                                         
error: target not found: ocaml-seq
error: target not found: ocaml-ppx_derivers-git
error: target not found: ocaml-migrate-parsetree
error: target not found: ocaml-ppx_tools_versioned                                                                   
error: target not found: ocaml-react
error: target not found: ocaml-lwt
error: target not found: ocaml-stdlib-shims
error: target not found: ocaml-ounit                                                                                 

static_n00b commented on 2020-08-31 23:51 (UTC)

Output of ls -la /usr/lib/ocaml/camlidl:

total 32
drwxr-xr-x  2 root root  4096  1 set 01.32 .
drwxr-xr-x 76 root root 24576  1 set 01.24 ..
lrwxrwxrwx  1 root root    20  1 set 01.32 com.a -> /usr/lib/ocaml/com.a
lrwxrwxrwx  1 root root    23  1 set 01.31 com.cmxa -> /usr/lib/ocaml/com.cmxa
-rw-r--r--  1 root root   119  2 giu 18.26 META

(no symlinks are stale)

Output of cat /usr/lib/ocaml/camlidl/META:

description = "Stub generator"
version = "1.06"
directory = "^"
archive(byte) = "com.cma"
archive(native) = "com.cmxa"

(seems OK)

Output of pacaur -Syu google-drive-ocamlfuse:

:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 sublime-text is up to date
:: Starting full system upgrade...
 there is nothing to do
:: Package google-drive-ocamlfuse not found in repositories, trying AUR...
:: Starting AUR upgrade...
:: resolving dependencies...
:: looking for inter-conflicts...

AUR Packages  (1) google-drive-ocamlfuse-0.7.22-1  

:: Proceed with installation? [Y/n] 
:: Retrieving package(s)...
update complete: /home/skrondo/.cache/pacaur/google-drive-ocamlfuse
:: Checking google-drive-ocamlfuse integrity...
==> Making package: google-drive-ocamlfuse 0.7.22-1 (mar 1 set 2020, 01:32:25)
==> Retrieving sources...
  -> Found v0.7.22.tar.gz
==> Validating source files with sha256sums...
    v0.7.22.tar.gz ... Passed
:: Preparing google-drive-ocamlfuse...
==> Making package: google-drive-ocamlfuse 0.7.22-1 (mar 1 set 2020, 01:32:27)
==> WARNING: Skipping dependency checks.
==> Retrieving sources...
  -> Found v0.7.22.tar.gz
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting v0.7.22.tar.gz with bsdtar
==> Sources are ready.
:: Building google-drive-ocamlfuse package(s)...
==> Making package: google-drive-ocamlfuse 0.7.22-1 (mar 1 set 2020, 01:32:31)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
File "_none_", line 1: 
Error: The file /usr/lib/ocaml/com.cmxa is not a compilation unit description
Done: 147/151 (jobs: 1)==> ERROR: A failure occurred in build().
    Aborting...
:: failed to build google-drive-ocamlfuse package(s)

(every other ocaml-* package i've installed gave no problem)

No more ideas :-(

electra commented on 2020-05-08 21:16 (UTC)

Not install/ I get this: No such package: topkg File "./pkg/pkg.ml", line 4, characters 5-10: 4 | open Topkg ^^^^^ Error: Unbound module Topkg ==> ОШИБКА: Произошел сбой в build().

Frawg commented on 2020-01-31 21:59 (UTC) (edited on 2020-01-31 22:13 (UTC) by Frawg)

While building on a fresh install I'm getting the below error:

==> Starting build()...
  camlidl lib/Fuse_bindings.{h,ml,mli},lib/Fuse_bindings_stubs.c (exit 2)
(cd _build/default/lib && /usr/bin/camlidl -header Fuse_bindings.idl)
Fatal error: the file '/usr/bin/camlidl' has not the right magic number: expected Caml1999X026, got Caml1999X023
    discover lib/camlidl.libs.sexp,lib/fuse.cflags.sexp,lib/fuse.libs.sexp

[WARNING] File /usr/bin/ocamlc, which package ocaml-system.4.07.0 depends upon, was changed on your system. ocaml-system has been marked as removed, and will be reinstalled if necessary.
==> ERROR: A failure occurred in build().
Aborting...

nerflad commented on 2020-01-04 02:41 (UTC)

hey chris, FYI, I have disowned all the ocaml packages I maintained for years because I don't use this software anymore and don't have time to keep working on them. A few of them need a lot of work. Sorry to dump this on you.

gapi-ocaml ocaml-biniou ocaml-curl ocaml-easy-format ocaml-extlib ocaml-ounit ocaml-yojson

MokkeMeguru commented on 2019-10-17 23:53 (UTC)

@jdegreef If you got the error like this when you run opam init.

# bwrap: No permissions to creating new namespace, likely because the kernel does not allow non-privileged user namespaces. On e.g. debian this can be enabled with 'sysctl kernel.unprivileged_userns_clone=1'.

I think, your problem is because of kernel version. ref https://github.com/containers/bubblewrap/issues/324

jdegreef commented on 2019-10-17 22:00 (UTC) (edited on 2019-10-17 22:48 (UTC) by jdegreef)

@MokkeMeguru I've refused that the install script modify my ./(bash_)profile but as I made everything in the same window it doesn't matter. And you know what ? I knew zero about opanm/ocaml, I just wanted to have google-drive-ocamlfuse running and since a few months using it from aur is a pin in the ass. Today I discovered that opam is a little bit as pip and it don't need Arch packages. But that's off topic ;)

MokkeMeguru commented on 2019-10-17 21:35 (UTC) (edited on 2019-10-17 21:38 (UTC) by MokkeMeguru)

@jdegreef Can you check your ~/.bash_profile ? If you tried my solution correctly, Your ~/.bash_profile will have below lines.

# ...
# opam configuration
test -r /home/meguru/.opam/opam-init/init.sh && . /home/meguru/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true

My idea and your idea are nealy the same, I think.

And also, my google-drive-ocamlfuse is installed in /home/meguru/.opam/ocaml-4.09.0/bin/google-drive-ocamlfuse

jdegreef commented on 2019-10-17 20:16 (UTC) (edited on 2019-10-17 20:28 (UTC) by jdegreef)

@MokkeMeguru OR, forget about all ocaml Arch packages which are broken at every update, and install ocalm packages from opam (https://opam.ocaml.org/). That's the way I'll follow from now on. Everything is installed into ~/.opam without having any impact on the whole system.

MokkeMeguru commented on 2019-10-16 12:53 (UTC)

Because of https://aur.archlinux.org/packages/ocaml-base/ ,(https://aur.archlinux.org/packages/ocaml-base/#comment-711397) This build is failed.

Please update dependencies ... (or wait a month to update the package ocaml-base)

jdegreef commented on 2019-10-13 18:43 (UTC)

Same problem here in a clean chroot environment.

esturiano commented on 2019-10-12 14:07 (UTC)

File "compiler-stdlib/gen/gen.ml", line 59, characters 33-51: 59 | let toc = (input_value ic : Cmo_format.library) in ^^^^^^^^^^^^^^^^^^ Error: Unbound module Cmo_format File "compiler-stdlib/gen/gen.ml", line 59, characters 33-51: 59 | let toc = (input_value ic : Cmo_format.library) in ^^^^^^^^^^^^^^^^^^ Error: Unbound module Cmo_format

getting this too.

nixit commented on 2019-10-12 03:18 (UTC)

trying to install and am getiting this:

==> Starting build()... File "compiler-stdlib/gen/gen.ml", line 59, characters 33-51: 59 | let toc = (input_value ic : Cmo_format.library) in ^^^^^^^^^^^^^^^^^^ Error: Unbound module Cmo_format ==> ERROR: A failure occurred in build(). Aborting...

any idea.

--nixit

Pfizi commented on 2019-09-16 15:13 (UTC)

Requires gapi-ocaml>=0.3.15, but this is not available yet.

pricechrispy commented on 2019-09-16 03:40 (UTC)

Missing packages were added back to the AUR and the package builds. Updated to latest tagged release. Note this requires gapi-ocaml>=0.3.15

PPlatypus commented on 2019-09-06 01:06 (UTC)

Will no longer build - gapi-ocaml is broken - (ocaml-yojson is no longer available)

somakd commented on 2019-07-10 18:59 (UTC) (edited on 2019-07-10 19:02 (UTC) by somakd)

I'm getting an error (using latest pamac on manjaro)

==> Validating source files with sha256sums... v0.7.4.tar.gz ... Passed

==> Removing existing $srcdir/ directory...

==> Extracting sources... -> Extracting v0.7.4.tar.gz with bsdtar

==> Starting build()...

File "none", line 1:

Error: Files /usr/lib/ocaml/cryptokit/cryptokit.cmxa

   and /usr/lib/ocaml/zarith/zarith.cmxa

   make inconsistent assumptions over interface Z

==> ERROR: A failure occurred in build(). Aborting...

jdegreef commented on 2019-06-29 12:15 (UTC)

@nixit : great, it works perfectly :)

I've used this command to completely remove ocaml* :

sudo pacman -Rdd $(pacman -Q | grep ocaml | cut -f 1 -d " ")

dd is used to not check dependencies. Use with caution if you have other programs using ocaml. You'll need to reinstall them as well.

nixit commented on 2019-06-27 22:33 (UTC)

I was able to get this working again by completely removing ocaml* from my system and performing a complete reinstall of google-drive-ocamlfuse, rebuilding the packages in the process.

this is now working like a champ for me. :)

jdegreef commented on 2019-05-27 22:22 (UTC) (edited on 2019-05-27 22:24 (UTC) by jdegreef)

Well, I have the feeling ocalm is a big mess. Each time you update google-drive-ocamlfuse it's broken. I've read all your comments but cannot figure out how to install google-drive-ocamlfuse without messing my system which is uptodate. It seems it needs stuff that are not in ARCH or AUR (yet ?). I don't want to add updated libraries that are not stock Arch/Aur and break something else. I think updates of packages should be build-able with what's in Aurch/Aur or wait that all what is necessary is available with yay/pacman/yaourt before being released. Don't take it bad, I like your work... when it works ;) In between I'll switch to rclone :-)

nixit commented on 2019-05-27 18:17 (UTC)

@pricechrispy,

I'm confused on how I apply this to get google-drive-ocamlfuse installed?

pricechrispy commented on 2019-03-17 23:29 (UTC)

I suppose it is possible to provide prebuilt packages on each version bump? There's about 20 in total. Not sure if this is desirable.

willemw commented on 2019-03-10 06:52 (UTC)

Have you tried google-drive-ocamlfuse-opam? It uses the OCaml package manager.

jdegreef commented on 2019-03-09 23:23 (UTC)

I agree with @gudwin this really a p.. in the a.. :-/ Anyway thanks for your work but a solution would be really welcome....

gudwin commented on 2019-03-08 23:10 (UTC)

Every time there is an update in this package, it brings me a strong headache in order to rebuild it through AUR in pamac. This happens because usually there is a new version of ocaml and all the .cmi files for the many sub-packages it depends on became obsolete, but are not automatically reconstructed, giving messages like this:

File "src/utils.ml", line 1: Error: /usr/lib/ocaml/Fuse/Fuse.cmi is not a compiled interface for this version of OCaml. It seems to be for an older version of OCaml.

Then I need to enter into a tedious process of going dependency by dependency and asking it to be rebuild in order to avoid such errors. In some cases, there are dependencies on dependencies that repeats the same problem. Last time it took me more than 4 hours doing it package by package by hand, until the new version is able to be compiled. Isn't there a way of avoiding this obnoxious procedure ?

sucre commented on 2019-01-15 19:25 (UTC)

tambeta updated ocaml-sqlite3 to 4.4.1-1, for now this package can be build again.

woodyl commented on 2018-12-22 22:03 (UTC)

I'm having the same problem as @DroidFreak32 and @sfranchi. I can't build this package because it depends on ocaml-sqlite3. I see that ocaml-sqlite3 is now out of date and the maintainer comments that he doesn't have time to fix it and it's now orphaned. Does anybody have a suggestion for a a work-around?

sfranchi commented on 2018-12-20 14:03 (UTC) (edited on 2018-12-20 14:03 (UTC) by sfranchi)

I'm having the same problem as @DroidFreak32, package does not build because (I think) of older versions of ocaml packages.

DroidFreak32 commented on 2018-12-12 10:14 (UTC)

Im having errors compiling this:

==> Starting build()...
    ocamlopt src/.google_drive_ocamlfuse.objs/dbCache.{cmx,o} (exit 2)
(cd _build/default && /usr/sbin/ocamlopt.opt -w -40 -w -3-27-32-58 -g -I src/.google_drive_ocamlfuse.objs -I src/.google_drive_ocamlfuse.objs/.private -I /usr/lib/ocaml/Fuse -I /usr/lib/ocaml/biniou -I /usr/lib/ocaml/bytes -I /usr/lib/ocaml/cryptokit -I /usr/lib/ocaml/curl -I /usr/lib/ocaml/easy-format -I /usr/lib/ocaml/extlib -I /usr/lib/ocaml/gapi-ocaml -I /usr/lib/ocaml/netstring -I /usr/lib/ocaml/netsys -I /usr/lib/ocaml/sqlite3 -I /usr/lib/ocaml/threads -I /usr/lib/ocaml/yojson -I /usr/lib/ocaml/zarith -intf-suffix .ml -no-alias-deps -o src/.google_drive_ocamlfuse.objs/dbCache.cmx -c -impl src/dbCache.ml)
File "src/dbCache.ml", line 1:
Error: /usr/lib/ocaml/sqlite3/sqlite3.cmi
is not a compiled interface for this version of OCaml.
It seems to be for an older version of OCaml.
==> ERROR: A failure occurred in build().
    Aborting...
Error making: google-drive-ocamlfuse

ValHue commented on 2018-09-24 16:45 (UTC) (edited on 2018-09-24 16:45 (UTC) by ValHue)

Error: Library "zarith" not found.

-> required by library "cryptokit" in /usr/lib/ocaml/cryptokit

Hint: try: dune external-lib-deps --missing @install

sfranchi commented on 2018-09-05 14:45 (UTC)

Just in case someone is encountering the same problem I had with building the ocamlnet dependency (see my previous comment): it turned out that building most of its dependencies individually (ocaml base, ocam-pcre, etc.) before trying to build ocamlnet solved the problem for me.

sfranchi commented on 2018-03-28 15:38 (UTC)

One more issue: the dependency ocamlnet does not build either. According to the AUR comment of 11/27/2017 it requires a downgrade of the the nettle package to 3.3.1

eyalbd commented on 2018-02-16 18:28 (UTC)

Updating the package after ocaml update requires recompiling all dependencies. Is there any way of stipulating that in the package instead of going manually reinstalling all the dependencies?

tweerwag commented on 2018-02-05 09:59 (UTC) (edited on 2018-02-05 10:00 (UTC) by tweerwag)

For the Error: External library "camlidl" not found., see my comment on camlidl.

skalkoto commented on 2018-02-04 11:43 (UTC)

      ocamlc src/oauth2.{cmi,cmo,cmt} (exit 2)
(cd _build/default && /bin/ocamlc.opt -w -40 -g -bin-annot -I /usr/lib/ocaml -I /usr/lib/ocaml/Fuse -I /usr/lib/ocaml/biniou -I /usr/lib/ocaml/bytes -I /usr/lib/ocaml/cryptokit -I /usr/lib/ocaml/curl -I /usr/lib/ocaml/easy-format -I /usr/lib/ocaml/extlib -I /usr/lib/ocaml/gapi-ocaml -I /usr/lib/ocaml/netstring -I /usr/lib/ocaml/netsys -I /usr/lib/ocaml/sqlite3 -I /usr/lib/ocaml/threads -I /usr/lib/ocaml/yojson -I /usr/lib/ocaml/zarith -no-alias-deps -I src -o src/oauth2.cmo -c -impl src/oauth2.ml)
File "src/oauth2.ml", line 1:
Error: The files /usr/lib/ocaml/gapi-ocaml/gapiDriveV2Service.cmi
       and src/gaeProxy.cmi make inconsistent assumptions
       over interface Yojson
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build google-drive-ocamlfuse.

Any clue?

olsonpm commented on 2018-02-03 18:29 (UTC) (edited on 2018-02-03 18:30 (UTC) by olsonpm)

@ginoboy - check the top pinned post. Also, that issue is unfortunately out of this maintainer's hands.

ginoboy commented on 2018-02-03 11:36 (UTC)

Error: External library "camlidl" not found.

olsonpm commented on 2018-02-03 03:52 (UTC)

Thanks much @pricechrispy - honestly it was just confusing because the aur website made it obvious it knew what the alternative was (dune or *-git) however yaourt would just exit saying it couldn't find the resource. I expected the client to understand that jbuilder was renamed and to install accordingly.

pricechrispy commented on 2018-02-03 02:23 (UTC) (edited on 2018-02-03 02:24 (UTC) by pricechrispy)

@olsonpm Yes, you are correct. I had been waiting patiently for this name switch to propagate to the AUR package. This is now merged.

@Mech2 Thanks for that tip. Hopefully the maintainer of the camlidl package will attempt to make these necessary changes.

olsonpm commented on 2018-02-02 22:31 (UTC)

I'm not very familiar with aur, but I think the 'jbuilder' makedepends line needs to be changed to 'dune' (to account for its renaming)

https://github.com/ocaml/dune/issues/360

commented on 2018-01-27 18:23 (UTC)

Another way to fix the META file not installed properly I reinstalled camlidl and changed:

install -Dm644 ${srcdir}/META.camlidl ${pkgdir}/${_ocamldir}/${pkgname}/META

to

install -Dm644 ${srcdir}/META.camlidl ${_ocamldir}/${pkgname}/META

in PKGBUILD. $pkgdir is already prepended to $_ocamldir so so theres no need for it in the install command.

pricechrispy commented on 2018-01-27 00:47 (UTC) (edited on 2018-01-27 00:51 (UTC) by pricechrispy)

Another error now exists with the camlidl package on a fresh build system.

In this case, the package is no longer creating a required file called "META". This prevents camlidl from showing up as installed, and prevents the package from building.

If you run "ocamlfind list | grep -i 'camlidl'", you should see the camlidl packages listed.

If not, manually create the META file: /usr/lib/ocaml/camlidl/META

description = "Stub generator"
version = "1.06"
directory = "^"
archive(byte) = "com.cma"
archive(native) = "com.cmxa"

pricechrispy commented on 2018-01-08 04:39 (UTC)

@nerflad @sylvr Yes it was, this is now added, thanks!

sylvr commented on 2018-01-05 13:35 (UTC)

This package is missing a dependency to ocaml-ounit.

Could you fix it please ?

nerflad commented on 2018-01-03 07:30 (UTC)

Please add ocaml-ounit to makedepends.

pricechrispy commented on 2017-11-24 02:48 (UTC)

@cuttooth87: Confirmed, this is the only build problem I have on otherwise stock build system. I was able to resolve this by downgrading the "nettle" package to 3.3-1.

cuttooth87 commented on 2017-11-24 02:35 (UTC)

Like @ginoboy ocamlnet won't build for me but I have a different error: Getting this error during build: nettls_nettle_bindings_stubs.c: In function ‘net_nettle_hashes’: nettls_nettle_bindings_stubs.c:373:25: error: subscripted value is neither array nor pointer nor vector while (nettle_hashes[k] != NULL) k++; ^ nettls_nettle_bindings_stubs.c:374:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] *hashes = (net_nettle_hash_t *) nettle_hashes; ^ make[1]: *** [../../Makefile.rules:127: nettls_nettle_bindings_stubs.o] Error 2 make[1]: Leaving directory '/tmp/yaourt-tmp-michael/aur-ocamlnet/src/ocamlnet-4.1.4/src/nettls-gnutls' make: *** [Makefile:23: all] Error 2

danny8376 commented on 2017-11-23 03:47 (UTC)

@ginoboy Try to rebuild all ocaml lib aur.

danny8376 commented on 2017-11-23 03:19 (UTC) (edited on 2017-11-23 03:46 (UTC) by danny8376)

I think all dependencies there should be make dependencies. ocaml is only used when building binary. The only real dependency is sqlite.

RenatoXSR commented on 2017-11-19 17:36 (UTC)

I gave up trying to install this package and when straight to the git development version (as pointed out by @pricechrispy), which is working nicely, so far.

ginoboy commented on 2017-11-05 15:24 (UTC)

I'm getting error with make dependency "ocamlnet" that needs compile too: Checking endianess... /usr/bin/ld: /usr/lib/ocaml/libcamlrun.a(terminfo.o): undefined reference to symbol 'tgetnum' /usr/lib/libtinfo.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status File "t.ml", line 1: Error: Error while building custom runtime system :(

jordanoff83 commented on 2017-09-30 15:15 (UTC)

It works! The sugestion of pricechrispy did the work and package is installed successfuly!

radek_r commented on 2017-09-30 12:35 (UTC)

Please add achitecture "armv7h" to the PKGBUILD.

shishi commented on 2017-09-09 20:57 (UTC)

Error: Cannot find file /usr/lib/ocaml/camlidl/com.cmxa Same problem here

pricechrispy commented on 2017-08-17 16:48 (UTC)

@jant90 Confirmed, this is now fixed.

tmoore commented on 2017-08-09 20:15 (UTC) (edited on 2017-08-09 20:24 (UTC) by tmoore)

FYI this package won't compile because upstream ocaml-result is busted. Solution is to manually download the ocaml-result file, edit PKGBUILD and add this line after the "export OCAMLFIND..." line chmod -R 755 ${pkgdir}

mozzorello commented on 2017-06-10 17:56 (UTC)

This time I had too many issues building this, but I found this great project: https://github.com/mitcdh/docker-google-drive-ocamlfuse It runs google-drive-ocamlfuse inside a docker container running the original ubuntu package, doesn't pollute my vm with all these ocaml dependencies, and it works! (not out of the box for me, I had to do make a few changes that I may contribute back to the github project).

pedestrianlove commented on 2017-04-30 15:14 (UTC) (edited on 2017-04-30 15:59 (UTC) by pedestrianlove)

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... ==> ERROR: Makepkg was unable to build google-drive-ocamlfuse. ==> Restart building google-drive-ocamlfuse ? [y/N] No linking problem but seems its dependency or script is broken, since there is a missing file. #UPDATE1 Installing camlidl does not work, there is nothing but a META file in that folder. BTW, I also found a related post here : https://bbs.archlinux.org/viewtopic.php?id=218795 Hope it helps. #UPDATE2 The only file in that folder - "META", it contains the following text: description = "Stub generator" version = "1.05" archive(byte) = "com.cma" archive(native) = "com.cmxa" #UPDATE3 Found an unformal workaround on camlidl aur page. Reinstall camlidl as following and build google-drive-ocamlfuse again: A temporary workaround is to fix this PKGBUILD by adding the following in the package() function: ln -s /usr/lib/ocaml/com.a ${pkgdir}/usr/lib/ocaml/camlidl/ ln -s /usr/lib/ocaml/com.cmxa ${pkgdir}/usr/lib/ocaml/camlidl/ I was wondering if there is a more proper way to update this PKGBUILD to make it compatible with google-drive-ocamlfuse, cheers. Hope it helps you too. I finally had this package built successfully. Regards.

pricechrispy commented on 2017-04-25 17:39 (UTC) (edited on 2017-06-03 18:32 (UTC) by pricechrispy)

Before you flag this package out-of-date: According to the official project page: https://astrada.github.io/google-drive-ocamlfuse/ Find latest release versions here: https://launchpad.net/~alessandro-strada/+archive/ubuntu/ppa The latest releases are not all tagged versions on GitHub. For the latest development versions on git, try: https://aur.archlinux.org/packages/google-drive-ocamlfuse-git OLD official project page: http://gdfuse.forge.ocamlcore.org/ OLD release versions here: https://forge.ocamlcore.org/frs/?group_id=305

oktay454 commented on 2017-04-21 12:56 (UTC)

ocaml-pcre build error [yurt@yurt-pc ocaml-pcre]$ makepkg ==> ocaml-pcre 7.2.3-2 (Cum Nis 21 15:40:54 +03 2017) paketi oluşturuluyor ==> Bağımlılıklar denetleniyor... ==> Derleme bağımlılıkları denetleniyor... ==> Kaynaklar getiriliyor... -> pcre-ocaml-7.2.3.tar.gz bulundu ==> source ile md5sums dosyası doğrulanıyor... pcre-ocaml-7.2.3.tar.gz ... Doğrulandı ==> Kaynaklar açılıyor... -> pcre-ocaml-7.2.3.tar.gz ile bsdtar açılıyor ==> Mevcut $pkgdir/ dizini kaldırılıyor ... ==> build() işlemine başlanıyor... File "./setup.ml", line 318, characters 20-36: Warning 3: deprecated: String.lowercase Use String.lowercase_ascii instead. File "./setup.ml", line 318, characters 42-58: Warning 3: deprecated: String.lowercase Use String.lowercase_ascii instead. File "./setup.ml", line 327, characters 14-30: Warning 3: deprecated: String.lowercase Use String.lowercase_ascii instead. File "./setup.ml", line 327, characters 38-54: Warning 3: deprecated: String.lowercase Use String.lowercase_ascii instead. File "./setup.ml", line 330, characters 25-41: Warning 3: deprecated: String.lowercase Use String.lowercase_ascii instead. File "./setup.ml", line 368, characters 10-26: Warning 3: deprecated: String.lowercase Use String.lowercase_ascii instead. File "./setup.ml", line 474, characters 13-29: Warning 3: deprecated: String.lowercase Use String.lowercase_ascii instead. File "./setup.ml", line 1825, characters 16-33: Warning 3: deprecated: String.capitalize Use String.capitalize_ascii instead. File "./setup.ml", line 1831, characters 16-35: Warning 3: deprecated: String.uncapitalize Use String.uncapitalize_ascii instead. File "setup.ml", line 5847, characters 11-28: Warning 3: deprecated: String.capitalize Use String.capitalize_ascii instead. File "setup.ml", line 5848, characters 11-30: Warning 3: deprecated: String.uncapitalize Use String.uncapitalize_ascii instead. Configuration: ocamlfind: ........................................... /usr/bin/ocamlfind ocamlc: .............................................. /usr/bin/ocamlc.opt ocamlopt: ............................................ /usr/bin/ocamlopt.opt ocamlbuild: .......................................... /usr/bin/ocamlbuild Package name: ........................................ pcre Package version: ..................................... 7.2.3 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: ......... $prefix 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/yurt/ocaml-pcre/pkg/ocaml-pcre 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: ............................ false Turn ocaml profile flag on: .......................... false Compiler support generation of .cmxs.: ............... true OCamlbuild additional flags: ......................... with_pcre_config: .................................... pcre-config Strict compile-time checks: .......................... true Build examples: ...................................... true Create documentations: ............................... true Compile tests executable and library and run them: ... false ocamldoc: ............................................ /usr/bin/ocamldoc pkg_bytes: ........................................... /usr/lib/ocaml/bytes ocaml setup.ml -all File "./setup.ml", line 318, characters 20-36: Warning 3: deprecated: String.lowercase Use String.lowercase_ascii instead. File "./setup.ml", line 318, characters 42-58: Warning 3: deprecated: String.lowercase Use String.lowercase_ascii instead. File "./setup.ml", line 327, characters 14-30: Warning 3: deprecated: String.lowercase Use String.lowercase_ascii instead. File "./setup.ml", line 327, characters 38-54: Warning 3: deprecated: String.lowercase Use String.lowercase_ascii instead. File "./setup.ml", line 330, characters 25-41: Warning 3: deprecated: String.lowercase Use String.lowercase_ascii instead. File "./setup.ml", line 368, characters 10-26: Warning 3: deprecated: String.lowercase Use String.lowercase_ascii instead. File "./setup.ml", line 474, characters 13-29: Warning 3: deprecated: String.lowercase Use String.lowercase_ascii instead. File "./setup.ml", line 1825, characters 16-33: Warning 3: deprecated: String.capitalize Use String.capitalize_ascii instead. File "./setup.ml", line 1831, characters 16-35: Warning 3: deprecated: String.uncapitalize Use String.uncapitalize_ascii instead. File "setup.ml", line 5847, characters 11-28: Warning 3: deprecated: String.capitalize Use String.capitalize_ascii instead. File "setup.ml", line 5848, characters 11-30: Warning 3: deprecated: String.uncapitalize Use String.uncapitalize_ascii instead. Configuration: ocamlfind: ........................................... /usr/bin/ocamlfind ocamlc: .............................................. /usr/bin/ocamlc.opt ocamlopt: ............................................ /usr/bin/ocamlopt.opt ocamlbuild: .......................................... /usr/bin/ocamlbuild Package name: ........................................ pcre Package version: ..................................... 7.2.3 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: ......... $prefix 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/yurt/ocaml-pcre/pkg/ocaml-pcre 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: ............................ false Turn ocaml profile flag on: .......................... false Compiler support generation of .cmxs.: ............... true OCamlbuild additional flags: ......................... with_pcre_config: .................................... pcre-config Strict compile-time checks: .......................... true Build examples: ...................................... true Create documentations: ............................... true Compile tests executable and library and run them: ... false ocamldoc: ............................................ /usr/bin/ocamldoc pkg_bytes: ........................................... /usr/lib/ocaml/bytes + /usr/bin/ocamlopt.opt unix.cmxa -I /usr/lib/ocaml/ocamlbuild /usr/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /usr/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild File "myocamlbuild.ml", line 518, characters 43-62: Warning 3: deprecated: Ocamlbuild_plugin.String.uncapitalize Use String.uncapitalize_ascii instead. File "myocamlbuild.ml", line 531, characters 51-70: Warning 3: deprecated: Ocamlbuild_plugin.String.uncapitalize Use String.uncapitalize_ascii instead. /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(startup_aux.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(fail.o): relocation R_X86_64_32 against symbol `caml_exn_Failure' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(roots.o): relocation R_X86_64_32 against symbol `caml_frametable' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(globroots.o): relocation R_X86_64_32 against symbol `caml_global_roots' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(signals.o): relocation R_X86_64_32S against undefined symbol `caml_pending_signals' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(signals_asm.o): relocation R_X86_64_32S against symbol `caml_system__code_end' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(freelist.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(misc.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(major_gc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(minor_gc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(memory.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(alloc.o): relocation R_X86_64_32S against undefined symbol `caml_atom_table' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(compare.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(ints.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(floats.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(str.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(array.o): relocation R_X86_64_32 against undefined symbol `caml_atom_table' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(io.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(extern.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(intern.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(hash.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(sys.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(parsing.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(gc_ctrl.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(obj.o): relocation R_X86_64_32S against undefined symbol `caml_atom_table' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(lexing.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(printexc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(callback.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(weak.o): relocation R_X86_64_32 against symbol `caml_ephe_ref_table' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(compact.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(finalise.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(custom.o): relocation R_X86_64_32 against symbol `caml_custom_table' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(unix.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(backtrace.o): relocation R_X86_64_32 against symbol `caml_backtrace_last_exn' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(startup.o): relocation R_X86_64_32S against symbol `caml_data_segments' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: son bağlama başarısız: Çıktıda gösterilemeyen bölüm collect2: hata: ld çıkış durumu 1 ile döndü File "caml_startup", line 1: Error: Error during linking Command exited with code 2. Compilation unsuccessful after building 1 target (0 cached) in 00:00:01. E: Failure("Command ''/usr/bin/ocamlbuild' lib/libpcre_stubs.a lib/dllpcre_stubs.so lib/pcre.cma lib/pcre.cmxa lib/pcre.a lib/pcre.cmxs examples/cloc/cloc.native examples/count_hash/count_hash.native examples/pcregrep/pcregrep.native examples/subst/subst.native' terminated with error code 10") make: *** [Makefile:16: all] Error 1 ==> HATA: build() içinde bir hata oluştu. Çıkılıyor... [yurt@yurt-pc ocaml-pcre]$

dhtseany commented on 2017-04-20 14:51 (UTC)

Not sure if this helps at all, but at the very end once I've reached the point of actually installing the google-drive-ocamlfuse package pacman throws this error regarding VMWare's systemd patches: ====================================================== loading packages... resolving dependencies... looking for conflicting packages... Packages (1) google-drive-ocamlfuse-0.6.7-1 Total Installed Size: 4.32 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... ==> Packages no longer required by any installed package: cppo ocaml-pcre ocamlbuild opam error: file owned by 'vmware-patch' and 'vmware-systemd-services': 'usr/lib/systemd/system/vmware-usbarbitrator.service' error: file owned by 'vmware-patch' and 'vmware-systemd-services': 'usr/lib/systemd/system/vmware.service'

kausban commented on 2017-03-01 10:27 (UTC)

I get the same build error as Anton.Latukha. Making the symlinks allows for compilation: ln -s /usr/lib/ocaml/com.a /usr/lib/ocaml/camlidl/com.a ln -s /usr/lib/ocaml/com.cmxa /usr/lib/ocaml/camlidl/com.cmxa Also, ocamlbuild should be added to makedeps. Its not throwing an error currently since gapi-ocaml also has it as a makedep.

Anton.Latukha commented on 2017-02-26 11:45 (UTC)

Close to kynikos results: Building google-drive-ocamlfuse: ===== 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... ===== So there is a problem.

kynikos commented on 2017-02-10 10:54 (UTC)

I've tried again today and it builds now without those symlinks. However at the first attempt I got: Cannot find external tool 'ocamlbuild' I think "makedepends=('ocamlbuild')" should be added to this PKGBUILD.

wilmerhenao commented on 2017-02-02 17:41 (UTC)

Same problem as kynikos

kynikos commented on 2017-01-31 16:43 (UTC)

Is it only me who still requires 'com.cmxa' and 'com.a' under /usr/lib/ocaml/camlidl/ instead of just /usr/lib/ocaml/ to build this package? They're from the camlidl package, I'm adding the following to the package() function in its PKGBUILD (ugly workaround, I know): ln -s /usr/lib/ocaml/com.a ${pkgdir}/usr/lib/ocaml/camlidl/ ln -s /usr/lib/ocaml/com.cmxa ${pkgdir}/usr/lib/ocaml/camlidl/ If it's still a common problem, perhaps it should be fixed in camlidl's PKGBUILD?

pricechrispy commented on 2017-01-26 08:46 (UTC)

@antouank A new maintainer has adopted and updated the gapi-ocaml package, so you should no longer have to change the PKGBUILD manually.

antouank commented on 2017-01-13 13:31 (UTC)

I get a "error: target not found: gapi-ocaml>=0.2.14" message when I try to update google-drive-ocamlfuse. How can I get gapi-ocaml 0.2.14? It's still on 0.2.10

pricechrispy commented on 2017-01-12 20:23 (UTC)

Upgraded to latest release package. This requires an updated gapi-ocaml package, minimum v0.2.14, for which you can manually change the PKGBUILD of that package until the maintainer updates it. @noogar You seem to have file permission errors while building the zarith package, try and fix those.

tmily00 commented on 2016-12-19 15:26 (UTC)

upgrade to last Upstream version please

raspher commented on 2016-12-12 02:05 (UTC)

same error with zariath in ocaml and opam.. #=== ERROR while installing zarith.1.4.1 ======================================# # opam-version 1.2.2 # os linux # command make # path /home/remote/.opam/system/build/zarith.1.4.1 # compiler system (4.04.0) # exit-code 2 # env-file /home/remote/.opam/system/build/zarith.1.4.1/zarith-23855-6cc03f.env # stdout-file /home/remote/.opam/system/build/zarith.1.4.1/zarith-23855-6cc03f.out # stderr-file /home/remote/.opam/system/build/zarith.1.4.1/zarith-23855-6cc03f.err ### stdout ### # ./z_pp.pl x86_64 ### stderr ### # [...] # perl: warning: Please check that your locale settings: # LANGUAGE = (unset), # LC_ALL = (unset), # LANG = "en_US.UTF-8" # are supported and installed on your system. # perl: warning: Falling back to the standard locale ("C"). # Can't locate warnings.pm: /root/.opam/system/lib/perl5/warnings.pm: Permission denied at ./z_pp.pl line 3. # BEGIN failed--compilation aborted at ./z_pp.pl line 3. # project.mak:137: depend: No such file or directory # make: *** [project.mak:110: z.ml] Error 13 =-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= The following actions were aborted ∗ install cryptokit 1.11 ∗ install gapi-ocaml 0.3.1 ∗ install google-drive-ocamlfuse 0.6.4 The following actions failed ∗ install zarith 1.4.1 The following changes have been performed ∗ install ocamlnet 4.1.2

pricechrispy commented on 2016-11-17 10:46 (UTC) (edited on 2017-06-03 18:34 (UTC) by pricechrispy)

While upgrading to the newer build, the same build error persists as reported in the comments. When doing a fresh build, I manually created symlinks as root so that the build process finds them, as similarly suggested in the comments. # ln -s /usr/lib/ocaml/com.cmxa /usr/lib/ocaml/camlidl/ # ln -s /usr/lib/ocaml/com.a /usr/lib/ocaml/camlidl/ After doing this, the directory '/usr/lib/ocaml/camlidl/' should have the following structure in a fresh environment: $ ls -l /usr/lib/ocaml/camlidl/ total 4 lrwxrwxrwx 1 root root 20 Nov 17 02:23 com.a -> /usr/lib/ocaml/com.a lrwxrwxrwx 1 root root 23 Nov 17 02:23 com.cmxa -> /usr/lib/ocaml/com.cmxa -rw-r--r-- 1 root root 102 Nov 17 01:11 META As suggested in the comments, this seems to be an issue with the camlidl package. This should allow the package to build for now, until an automated PKGBUILD solution is found.

shillshocked commented on 2016-11-07 04:55 (UTC)

That doesn't change anything for me. Still get same error.

KorvinSilver commented on 2016-11-05 22:34 (UTC) (edited on 2016-11-05 22:35 (UTC) by KorvinSilver)

Same failure here. Temporary fix to make it work is: ln -s /usr/lib/ocaml/com.cmxa /usr/lib/ocaml/camlidl/com.cmxa cp /usr/lib/ocaml/com.a /usr/lib/ocaml/camlidl/com.a Somebody should take over this package if it's abandoned.

n3r0 commented on 2016-11-01 07:01 (UTC)

Same failure as shillshoked here too... Error: Cannot find file /usr/lib/ocaml/camlidl/com.cmxa Command exited with code 2. Compilation unsuccessful after building 40 targets (0 cached) in 00:00:05. E: Failure("Command ''/usr/bin/ocamlbuild' src/gdfuse.native -tag debug' terminated with error code 10")

shillshocked commented on 2016-10-31 00:41 (UTC)

Error: Cannot find file /usr/lib/ocaml/camlidl/com.cmxa Command exited with code 2. Compilation unsuccessful after building 40 targets (0 cached) in 00:00:02. E: Failure("Command ''/usr/bin/ocamlbuild' src/gdfuse.native -tag debug' terminated with error code 10")

shillshocked commented on 2016-10-31 00:34 (UTC)

This seems to be an error with your system installation of ocamlbuild -- assuming you installed ocaml beforehand using your package manager, please check that you installed all the related -opt packages. Alternatively, install ocaml within OPAM: opam init --comp 4.02.1, or opam switch 4.02.1 after the init.

limdi commented on 2016-09-27 21:44 (UTC)

ocaml-cryptokit gives me link error. ocaml setup.ml -build + /usr/bin/ocamlopt.opt unix.cmxa -I /usr/lib/ocaml/ocamlbuild /usr/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /usr/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(startup.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(fail.o): relocation R_X86_64_32 against symbol `caml_exn_Failure' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(roots.o): relocation R_X86_64_32 against symbol `caml_frametable' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(globroots.o): relocation R_X86_64_32 against symbol `caml_global_roots' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(signals.o): relocation R_X86_64_32S against undefined symbol `caml_pending_signals' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(signals_asm.o): relocation R_X86_64_32S against symbol `caml_system__code_end' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(freelist.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(major_gc.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(minor_gc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(memory.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(alloc.o): relocation R_X86_64_32S against undefined symbol `caml_atom_table' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(compare.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(ints.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(floats.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(str.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(array.o): relocation R_X86_64_32 against undefined symbol `caml_atom_table' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(io.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(extern.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(intern.o): relocation R_X86_64_32S against undefined symbol `caml_atom_table' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(hash.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(sys.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(parsing.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(gc_ctrl.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(obj.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(lexing.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(printexc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(callback.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(weak.o): relocation R_X86_64_32 against symbol `caml_weak_ref_table' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(compact.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(finalise.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(custom.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(unix.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(backtrace.o): relocation R_X86_64_32 against symbol `caml_backtrace_last_exn' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: error: ld returned 1 exit status File "caml_startup", line 1: Error: Error during linking Command exited with code 2. Compilation unsuccessful after building 1 target (0 cached) in 00:00:00. E: Failure("Command ''/usr/bin/ocamlbuild' src/libcryptokit_stubs.a src/dllcryptokit_stubs.so src/cryptokit.cma src/cryptokit.cmxa src/cryptokit.a src/cryptokit.cmxs -tag debug' terminated with error code 10") make: *** [Makefile:7: build] Error 1 fPIC doc: -fPIC Generate position-independent machine code (default)

gnucon commented on 2016-08-19 10:53 (UTC)

took 30 mins and 750MB+ space to install :ooo otherwise no errors

addicted commented on 2016-08-18 11:58 (UTC)

this better than gvfs-google. though installing all those aur dependencies is a pain, result is good.

sproche72 commented on 2016-06-24 15:41 (UTC)

I have successfully installed it, along with at least 30 AUR dependencies. The errors of @jinglesassy I have not encountered. Is it possible to somehow cut down on these dependencies?

jinglesassy commented on 2016-06-09 21:09 (UTC)

Got the same error. ==> Making package: google-drive-ocamlfuse 0.5.22-1 (Thu Jun 9 17:06:46 EDT 2016) ==> Checking runtime dependencies... ==> Installing missing dependencies... [sudo] password for (Snip): error: target not found: ocamlfuse>=2.7.1 error: target not found: gapi-ocaml>=0.2.7 error: target not found: ocaml-sqlite3>=1.6.1 ==> ERROR: 'pacman' failed to install missing dependencies.

jkl commented on 2016-06-03 22:37 (UTC)

I updated the ocamlfuse package, hopefully it works now

hexchain commented on 2016-06-01 04:11 (UTC) (edited on 2016-06-01 04:12 (UTC) by hexchain)

For those having problems finding "Fuse": get the PKGBUILD of ocamlfuse, and strip every "site-lib" part in package(). As I don't know anything about ocaml, if anyone thinks it's okay then please leave a comment on ocamlfuse page.

jinglesassy commented on 2016-05-09 01:56 (UTC)

Due to it seeming like this is broken for the time being atleast, An alternative may be gdrivefs also available on the AUR for mounting google drive as a FUSE file system.

kzoli429 commented on 2016-05-08 20:00 (UTC)

==> Extracting sources... -> Extracting gringo-4.5.4-source.tar.gz with bsdtar ==> Starting build()... scons: Reading SConscript files ... Checking for bison 2.5... yes Checking for re2c... yes Checking whether the C++ compiler works... no error: no usable C++ compiler found Please check the log file for further information: build/release.log ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Makepkg was unable to build gringo.

mathholic commented on 2016-05-06 06:45 (UTC)

same error here ocamlfind: Package `Fuse' not found

kozaki commented on 2016-04-22 18:39 (UTC)

Derrik Diener has a decent page on setting up google-drive-ocaml https://www.maketecheasier.com/mount-google-drive-ubuntu/ I could start the Wiki page if you guys are OK to proof read. First need to solve why makepkg says missing deps on an up-to-date 64-bit Arch: ==> Checking runtime dependencies... ==> Installing missing dependencies... error: target not found: ocamlfuse>=2.7.1 error: target not found: gapi-ocaml>=0.2.7 error: target not found: ocaml-sqlite3>=1.6.1 ==> ERROR: 'pacman' failed to install missing dependencies. ==> WARNING: Failed to remove installed dependencies. Which I find strange considering all are available from AUR --and I can install them all separately: - aur/ocaml-sqlite3 4.0.3-1 - aur/gapi-ocaml 0.2.10-1 - aur/ocamlfuse 2.7.1-5 ?? First time encounter that.

philipbooysen commented on 2016-04-12 08:17 (UTC)

Hi, Same error, installing: ocamlfind: Package `Fuse' not found To temporary bypass, I downgraded to : $ sudo pacman -U ocaml-findlib-1.5.5-3-x86_64.pkg.tar.xz Re-ran install and now installed successfully.

juanrodgil commented on 2016-04-07 08:13 (UTC)

Hi! Same error, installing with pacaur ocamlfind: Package `Fuse' not found W: Field 'pkg_fuse' is not set: Command ''/usr/bin/ocamlfind' query -format %d Fuse > '/tmp/oasis-3ce8db.txt'' terminated with error code 2 E: Cannot find findlib package Fuse E: Failure("1 configuration error")

berbigou commented on 2016-03-31 03:54 (UTC)

hello, got: ocamlfind: Package `Fuse' not found W: Field 'pkg_fuse' is not set: Command ''/usr/bin/ocamlfind' query -format %d Fuse > '/tmp/oasis-7f2b54.txt'' terminated with error code 2 E: Cannot find findlib package Fuse E: Failure("1 configuration error") hopefully, I had already a local package compiled...

kzoli429 commented on 2015-12-27 10:35 (UTC)

Hi, Installation stops with the following message: ==> Starting build()... cppo -D OCAML4 -D OCAML4_02 -D WITH_BYTES extBytes.mlpp -o extBytes.ml make: cppo: Command not found Makefile:50: recipe for target 'extBytes.ml' failed make: *** [extBytes.ml] Error 127 ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Makepkg was unable to build ocaml-extlib.

gregmuellegger commented on 2015-12-11 21:12 (UTC)

Hi, I get an error when trying to install with "pb -S google-drive-ocamlfuse": [code] + /usr/bin/ocamlopt.opt unix.cmxa -I /usr/lib/ocaml/ocamlbuild /usr/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /usr/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild /usr/bin/ld: /usr/lib/ocaml/libasmrun.a(startup.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/lib/ocaml/libasmrun.a: error adding symbols: Bad value collect2: Fehler: ld gab 1 als Ende-Status zurück File "caml_startup", line 1: Error: Error during linking Command exited with code 2. Compilation unsuccessful after building 1 target (0 cached) in 00:00:00. [/code] See here for the full log: https://gist.github.com/anonymous/09b65909b8544e658939

lesebas commented on 2015-11-23 08:45 (UTC)

ocaml-biniou is a dependency of ocaml-yojson which is required by gapi-ocaml.

timofonic commented on 2015-11-22 16:16 (UTC)

What about ocaml-biniou dependence?

mlq commented on 2015-11-22 13:18 (UTC)

There is no reason to flag this package out of date since there is no version available. Feel free to create a new wiki page!

timofonic commented on 2015-11-22 12:50 (UTC)

Please. Can we make a wiki page about it? There's one about Insync, but not this one. https://wiki.archlinux.org/index.php/Insync https://wiki.archlinux.org/index.php/Google_Drive redirects to https://wiki.archlinux.org/index.php/Backup_programs https://wiki.archlinux.org/index.php/Insync

xganesh commented on 2015-10-17 21:19 (UTC)

Apparently also 'ocaml-biniou' is an unmentioned dependence?

lesebas commented on 2015-10-12 11:21 (UTC)

@Coldbird cppo is already required by ocaml-yojson which is a dependency of gapi-ocaml.

Coldbird commented on 2015-10-12 10:45 (UTC)

Dependencies should include cppo.

lesebas commented on 2015-10-07 19:29 (UTC) (edited on 2015-10-07 19:33 (UTC) by lesebas)

Please update to v0.5.18. Not easy to built as you have to rebuilt manualy all the ocaml package (and ocamlfuse is nearly broken on AUR). @possum @b3nt0 I've updated ocaml-extlib and ocaml-curl is now OK. You can go ahead to build gapi-ocaml

possum commented on 2015-08-17 18:37 (UTC)

I cannot find ocaml-curl and ocaml-extlib packages in the aur anymore :/ Also version 0.5.17 is already out.

b3nt0 commented on 2015-08-11 23:20 (UTC)

Could not make it work. Could not build gapi-ocaml.

leledumbo commented on 2015-05-11 11:16 (UTC)

forget it, somehow the setuid bit is missing from my fusermount binary

leledumbo commented on 2015-05-11 11:03 (UTC)

I always get: "fusermount: mount failed: Operation not permitted" even though my user is in fuse group. With sudo it works, but I can't browse the mounted drive unless I'm root (and I think the point of fusermount is to mount from userland so sudo shouldn't be necessary).

kozyice commented on 2015-05-07 10:29 (UTC)

# awesome package, thanks a lot!

EgidioCaprino commented on 2015-04-27 19:30 (UTC)

Thank you very much!

ValHue commented on 2015-03-09 17:21 (UTC)

ERROR: Finished, 0 targets (0 cached) in 00:00:00. + /usr/sbin/ocamlfind ocamlopt -g -linkpkg -package Fuse -package camlidl -package gapi-ocaml -package sqlite3 -package threads -thread src/appDir.cmx src/utils.cmx src/config.cmx src/cache.cmx src/concurrentGlobal.cmx src/keyValueStore.cmx src/state.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: Files /usr/lib/ocaml/netstring/netstring.cmxa and /usr/lib/ocaml/netsys/netsys.cmxa make inconsistent assumptions over implementation Netsys Command exited with code 2. Compilation unsuccessful after building 40 targets (39 cached) in 00:00:00. E: Failure("Command ''/usr/sbin/ocamlbuild' src/gdfuse.native -tag debug' terminated with error code 10")

javier.ruere commented on 2014-12-21 21:17 (UTC)

It fails for me. I had no ocaml package previously installed. + /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/config.cmx src/cache.cmx src/concurrentGlobal.cmx src/keyValueStore.cmx src/state.cmx src/context.cmx src/gaeProxy.cmx src/mime.cmx src/oauth2.cmx src/drive.cmx src/gdfuse.cmx -o src/gdfuse.native /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Unix_util.o): In function `camlUnix_util__statvfs_1025': (.text+0xa): undefined reference to `unix_util_statvfs' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Unix_util.o): In function `camlUnix_util__read_1030': (.text+0x9d): undefined reference to `unix_util_read' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Unix_util.o): In function `camlUnix_util__write_1049': (.text+0x12d): undefined reference to `unix_util_write' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Unix_util.o): In function `camlUnix_util__6': (.data+0xd8): undefined reference to `unix_util_fchdir' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Unix_util.o): In function `camlUnix_util__6': (.data+0xe0): undefined reference to `unix_util_statvfs' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Unix_util.o): In function `camlUnix_util__6': (.data+0xe8): undefined reference to `unix_util_file_descr_of_int' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Unix_util.o): In function `camlUnix_util__6': (.data+0xf0): undefined reference to `unix_util_int_of_file_descr' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Unix_util.o): In function `camlUnix_util__6': (.data+0xf8): undefined reference to `unix_util_write' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Unix_util.o): In function `camlUnix_util__6': (.data+0x100): undefined reference to `unix_util_read' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_bindings.o): In function `camlFuse_bindings': (.data+0x8): undefined reference to `camlidl_Fuse_bindings___fuse_exited' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_bindings.o): In function `camlFuse_bindings': (.data+0x10): undefined reference to `camlidl_Fuse_bindings_ml_fuse_main' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_bindings.o): In function `camlFuse_bindings': (.data+0x18): undefined reference to `camlidl_Fuse_bindings_ml_fuse_init' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_bindings.o): In function `camlFuse_bindings': (.data+0x20): undefined reference to `camlidl_Fuse_bindings___fuse_process_cmd' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_bindings.o): In function `camlFuse_bindings': (.data+0x28): undefined reference to `camlidl_Fuse_bindings___fuse_read_cmd' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_bindings.o): In function `camlFuse_bindings': (.data+0x30): undefined reference to `camlidl_Fuse_bindings_set_fuse_operations' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_bindings.o): In function `camlFuse_bindings': (.data+0x38): undefined reference to `camlidl_Fuse_bindings_get_fuse_operations' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_bindings.o): In function `camlFuse_bindings': (.data+0x40): undefined reference to `camlidl_Fuse_bindings_fuse_get_context' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_lib.o): In function `camlFuse_lib__fun_1101': (.text+0xd): undefined reference to `camlidl_Fuse_bindings___fuse_process_cmd' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_lib.o): In function `camlFuse_lib__fun_1095': (.text+0x7e): undefined reference to `camlidl_Fuse_bindings___fuse_process_cmd' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_lib.o): In function `camlFuse_lib__fuse_loop_1010': (.text+0x3af): undefined reference to `camlidl_Fuse_bindings___fuse_exited' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_lib.o): In function `camlFuse_lib__fuse_loop_1010': (.text+0x3d3): undefined reference to `camlidl_Fuse_bindings___fuse_read_cmd' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_lib.o): In function `camlFuse_lib__fuse_loop_1010': (.text+0x3f1): undefined reference to `ocaml_fuse_is_null' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_lib.o): In function `camlFuse_lib__8': (.data+0x2d8): undefined reference to `ocaml_fuse_is_null' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse.o): In function `camlFuse__get_context_1024': (.text+0x9a): undefined reference to `camlidl_Fuse_bindings_fuse_get_context' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse.o): In function `camlFuse__main_1073': (.text+0x4f7): undefined reference to `camlidl_Fuse_bindings_ml_fuse_init' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse.o): In function `camlFuse__main_1073': (.text+0x519): undefined reference to `camlidl_Fuse_bindings_set_fuse_operations' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse.o): In function `camlFuse__main_1073': (.text+0x536): undefined reference to `camlidl_Fuse_bindings_get_fuse_operations' /usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse.o): In function `camlFuse__main_1073': (.text+0x554): undefined reference to `camlidl_Fuse_bindings_ml_fuse_main' collect2: error: ld returned 1 exit status File "caml_startup", line 1: Error: Error during linking Command exited with code 2. Compilation unsuccessful after building 40 targets (0 cached) in 00:00:01. E: Failure("Command ''/usr/bin/ocamlbuild' src/gdfuse.native -tag debug' terminated with error code 10")

Gnurou commented on 2014-09-11 04:30 (UTC)

Awesome, thanks - now I can finally try this promising little package! :)

mlq commented on 2014-09-10 22:41 (UTC)

In fact there was: I've adopted the package and updated it ;)

mlq commented on 2014-09-10 22:40 (UTC)

Thats why gapi-ocaml is already flagged out-of-date and the maintainer of gapi-ocaml needs to update the package. There is nothing I can do about it and its not an error of this package (because its required).

Gnurou commented on 2014-09-10 22:38 (UTC)

Latest version (0.5.6-1) won't build because it depends on gapi-ocaml >= 0.2.4 and only 0.2.1 is available on AUR.

lesebas commented on 2014-08-29 11:11 (UTC)

Hello, thanks for the update. It's up to you for the git... that's not a big deal. Lesebas

mlq commented on 2014-08-29 08:31 (UTC)

I've updated the package to 0.5.5 - It requires ocaml-biniou which should be a dependency of ocaml-yojson, so you might need to install it in addition. No, I won't modify the package to clone git repository, since this is the stable version. We would need to create an additional google-drive-ocamlfuse-git package that uses the latest develop version.

lesebas commented on 2014-08-28 21:14 (UTC)

The version 0.5.4 has been uploaded on the git (with a workaround for the segmentation fault). I suggest you to modify your pkbuild in order to use pkgver() function to ensure permanent update as suggested in the wiki : https://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines#The_pkgver.28.29_function Here is my proposoal of PKGBUILD : pkgname=google-drive-ocamlfuse pkgver=0.5.5.r2 pkgrel=1 pkgdesc="FUSE filesystem backed by Google Drive, written in OCaml." arch=('x86_64' 'i686') url="http://gdfuse.forge.ocamlcore.org/" license=('MIT') depends=('ocaml>=3.12.0' 'ocaml-findlib>=1.2.7' 'ocamlfuse>=2.7.1' 'gapi-ocaml>=0.2.1' 'ocaml-sqlite3>=1.6.1') source=('google-drive-ocamlfuse::git+https://github.com/astrada/google-drive-ocamlfuse.git#branch=master') options=('staticlibs') md5sums=('SKIP') pkgver() { cd "$pkgname" git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g;s/.g[a-z0-9]*//' } build() { cd "$srcdir/$pkgname" ocaml setup.ml -configure --prefix /usr --destdir $pkgdir ocaml setup.ml -build } check() { cd "$srcdir/$pkgname" ocaml setup.ml -test } package() { cd "$srcdir/$pkgname" export OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)" ocaml setup.ml -install }

karamaz0v commented on 2014-07-28 18:01 (UTC)

in order to build everything, the options=('staticlibs') must be added also to ocaml-curl and ocaml-extlib packages.

flaccid commented on 2014-07-27 22:54 (UTC)

@jkl I can confirm that it builds and installs ok for me at the moment.

jkl commented on 2014-07-26 16:28 (UTC)

I've updated the ocamlfuse package. Works for me, but I would appreciate feedback.

lesebas commented on 2014-07-09 19:34 (UTC)

Hello, I've request the maintener of ocamlfuse and ocaml-sqlite3 to add the option staticlibs in their PKGBUILD. I have overpass the problem of segmentation fault by adding the -d option in the command (I don't understand why but it works fine now): google-drive-ocamlfuse -d <google-drive-folder>

lesebas commented on 2014-07-08 16:59 (UTC)

@all same problem of .a library issing solved like that : edit /etc/makepkg.conf modify the option from !staticlibs to staticlibs rebuild ALL the package ocaml (for example if sqlite3.a is missing => yaourt -S ocaml-sqlite3). By the way I still experiencing segmentation fault on my 64bits system.

lenovomi commented on 2014-07-07 20:03 (UTC)

does it work on arm7?

ptchinster commented on 2014-06-07 20:23 (UTC)

Same problem as draugole ptchinster@hostname ~ $ yaourt -S google-drive-ocamlfuse --noconfirm ... gcc: error: /usr/lib/ocaml/sqlite3/sqlite3.a: No such file or directory gcc: error: /usr/lib/ocaml/curl/curl.a: No such file or directory gcc: error: /usr/lib/ocaml/extlib/extLib.a: No such file or directory gcc: error: /usr/lib/ocaml/site-lib/Fuse/Fuse.a: No such file or directory File "caml_startup", line 1: Error: Error during linking Command exited with code 2. Compilation unsuccessful after building 40 targets (0 cached) in 00:00:06. E: Failure("Command ''/usr/bin/ocamlbuild' src/gdfuse.native -tag debug' terminated with error code 10") ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Makepkg was unable to build . ==> Restart building google-drive-ocamlfuse ? [y/N] ==> ----------------------------------------------- ==>

draugole commented on 2014-05-28 07:22 (UTC)

I've been following the comments and after performing the steps Siguo with the error "E: Failure (" Command'' / usr / bin / ocamlbuild 'src / gdfuse.native-tag debug' terminated with error code 10 ")" I'm just trying to perform the installation by OPAM

nfishr commented on 2014-05-16 23:43 (UTC)

@jan_path That did it for me. Thanks a lot!

willemw commented on 2014-05-08 15:18 (UTC)

Maybe the relevant package maintainers should update their PKGBUILD files instead, as suggested here: https://www.archlinux.org/todo/remove-static-libraries/

jan_path commented on 2014-05-08 15:06 (UTC)

You have to change !staticlibs to staticlibs in your makepkg.conf and then rebuild the packages ocamlfuse, camlidl, ocaml-extlib, ocaml-curl, ocaml-sqlite3.

broepi commented on 2014-05-05 23:09 (UTC)

Same problem here with the missing .a files

nfishr commented on 2014-05-04 12:08 (UTC)

@lesbas No, there is no .makepkg.conf in the home-folder. Still get the same err..

lesebas commented on 2014-05-04 08:06 (UTC)

@ nfishr Check if you have a local makepkg.conf : ls ~/.makepkg.conf If it's the case delete or rename the local file while you try to compile the package or add the option ''staticlibs'' in your local file.

nfishr commented on 2014-05-03 20:46 (UTC)

I changed "!staticlibs" to "staticlibs" in /etc/makepkg.conf, but it still would not build, giving: gcc: error: /usr/lib/ocaml/sqlite3/sqlite3.a: No such file or directory gcc: error: /usr/lib/ocaml/curl/curl.a: No such file or directory gcc: error: /usr/lib/ocaml/extlib/extLib.a: No such file or directory gcc: error: /usr/lib/ocaml/camlidl/com.a: No such file or directory gcc: error: /usr/lib/ocaml/site-lib/Fuse/Fuse.a: No such file or directory File "caml_startup", line 1: Error: Error during linking Command exited with code 2. Compilation unsuccessful after building 40 targets (0 cached) in 00:00:04. E: Failure("Command ''/usr/bin/ocamlbuild' src/gdfuse.native -tag debug' terminated with error code 10") ==> ERROR: A failure occurred in build(). Aborting... What am i missing? options=('staticlibs') is present in PKGBUILD..

lesebas commented on 2014-03-28 19:18 (UTC)

Sorry OPTIONS : ' staticlibs' in /etc/makepkg.conf actually works... I've just forgot to delete the old local file ~/makepkg.conf

lesebas commented on 2014-03-28 19:15 (UTC)

Trying to compile but I have a problem with .a file of depends... How can I force yaourt to keep the .a file when compiling the depends : gcc: erreur: /usr/lib/ocaml/sqlite3/sqlite3.a: Aucun fichier ou dossier de ce type gcc: erreur: /usr/lib/ocaml/curl/curl.a: Aucun fichier ou dossier de ce type gcc: erreur: /usr/lib/ocaml/extlib/extLib.a: Aucun fichier ou dossier de ce type gcc: erreur: /usr/lib/ocaml/camlidl/com.a: Aucun fichier ou dossier de ce type gcc: erreur: /usr/lib/ocaml/site-lib/Fuse/Fuse.a: Aucun fichier ou dossier de ce type I've tried to add staticlibs instead of !staticlibs in OPTIONS line in /etc/makepkg.conf but without any succes

JP-Ellis commented on 2014-03-04 23:36 (UTC)

Unfortunately, this does not build on its own (@possum has suggested some fixes,but it's a shame that one has to resort to that). An alternative way to install google-drive-ocamlfuse is through OCaml's package manager OPAM. OPAM can be installed from AUR, and after setting it up, calling "opam install google-drive-ocamlfuse" will install this programme along with the required dependencies. You may have to install other packages which aren't managed by OPAM to meet dependencies and you can find more details at https://github.com/astrada/google-drive-ocamlfuse/wiki/Installation .

lockheed commented on 2014-01-28 15:09 (UTC)

PS To backup folders form outside the "Copy" folder, just create symbolic links to them.

lockheed commented on 2014-01-15 22:19 (UTC)

The package is fine. The Google Drive itself is the problem. I have been trying to use it on several account, on very fast internet connections, but it was always the same - the transfer speeds to GDrive are not just low. Oh no. They are absurdly low! I mean in BITS per SECOND! It takes WEEKS to upload mere 20 GB. Do yourself a favour and create Copy account: https://copy.com?r=cdNDuV If you use this link, we both get extra 5GB which gives you free 20GB to boot. Unlike google, it is fast, and unlike google they don't ignore linux customers and provide native client.

mlq commented on 2013-12-13 09:37 (UTC)

Apparently you are trying to build ocamlfuse and not google-drive-ocamlfuse, at least the error is happening on the other package. Please state your error there: https://aur.archlinux.org/packages/ocamlfuse/

djringjr commented on 2013-12-13 04:26 (UTC)

Sorry, only half of the errors: error in building ocamlfuse ^ Fuse_util.c:625:1: note: in expansion of macro ‘FOR_ALL_OPS’ FOR_ALL_OPS(CALLBACK) ^ ar rcs libFuse_stubs.a Fuse_bindings_stubs.o Unix_util_stubs.o Fuse_util.o ocamlopt -c -thread Result.ml ocamlopt -c -thread Unix_util.ml ocamlc -c -thread Fuse_bindings.mli File "Fuse_bindings.mli", line 37, characters 8-23: Error: Unbound module Com ../OCamlMakefile:933: recipe for target 'Fuse_bindings.cmi' failed make[1]: *** [Fuse_bindings.cmi] Error 2 make[1]: Leaving directory '/tmp/packerbuild-0/ocamlfuse/ocamlfuse/src/ocamlfuse-2.7.1-cvs/lib' ../OCamlMakefile:725: recipe for target 'native-code-library' failed make: *** [native-code-library] Error 2 make: Leaving directory '/tmp/packerbuild-0/ocamlfuse/ocamlfuse/src/ocamlfuse-2.7.1-cvs/lib' ==> ERROR: A failure occurred in build(). Aborting... The build failed.

djringjr commented on 2013-12-13 04:22 (UTC)

Fuse_util.c:625:1: note: in expansion of macro ‘FOR_ALL_OPS’ FOR_ALL_OPS(CALLBACK) ^ ar rcs libFuse_stubs.a Fuse_bindings_stubs.o Unix_util_stubs.o Fuse_util.o ocamlopt -c -thread Result.ml ocamlopt -c -thread Unix_util.ml ocamlc -c -thread Fuse_bindings.mli File "Fuse_bindings.mli", line 37, characters 8-23: Error: Unbound module Com ../OCamlMakefile:933: recipe for target 'Fuse_bindings.cmi' failed make[1]: *** [Fuse_bindings.cmi] Error 2 make[1]: Leaving directory '/tmp/yaourt-tmp-user/aur-ocamlfuse/src/ocamlfuse-2.7.1-cvs/lib' ../OCamlMakefile:725: recipe for target 'native-code-library' failed make: *** [native-code-library] Error 2 make: Leaving directory '/tmp/yaourt-tmp-user/aur-ocamlfuse/src/ocamlfuse-2.7.1-cvs/lib' ==> ERROR: A failure occurred in build(). Aborting... Doesn't work for me today. I want this! David

mlq commented on 2013-12-05 09:56 (UTC)

I've managed to build it again and updated the PKGBUILD. The only way I was able to make it work is that I've removed all installed packages (and dependencies) of this package and then I rebuilt them from scratch. You need to apply the fixes for 'ocamlfuse' and 'gapi-ocaml' which are both in the comments and you need to install 'ocaml-easy-format' as well which is a dependency of 'ocaml-joyson'.

possum commented on 2013-12-05 03:52 (UTC)

Installing this package at this moment it's a challenge. I've been able to install it by editing PKGBUILDs only(yaourt saved me a lot of time with this). Here's what i changed: 1) when building ocamlfuse replace in the PKGBUILD the include dirs like this: make -C lib INCDIRS='/usr/lib/ocaml/stublibs /usr/lib/ocaml/camlidl' (and not forget 3) ) 2) gapi-ocaml says it's 0.2.1 but in fact downloads 0.2, to download the correct version in the PKGBUILD change the url like this: source=(http://forge.ocamlcore.org/frs/download.php/1274/$pkgname-$pkgver.tar.gz) and change the checksum to: md5sums=('c87aa3b2c9afef190307d8da51d65875') also replace 0.2 with $pkgver in both cd commands. (and not forget 3) ) NOTE: 2) fixes the error described by @lockheed 3) as said by @calucian, add the option staticlibs with: options=('staticlibs') (if options was already present add the new option to the list) The packages that require staticlibs are: ocaml-sqlite3, ocaml-extlib, ocaml-cryptokit, ocamlnet, ocaml-curl, gapi-ocaml, camlidl and ocamlfuse

lockheed commented on 2013-12-03 11:07 (UTC)

I am getting this error while compiling. Does anyone know what's happening? ==> Starting build()... W: Field 'pkg_gapi_ocaml_version_ge_0_2_1' is not set: Cannot satisfy version constraint on pkg_gapi_ocaml: >= 0.2.1 (version: 0.2) E: Cannot find findlib package gapi-ocaml (>= 0.2.1) E: Failure("1 configuration error") ==> ERROR: A failure occurred in build(). Aborting...

flaccid commented on 2013-11-29 02:13 (UTC)

@mlq I get the same issue as gourdcaptain with cannot find -lcamlidl, can you update the PKBUILD please?

gourdcaptain commented on 2013-11-25 20:59 (UTC)

Is anyone else having a problem where the drive mounted is suddenly blank with no files on it? My files are still on there in the web interface, but I can't access them through this anymore.

calucian commented on 2013-11-11 19:47 (UTC)

@gourdcaptain: yes, I was referring to that error in my second comment: the PKGBUILD of google-drive-ocamlfuse has a prepare() section. In that section, the second line applies a patch to remove the dependency on camlidl (patch -p1 -i "$srcdir/0001-Remove-camlidl.patch"). I have just commented that line (with a #) and I was able to get a working binary. My hunch is that somebody realized that the libcamlidl was not needed but forgot to also remove it from the linker command line when building google-drive (that's why it stops on /usr/bin/ld: cannot find -lcamlidl). Either way, commending the patch line should make it build.

gourdcaptain commented on 2013-11-10 03:46 (UTC)

Right, after going back through and recompiling everything with staticlibs enabled, I get: + ocamlfind ocamlopt -g -linkpkg -package threads -package sqlite3 -package gapi-ocaml -package Fuse -thread src/appDir.cmx src/utils.cmx src/config.cmx src/cache.cmx src/concurrentGlobal.cmx src/keyValueStore.cmx src/state.cmx src/context.cmx src/gaeProxy.cmx src/mime.cmx src/oauth2.cmx src/drive.cmx src/gdfuse.cmx -o src/gdfuse.native /usr/bin/ld: cannot find -lcamlidl collect2: error: ld returned 1 exit status File "caml_startup", line 1: Error: Error during linking Command exited with code 2. Compilation unsuccessful after building 40 targets (0 cached) in 00:00:08. E: Failure("Command ''/usr/bin/ocamlbuild' src/gdfuse.native -tag debug' terminated with error code 10")

calucian commented on 2013-11-07 23:37 (UTC)

Of course, if options=(..) already exists you would just add staticlibs to the list. In order to get it to install I also had to comment (#) the line with the patch step from prepare(). That seems to remove libcamlidl from the required packages but then the linking fails for not finding libcamlidl...

calucian commented on 2013-11-07 23:13 (UTC)

@gourdcaptain: Yes. I'm pretty much in the same situation. It appears the arch linux guys have (recently) made a decision not to install the static libraries by default when building packages. See: https://mailman.archlinux.org/pipermail/arch-dev-public/2013-September/025454.html. So I believe the PKGBUILD files (for all the ocaml packages) should have the following line added (in the preamble part): options=('staticlibs')

gourdcaptain commented on 2013-11-07 20:33 (UTC)

As I have been slowly recursing back up the set of failures in building the libraries in this package (slightly frustrated) this failed to build with the error: + ocamlfind ocamlopt -g -linkpkg -package threads -package sqlite3 -package gapi-ocaml -package Fuse -thread src/appDir.cmx src/utils.cmx src/config.cmx src/cache.cmx src/concurrentGlobal.cmx src/keyValueStore.cmx src/state.cmx src/context.cmx src/gaeProxy.cmx src/mime.cmx src/oauth2.cmx src/drive.cmx src/gdfuse.cmx -o src/gdfuse.native gcc: error: /usr/lib/ocaml/site-lib/Fuse/Fuse.a: No such file or directory gcc: error: /usr/lib/ocaml/gapi-ocaml/gapi-ocaml.a: No such file or directory gcc: error: /usr/lib/ocaml/cryptokit/cryptokit.a: No such file or directory gcc: error: /usr/lib/ocaml/curl/curl.a: No such file or directory gcc: error: /usr/lib/ocaml/netstring/netstring.a: No such file or directory gcc: error: /usr/lib/ocaml/netsys/netsys.a: No such file or directory gcc: error: /usr/lib/ocaml/netsys/netsys_oothr_mt.a: No such file or directory gcc: error: /usr/lib/ocaml/extlib/extLib.a: No such file or directory gcc: error: /usr/lib/ocaml/sqlite3/sqlite3.a: No such file or directory File "caml_startup", line 1: Error: Error during linking Command exited with code 2. Compilation unsuccessful after building 40 targets (0 cached) in 00:00:09. E: Failure("Command ''/usr/bin/ocamlbuild' src/gdfuse.native -tag debug' terminated with error code 10") Any suggestions?