snap installation error
1
0
Entering edit mode
6.8 years ago
kamel ▴ 70

Hello everybody

I want to annotate the genomes of fungi and I wanted to install snap, I already installed on ubuntu. now i'm working on debian, the installation stops that i did "make" i get an installation error below :

root@debian:software/snap# make

make gcc make[1] : on entre dans le répertoire « /software/snap » cd Zoe; make; make[2] : on entre dans le répertoire « /software/snap/Zoe » make gcc make[3] : on entre dans le répertoire « /software/snap/Zoe » make zoe-loop CC="gcc" CFLAGS="-O2 -Wall -Werror" make[4] : on entre dans le répertoire « /software/snap/Zoe » gcc -O2 -Wall -Werror -c -o zoe-loop.o zoe-loop.c gcc -O2 -Wall -Werror -c -o zoeAlignment.o zoeAlignment.c zoeAlignment.c: In function ‘zoeHSPCmpQuery’: zoeAlignment.c:678:50: error: self-comparison always evaluates to false [-Werror=tautological-compare] else if (h1->q_start > h2->q_start && h2->q_end > h2->q_end) return 1; ^ zoeAlignment.c: In function ‘zoeHSPCmpSbjct’: zoeAlignment.c:684:50: error: self-comparison always evaluates to false [-Werror=tautological-compare] else if (h1->s_start > h2->s_start && h2->s_end > h2->s_end) return 1; ^ cc1: all warnings being treated as errors Makefile:110 : la recette pour la cible « zoeAlignment.o » a échouée make[4]: * [zoeAlignment.o] Erreur 1 make[4] : on quitte le répertoire « /software/snap/Zoe » Makefile:95 : la recette pour la cible « gcc » a échouée make[3]: [gcc] Erreur 2 make[3] : on quitte le répertoire « /software/snap/Zoe » Makefile:58 : la recette pour la cible « default » a échouée make[2]: [default] Erreur 2 make[2] : on quitte le répertoire « /software/snap/Zoe » Makefile:96 : la recette pour la cible « gcc » a échouée make[1]: [gcc] Erreur 2 make[1] : on quitte le répertoire « /software/snap » Makefile:58 : la recette pour la cible « default » a échouée make: ** [default] Erreur 2

software error genome gene • 4.1k views
ADD COMMENT
1
Entering edit mode

There is already a snap package in the Debian repos. See https://tracker.debian.org/pkg/snap. If this is the program/version you want, you can simply install it using apt-get install snap

ADD REPLY
0
Entering edit mode
6.8 years ago
kloetzl ★ 1.1k

sed -i 's/-Werror//g' Makefile* Not beautiful, but might help.

ADD COMMENT
0
Entering edit mode

I copy that but the same error

ADD REPLY
0
Entering edit mode

That is weird, to say the least. The make file produces errors because the compiler turns warnings into errors because of the -Werror switch. If that is removed from the compilation process, the errors could be similar but should not be the same.

ADD REPLY
0
Entering edit mode

I know this is an old thread but if anyone has the same problem I prefer to write it here because it is one of the first results in google.

There is a subfolder named "Zoe" in the SNAP folder. To compile snap you have to remove "-Werror" in the Makefile in that folder as well (for example by running the above command in the Zoe folder).

ADD REPLY
0
Entering edit mode

Running make in the Zoe folder first, then running make again in my snap folder fixed the same issue for me just now.

ADD REPLY

Login before adding your answer.

Traffic: 1946 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6