Open EricDeveaud opened 4 years ago
FIY libcfu-0.0.3 from sourceforge: https://sourceforge.net/projects/libcfu/files/libcfu/libcfu-0.03/libcfu-0.03.tar.gz
compiles fine on the same system unsing the same tools, libcfu.a is generated examples compilation fails on hash_usage.c
hash_usage.c:39:33: error: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Werror=format=]
39 | sprintf(list[i][0], "test_var%d", i);
| ~^ ~
| | |
| int size_t {aka long unsigned int}
| %ld
hash_usage.c:40:30: error: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Werror=format=]
40 | sprintf(list[i][1], "value%d", i);
| ~^ ~
| | |
| int size_t {aka long unsigned int}
| %ld
etc etc....
eric
Hi,
Unfortunately BamM is no longer supported - instead it would be best to switch to CoverM https://github.com/wwood/CoverM
If you really need BamM, you might try installing according to the guix recipe, available here, which compiles as I understand. https://guix.gnu.org/packages/bamm-1.7.3/ https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/bioinformatics.scm#n183 Hope that helps. ben
Ben WoodcroftMicrobial informatics team leader Centre for Microbiome Research, Level 3, Translational Research Institute, Queensland University of Technology (https://maps.google.com/?q=Centre%20for%20Microbiome%20Research%2C%20Level%203%2C%20Translational%20Research%20Institute%2C%20Queensland%20University%20of%20Technology)
On Jun 20 2020, at 12:19 am, Eric Deveaud notifications@github.com wrote:
FIY libcfu-0.0.3 from sourceforge: https://sourceforge.net/projects/libcfu/files/libcfu/libcfu-0.03/libcfu-0.03.tar.gz compiles fine on the same system unsing the same tools, libcfu.a is generated examples compilation fails on hash_usage.c
hash_usage.c:39:33: error: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Werror=format=]
39 | sprintf(list[i][0], "test_var%d", i);
| ~^ ~
| | |
| int size_t {aka long unsigned int}
| %ld
hash_usage.c:40:30: error: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Werror=format=]
40 | sprintf(list[i][1], "value%d", i);
| ~^ ~
| | |
| int size_t {aka long unsigned int}
| %ld
etc etc.... eric — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub (https://github.com/Ecogenomics/BamM/issues/58#issuecomment-646661960), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AAADX5H72XFF6LMHFESJ64LRXNXYZANCNFSM4OCYP5YQ).
I'm trying to install Bamm from release tag 1.7.3 (https://github.com/Ecogenomics/BamM/archive/1.7.3.tar.gz) on a centos-8.2 system, using gcc/9.2.0 and pythton/2.7.17
I have a compilation error while building libcfu
in order to have a smaller error log and for you to be abble to reproduce the problem I've done the following
tar xf 1.7.3.tar.gz cd BamM-1.7.3/c/libcfu autoreconf -fiv ./configure make
here is the errror I have
loog int vs unsigned int is not a prpble to fix using a cast, but I'm not abble to track down the
duplicate unsigned
errorcan you help. ?
regards
Eric