Package Details: google-drive-ocamlfuse 0.7.17-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: 57
Popularity: 1.25
First Submitted: 2013-10-14 21:44
Last Updated: 2020-01-21 01:40

Dependencies (7)

Required by (1)

Sources (1)

Pinned Comments

pricechrispy commented on 2018-01-27 00:47

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

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

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

« First ‹ Previous ... 11 12 13 14 15 16

flaccid commented on 2013-11-29 02:13

@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

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.

LucidComplex commented on 2013-11-17 15:12

Same with gourdcaptain, I recompiled everything with staticlibs in the options, another error pops up again

Finished, 0 targets (0 cached) in 00:00:00.
+ 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
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/bin/ocamlbuild' src/gdfuse.native -tag debug' terminated with error code 10")
==> ERROR: A failure occurred in build().
Aborting...

Any help for this?

calucian commented on 2013-11-11 19:47

@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

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

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

@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

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?