Package Details: caffe-cuda-git 1.0.r136.g9b8915401-3

Git Clone URL: https://aur.archlinux.org/caffe-cuda-git.git (read-only, click to copy)
Package Base: caffe-cuda-git
Description: A deep learning framework made with expression, speed, and modularity in mind (with cuda support, git version)
Upstream URL: https://caffe.berkeleyvision.org/
Licenses: BSD
Conflicts: caffe
Provides: caffe, caffe-cuda, caffe-git
Submitter: dbermond
Maintainer: dbermond
Last Packager: dbermond
Votes: 0
Popularity: 0.000000
First Submitted: 2018-08-22 18:02 (UTC)
Last Updated: 2022-03-01 14:46 (UTC)

Dependencies (52)

Required by (2)

Sources (5)

Latest Comments

dbermond commented on 2024-03-06 01:10 (UTC)

@gardotd426 This package itself is not abandoned. What seems to be abandoned is the upstream caffe project, which was superseded by caffe2, which in turn was incorporated by pytorch. The latest caffe upstream release was in 2017, and the latest caffe upstream commit was in 2020. That's why you do not see any updates here the packaging side. In such scenario, package updates are only needed here if something breaks and/or needs adjustment. It looks like that the building is broken again, as it fails to compile against the latest glog. I will look at the source and try to add a fix, but I cannot guarantee anything. If you have a fix for this problem, please post a link to a patch. If we cannot fix it, the best thing to do is to delete the caffe packages from the AUR, since it's pretty abandoned upstream and mostly unmaintainable. As upstream caffe does not get any official attention and/or fixes anymore, it becomes more and more difficult to maintain this package, since it tends to always break when newer versions of dependencies are released, without any official upstream maintenance over that.

gardotd426 commented on 2024-03-05 09:34 (UTC)

This is all sorts of broken right now. Won't compile whatsoever.

