Entering edit mode
4.3 years ago
wew
•
0
We have followed the instructions for compiling vg and are getting an error (shown below). We are on ubuntu 16.04 (in a singularity container) with protoc 3.6.1 () with gcc 5.4.0 and cmake 3.18.1.
The compile errors out with:
[ 23%] Building CXX object CMakeFiles/vgio_static.dir/vg.pb.cc.o
/usr/bin/g++ -I/usr/local/src/vg/deps/libvgio/include -I/usr/local/src/vg/deps/libvgio -I/usr/local/src/vg/deps/libvgio/handlegraph-prefix/include -I/usr/local/src/vg/deps/libvgio/src -O3 -g -fopenmp -fopenmp -std=gnu++14 -o CMakeFiles/vgio_static.dir/vg.pb.cc.o -c /usr/local/src/vg/deps/libvgio/vg.pb.cc
In file included from /usr/local/src/vg/deps/libvgio/vg.pb.cc:4:0:
/usr/local/src/vg/deps/libvgio/vg.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is
#error This file was generated by a newer version of protoc which is
^
/usr/local/src/vg/deps/libvgio/vg.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update
#error incompatible with your Protocol Buffer headers. Please update
^
/usr/local/src/vg/deps/libvgio/vg.pb.h:14:2: error: #error your headers.
#error your headers.
^
In file included from /usr/local/src/vg/deps/libvgio/vg.pb.cc:4:0:
/usr/local/src/vg/deps/libvgio/vg.pb.h:23:35: fatal error: google/protobuf/arena.h: No such file or directory
compilation terminated.
CMakeFiles/vgio_static.dir/build.make:92: recipe for target 'CMakeFiles/vgio_static.dir/vg.pb.cc.o' failed
make[3]: *** [CMakeFiles/vgio_static.dir/vg.pb.cc.o] Error 1
make[3]: Leaving directory '/usr/local/src/vg/deps/libvgio'
CMakeFiles/Makefile2:157: recipe for target 'CMakeFiles/vgio_static.dir/all' failed
make[2]: *** [CMakeFiles/vgio_static.dir/all] Error 2
make[2]: Leaving directory '/usr/local/src/vg/deps/libvgio'
Makefile:151: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/local/src/vg/deps/libvgio'
Makefile:454: recipe for target 'lib/libvgio.a' failed
make: *** [lib/libvgio.a] Error 2
Help would be appreciated.
At the vg releases page, there is an already compiled binary and a link to a docker image. Any reason not to use those resources?
In addition to that, there is a bioconda recipe for compiling from source: https://anaconda.org/bioconda/vg