EddyRivasLab / hmmer

HMMER: biological sequence analysis using profile HMMs
http://hmmer.org
Other
305 stars 69 forks source link

make error at develop branch #282

Closed wolf-Peng closed 1 year ago

wolf-Peng commented 2 years ago

hello, I want to use the develop version of create_profmark.c and I run the command: git clone https://github.com/EddyRivasLab/hmmer cd hmmer git clone https://github.com/EddyRivasLab/easel git checkout develop autoconf ./configure make Then it raised an error esl_iset.c: In function ‘esl_iset_Cobalt’: esl_iset.c:368:5: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = n; i < n+nb; i++){ ^ esl_iset.c:368:5: note: use option -std=c99 or -std=gnu99 to compile your code esl_iset.c: In function ‘esl_bi_iset_Cobalt’: esl_iset.c:491:9: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = 2*n; i < 2*n+nb2; i++){ ^ esl_iset.c:526:7: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = 2*n; i < 2*n+nb2; i++){ ^ esl_iset.c:538:9: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = n; i < n+nb1; i++){ ^ make[1]: *** [esl_iset.o] Error 1 make: *** [all] Error 2 How to solve it ? Thank you.

cryptogenomicon commented 2 years ago

We are currently working on the develop branch version of create_profmark. Please be patient while we finish!

npcarter commented 2 years ago

This bug should now be fixed in the develop branch. Our autoconf/configure system should now detect that your compiler requires a flag to handle the C99 standard and insert it automatically. However, as Sean said, create_profmark is currently being revised so you may experience other problems.

-Nick

On Mon, Jun 20, 2022 at 1:34 AM wolf-Peng @.***> wrote:

hello, I want to use the develop version of create_profmark.c and I run the command: git clone https://github.com/EddyRivasLab/hmmer cd hmmer git clone https://github.com/EddyRivasLab/easel git checkout develop autoconf ./configure make Then it raised an error esl_iset.c: In function ‘esl_iset_Cobalt’: esl_iset.c:368:5: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = n; i < n+nb; i++){ ^ esl_iset.c:368:5: note: use option -std=c99 or -std=gnu99 to compile your code esl_iset.c: In function ‘esl_bi_iset_Cobalt’: esl_iset.c:491:9: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = 2n; i < 2n+nb2; i++){ ^ esl_iset.c:526:7: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = 2n; i < 2n+nb2; i++){ ^ esl_iset.c:538:9: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = n; i < n+nb1; i++){ ^ make[1]: [esl_iset.o] Error 1 make: [all] Error 2 How to solve it ? Thank you.

— Reply to this email directly, view it on GitHub https://github.com/EddyRivasLab/hmmer/issues/282, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDJBZCLT5KYVGV3LRENPU3VP77GBANCNFSM5ZHU2LAA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jrherr commented 2 years ago

Just commenting here to get a ping if there are any updates to this issue.

I am also reinstalling on a M1 Mac. When I run:

git clone https://github.com/EddyRivasLab/hmmer
cd hmmer
git clone https://github.com/EddyRivasLab/easel
git checkout develop
autoconf
./configure
make

I then get the following error during compiling:

generic_vtrace.c:78:16: error: implicit declaration of function 'esl_FCompare_old' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      if      (esl_FCompare_old(XMX(i, p7G_C), XMX(i-1, p7G_C) + gm->xsc[p7P_C][p7P_LOOP], tol) == eslOK)  scur = p7T_C; 
               ^
1 error generated.
make[1]: *** [generic_vtrace.o] Error 1
make: *** [all] Error 2

...any help is appreciated! Thanks!

npcarter commented 2 years ago

It looks to me like you’ve checked out the develop branch of HMMER, but not the develop branch of Easel, which the develop branch of HMMER requires. Could you please try checking out the develop branch of Easel as well, and let me know if that works?

-Nick

0x1orz commented 1 year ago
git clone -b develop  https://github.com/EddyRivasLab/hmmer
cd hmmer
git clone -b develop https://github.com/EddyRivasLab/easel
cd easel
autoconf
./configure
make
make check
cd ../
autoconf
./configure
make

when make at hmmer/, get the following error:

create-profmark.c:28:10: fatal error: 'esl_msa_iset.h' file not found
#include "esl_msa_iset.h"
         ^~~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [create-profmark.o] Error 1
make: *** [all] Error 2
cryptogenomicon commented 1 year ago

Yes, our develop branch is currently not compiling, and we know about it.