I ran an update which updated protobuf and gflags, and at the end of the update where it says "checking for packages that need to be rebuilt" or whatever, it listed caffe-cuda-git (as well as a few others). The others all built fine (I don't believe they use the same dependencies, it was a large update), but caffe-cuda-git does NOT build. There are a MILLION error: #error <glog/libraryname.h> was not included correctly. See the documentation for how to consume the library, with <glog/libraryname.h> being basically every glog library.

Obviously the comments here are old as dirt, so they're irrelevant, but I did try uninstalling caffe-cuda-git and any caffe packages and reinstalling from scratch, but it changed absolutely nothing.

caffe-cuda non-git fails for entirely different reasons.

Is this package abandoned? It's not been updated in over 2 years at this point, and there hasn't been a comment on this page for almost 4 years.

Here's a sample of some of the error messages, but it's only like a third or half of them, but they're all the same thing mostly:

/usr/include/glog/logging.h:60:4: error: #error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
   60 | #  error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:78:
/usr/include/glog/vlog_is_on.h:71:4: error: #error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
   71 | #  error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from ./include/caffe/common.hpp:6,
                 from ./include/caffe/blob.hpp:8,
                 from ./include/caffe/layers/conv_layer.hpp:6,
                 from src/caffe/layers/conv_layer.cu:3:
/usr/include/glog/logging.h:60:4: error: #error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
   60 | #  error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:63:
/usr/include/glog/flags.h:45:4: error: #error <glog/flags.h> was not included correctly. See the documention for how to consume the library.
   45 | #  error <glog/flags.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:63:
/usr/include/glog/flags.h:45:4: error: #error <glog/flags.h> was not included correctly. See the documention for how to consume the library.
   45 | #  error <glog/flags.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:77:
/usr/include/glog/log_severity.h:38:4: error: #error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
   38 | #  error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:77:
/usr/include/glog/log_severity.h:38:4: error: #error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
   38 | #  error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:78:
/usr/include/glog/vlog_is_on.h:71:4: error: #error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
   71 | #  error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:77:
/usr/include/glog/log_severity.h:38:4: error: #error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
   38 | #  error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:78:
/usr/include/glog/vlog_is_on.h:71:4: error: #error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
   71 | #  error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:78:
/usr/include/glog/vlog_is_on.h:71:4: error: #error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
   71 | #  error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from ./include/caffe/common.hpp:6,
                 from ./include/caffe/blob.hpp:8,
                 from ./include/caffe/layers/accuracy_layer.hpp:6,
                 from src/caffe/layers/accuracy_layer.cu:3:
/usr/include/glog/logging.h:60:4: error: #error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
   60 | #  error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:63:
/usr/include/glog/flags.h:45:4: error: #error <glog/flags.h> was not included correctly. See the documention for how to consume the library.
   45 | #  error <glog/flags.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:77:
/usr/include/glog/log_severity.h:38:4: error: #error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
   38 | #  error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from ./include/caffe/common.hpp:6,
                 from ./include/caffe/blob.hpp:8,
                 from ./include/caffe/layers/crop_layer.hpp:7,
                 from src/caffe/layers/crop_layer.cu:3:
/usr/include/glog/logging.h:60:4: error: #error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
   60 | #  error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:78:
/usr/include/glog/vlog_is_on.h:71:4: error: #error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
   71 | #  error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:63:
/usr/include/glog/flags.h:45:4: error: #error <glog/flags.h> was not included correctly. See the documention for how to consume the library.
   45 | #  error <glog/flags.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:77:
/usr/include/glog/log_severity.h:38:4: error: #error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
   38 | #  error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:78:
/usr/include/glog/vlog_is_on.h:71:4: error: #error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
   71 | #  error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from ./include/caffe/common.hpp:6,
                 from ./include/caffe/blob.hpp:8,
                 from ./include/caffe/layers/deconv_layer.hpp:6,
                 from src/caffe/layers/deconv_layer.cu:3:
/usr/include/glog/logging.h:60:4: error: #error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
   60 | #  error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:63:
/usr/include/glog/flags.h:45:4: error: #error <glog/flags.h> was not included correctly. See the documention for how to consume the library.
   45 | #  error <glog/flags.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:77:
/usr/include/glog/log_severity.h:38:4: error: #error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
   38 | #  error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:78:
/usr/include/glog/vlog_is_on.h:71:4: error: #error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
   71 | #  error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from ./include/caffe/common.hpp:6,
                 from ./include/caffe/blob.hpp:8,
                 from ./include/caffe/layers/contrastive_loss_layer.hpp:6,
                 from src/caffe/layers/contrastive_loss_layer.cu:4:
/usr/include/glog/logging.h:60:4: error: #error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
   60 | #  error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:63:
/usr/include/glog/flags.h:45:4: error: #error <glog/flags.h> was not included correctly. See the documention for how to consume the library.
   45 | #  error <glog/flags.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:77:
/usr/include/glog/log_severity.h:38:4: error: #error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
   38 | #  error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:78:
/usr/include/glog/vlog_is_on.h:71:4: error: #error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
   71 | #  error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from ./include/caffe/common.hpp:6,
                 from ./include/caffe/blob.hpp:8,
                 from ./include/caffe/layers/bnll_layer.hpp:6,
                 from src/caffe/layers/bnll_layer.cu:4:
/usr/include/glog/logging.h:60:4: error: #error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
   60 | #  error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:63:
/usr/include/glog/flags.h:45:4: error: #error <glog/flags.h> was not included correctly. See the documention for how to consume the library.
   45 | #  error <glog/flags.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:77:
/usr/include/glog/log_severity.h:38:4: error: #error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
   38 | #  error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:78:
/usr/include/glog/vlog_is_on.h:71:4: error: #error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
   71 | #  error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from ./include/caffe/common.hpp:6,
                 from ./include/caffe/blob.hpp:8,
                 from ./include/caffe/layers/dropout_layer.hpp:6,
                 from src/caffe/layers/dropout_layer.cu:3:
/usr/include/glog/logging.h:60:4: error: #error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
   60 | #  error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:63:
/usr/include/glog/flags.h:45:4: error: #error <glog/flags.h> was not included correctly. See the documention for how to consume the library.
   45 | #  error <glog/flags.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:77:
/usr/include/glog/log_severity.h:38:4: error: #error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
   38 | #  error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:78:
/usr/include/glog/vlog_is_on.h:71:4: error: #error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
   71 | #  error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from ./include/caffe/common.hpp:6,
                 from ./include/caffe/blob.hpp:8,
                 from ./include/caffe/layers/base_data_layer.hpp:6,
                 from src/caffe/layers/base_data_layer.cu:3:
/usr/include/glog/logging.h:60:4: error: #error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
   60 | #  error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:63:
/usr/include/glog/flags.h:45:4: error: #error <glog/flags.h> was not included correctly. See the documention for how to consume the library.
   45 | #  error <glog/flags.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:77:
/usr/include/glog/log_severity.h:38:4: error: #error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
   38 | #  error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:78:
/usr/include/glog/vlog_is_on.h:71:4: error: #error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
   71 | #  error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from ./include/caffe/common.hpp:6,
                 from ./include/caffe/blob.hpp:8,
                 from ./include/caffe/layers/eltwise_layer.hpp:6,
                 from src/caffe/layers/eltwise_layer.cu:4:
/usr/include/glog/logging.h:60:4: error: #error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
   60 | #  error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:63:
/usr/include/glog/flags.h:45:4: error: #error <glog/flags.h> was not included correctly. See the documention for how to consume the library.
   45 | #  error <glog/flags.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:77:
/usr/include/glog/log_severity.h:38:4: error: #error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
   38 | #  error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:78:
/usr/include/glog/vlog_is_on.h:71:4: error: #error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
   71 | #  error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
make: *** [Makefile:617: .build_release/cuda/src/caffe/layers/conv_layer.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:617: .build_release/cuda/src/caffe/layers/concat_layer.o] Error 1
make: *** [Makefile:617: .build_release/cuda/src/caffe/layers/batch_reindex_layer.o] Error 1
make: *** [Makefile:617: .build_release/cuda/src/caffe/layers/deconv_layer.o] Error 1
make: *** [Makefile:617: .build_release/cuda/src/caffe/layers/clip_layer.o] Error 1
make: *** [Makefile:617: .build_release/cuda/src/caffe/layers/bias_layer.o] Error 1
make: *** [Makefile:617: .build_release/cuda/src/caffe/layers/bnll_layer.o] Error 1
make: *** [Makefile:617: .build_release/cuda/src/caffe/layers/batch_norm_layer.o] Error 1
make: *** [Makefile:617: .build_release/cuda/src/caffe/layers/accuracy_layer.o] Error 1
make: *** [Makefile:617: .build_release/cuda/src/caffe/layers/dropout_layer.o] Error 1
make: *** [Makefile:617: .build_release/cuda/src/caffe/layers/contrastive_loss_layer.o] Error 1
make: *** [Makefile:617: .build_release/cuda/src/caffe/layers/absval_layer.o] Error 1
make: *** [Makefile:617: .build_release/cuda/src/caffe/layers/base_data_layer.o] Error 1
make: *** [Makefile:617: .build_release/cuda/src/caffe/layers/crop_layer.o] Error 1
make: *** [Makefile:617: .build_release/cuda/src/caffe/layers/eltwise_layer.o] Error 1
nvcc warning : incompatible redefinition for option 'compiler-bindir', the last value of this option was used
nvcc warning : incompatible redefinition for option 'compiler-bindir', the last value of this option was used
nvcc warning : incompatible redefinition for option 'compiler-bindir', the last value of this option was used
nvcc warning : incompatible redefinition for option 'compiler-bindir', the last value of this option was used
nvcc warning : incompatible redefinition for option 'compiler-bindir', the last value of this option was used
nvcc warning : incompatible redefinition for option 'compiler-bindir', the last value of this option was used
nvcc warning : incompatible redefinition for option 'compiler-bindir', the last value of this option was used
nvcc warning : incompatible redefinition for option 'compiler-bindir', the last value of this option was used
nvcc warning : incompatible redefinition for option 'compiler-bindir', the last value of this option was used
make: Leaving directory '/home/matt/tmp/makepkg/caffe-cuda-git/src/caffe'
==> ERROR: A failure occurred in build().
    Aborting...

dbermond commented on 2018-10-03 17:47 (UTC)

@muffehazard Uninstall the any caffe package before building. It should work fine.

muffehazard commented on 2018-10-03 05:44 (UTC)

@dbermond I don't think libprotobuf was causing this, because the linker failed again when I tried to upgrade today. This time it said it can't find libcudart.so.9.2, libcublas.so.9.2 and libcurand.so.9.2, but again when I renamed libcaffe.so to libcaffe.so.old in /usr/lib the build completed without errors. Checking ldd /usr/lib/libcaffe.so after the build, it's now using 10.0 -versions of the aforementioned libraries. I still think that the build is trying to use the old .so from the system, which causes the build to fail if any of the packages providing any of the linked libraries have been upgraded. I don't know why but this seems to be the case and my workaround also seems to indicate this.

dbermond commented on 2018-09-29 01:08 (UTC)

Guys, this highly looks like an issue with your system. You should not have libprotobuf.so.16 installed because it's not on the official repositories. I wonder why this file is on your system. I do not have this file on my system.

Use pacman -Qo /usr/lib/libprotobuf.so.16 to find what package owns it and remove this given package. If no package owns this file, you can delete libprotobuf.so.16. After this, reinstall protobuf and rebuild caffe-cuda-git.

Package is building fine for me. I've have even updated the package to include nccl since it is now open source again and has landed on the official repositories.

muffehazard commented on 2018-09-26 05:31 (UTC)

Deleting or renaming /usr/lib/libcaffe.so before building resolved this for me, maybe there is an issue where the linker tries to use the old libcaffe.so from /usr/lib instead of the newly built libcaffe.so during build?

Ape commented on 2018-09-24 13:44 (UTC)

I also have this issue with libprotobuf 16 vs 17. I cannot find anything on my system that would provide the older version, but caffe still seems to want it.

dbermond commented on 2018-09-21 23:15 (UTC)

@elmuz I cannot reproduce your issue. Package is building fine for me. My libcaffe.so links against libprotobuf.so.17, which is the current protofub library on the official repositories.

It seems that your libcaffe.so is wrongly linking against libprotobuf.so.16. Try to find what whatever is providing it and remove it.

elmuz commented on 2018-09-18 12:58 (UTC) (edited on 2018-09-18 13:09 (UTC) by elmuz)

Hi I cannot build against libprotobuf. In fact I get warning: libprotobuf.so.16, needed by /usr/lib/libcaffe.so, not found (try using -rpath or -rpath-link). Problem is that I have version 17 instead of 16. Is there any workaround for that?