vg icon indicating copy to clipboard operation
vg copied to clipboard

Failed building VG

Open RenzoTale88 opened this issue 5 years ago • 9 comments

Dear vg team, since I need to build hal2vg, I've been trying to build vg from sources. I've been following the guide provided, installing all the dependencies on ubuntu 16.04. I've managed to install it, but with several issues that I'd like to send you, maybe they can be useful to you or to who is having my same issues.

I've done as follow:

git clone --recursive https://github.com/vgteam/vg.git
cd vg
# Install all but protobuf 3
sudo apt-get install build-essential git cmake pkg-config libncurses-dev libbz2-dev  \
                     libjansson-dev automake libtool jq bc rs curl unzip redland-utils \
                     librdf-dev bison flex gawk lzma-dev liblzma-dev liblz4-dev \
                     libffi-dev libcairo-dev

# Install Protobuf 3
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.6.1/protobuf-all-3.6.1.tar.gz
tar xvfz protoc-3.6.1-linux-x86_64.zip && cd protobuf-3.6.1
./configure
make 
make check
sudo make install
sudo ldconfig

# Compile VG
. ./source_me.sh && make

Despite that, the whole compilation would fail with the default gcc compiler (GCC 5.4.0). To fix it, I had to install gcc v7.4.0 and CMake >3.9 and repeat the compilation. Still, I was getting an error when trying to import BooPHF.h. To fix that, I had to:

cp vg/deps/BBHash/BooPHF.h vg/include

With these changes, I was able to compile vg without errors. Attached, you can find the error I got when compiling with gcc 5.4.0. Hope this is of any help, All the best,

Andrea

VGerror.txt

RenzoTale88 avatar Sep 29 '19 14:09 RenzoTale88

Huh. @adamnovak, any idea why this wouldn't copy BooPHF.h? https://github.com/vgteam/vg/blob/master/Makefile#L425

jeizenga avatar Sep 29 '19 17:09 jeizenga

It looks like it should.

Do you maybe have a case problem?

Or are you missing a dependency between whatever actually uses the header and that Makefile rule?

I'm not sure why it doesn't work with GCC 5.4 either, other than that we haven't been testing with GCC 5.4 in a while.

On 9/29/19, Jordan Eizenga [email protected] wrote:

Huh. @adamnovak, any idea why this wouldn't copy BooPHF.h? https://github.com/vgteam/vg/blob/master/Makefile#L425

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/vgteam/vg/issues/2491#issuecomment-536321868

adamnovak avatar Sep 29 '19 19:09 adamnovak

I got no clue. I've tried to compile on a separate ubuntu 16.04 machine, with GCC9 installed instead of GCC7. It compile the library just fine, but then again it do not copy it. After copying it to the include folder, everything run just fine.

RenzoTale88 avatar Sep 30 '19 11:09 RenzoTale88

Yeah, and at least by eye the dependencies should go

all: $(BIN_DIR)/$(EXE)
$(BIN_DIR)/$(EXE): ... $(DEPS) ... 
DEPS += $(INC_DIR)/BooPHF.h
$(INC_DIR)/BooPHF.h: $(BBHASH_DIR)/BooPHF.h

jeizenga avatar Sep 30 '19 16:09 jeizenga

How did you do that? When I try to make vg, I end up with

make: *** No rule to make target 'deps/sdsl-lite/lib/*.cpp', needed by 'lib/libsdsl.a'. Stop.

LilithElina avatar Oct 01 '19 11:10 LilithElina

Did you clone with git clone --recursive ?

On Tue, Oct 1, 2019 at 1:54 PM Sarah Pohl [email protected] wrote:

How did you do that? When I try to make vg, I end up with

make: *** No rule to make target 'deps/sdsl-lite/lib/*.cpp', needed by 'lib/libsdsl.a'. Stop.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vgteam/vg/issues/2491?email_source=notifications&email_token=AABDQENKCJ7ZNDHKYICH2UTQMM26RA5CNFSM4I3SUOTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAA72PQ#issuecomment-537001278, or mute the thread https://github.com/notifications/unsubscribe-auth/AABDQEL44SDRI6MLXF6SRIDQMM26RANCNFSM4I3SUOTA .

ekg avatar Oct 01 '19 12:10 ekg

Yes, and I thought except for the time out of elfutils everything was cloned, but all the directories in deps/ are empty...

LilithElina avatar Oct 01 '19 12:10 LilithElina

Forget the question, I know what you did: you did not face company network restrictions. Thanks to randomly clicking Google results I found the solution here: git config --global url."https://".insteadOf git:// helped me change the elfutils link and then it worked fine.

LilithElina avatar Oct 01 '19 13:10 LilithElina

@LilithElina The above command saved the day. Perhaps the problem is related to the proxy. Thank you.

kojix2 avatar Oct 12 '23 02:10 kojix2