torognes / vsearch

Versatile open-source tool for microbiome analysis
Other
656 stars 122 forks source link

Error during make #451

Closed Patg13 closed 3 years ago

Patg13 commented 3 years ago

Hi I tried to complied the lastest version of vsearch and I got an error during the make :

fastx.cc: In function 'uint64_t fastx_file_fill_buffer(fastx_handle)': fastx.cc:566:11: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] int bytes_read = 0; ^~~~~~ fastx.cc:633:32: error: 'bytes_read' was not declared in this scope h->file_buffer.length += bytes_read; ^~~~~~ fastx.cc:633:32: note: suggested alternative: 'xopen_read' h->file_buffer.length += bytes_read; ^~~~~~ xopen_read fastx.cc: At global scope: fastx.cc:636:1: error: expected declaration before '}' token } ^

I've tried compile from v2.17.1.tar.gz and from the cloned repo, same error.

Do I miss a library or is there something I must do to correct this ? Thanks !

Patg13 commented 3 years ago

Oups, my bad... I had a conda environment loaded and it was conflicting with the compilation, I deactivated it and it's compiling correctly now.

torognes commented 3 years ago

Not your fault! There was an error in the code causing a compilation error when the zlib.h head file was unavailable. Fixed in commit f435de0c65a6426a765ba5a89de9f10958aed6f0.