Open mimame opened 5 years ago
Similar problem has been solved in https://github.com/CRG-Barcelona/bwtool/issues/65; you should alter the firt order for "#include <jkweb/common.h>" in bbiAugment.c file.
Similar problem has been solved in CRG-Barcelona/bwtool#65; you should alter the firt order for "#include <jkweb/common.h>" in bbiAugment.c file. Could you explain it more clearly? I have the same problem and do not know how to do Thank you in advance
open libbeato/beato/bbiAugment.c, write "
" instead of "
"
Similar problem has been solved in CRG-Barcelona/bwtool#65; you should alter the firt order for "#include <jkweb/common.h>" in bbiAugment.c file. Could you explain it more clearly? I have the same problem and do not know how to do Thank you in advance
open libbeato/beato/bbiAugment.c, write "
" instead of "
"
I fixed this error according to your prompts, and then I encountered a new error.
make all-recursive make[1]: Entering directory
/media/dell/C14D581BDA18EBFA/dcNet/libbeato'
Making all in jkweb
make[2]: Entering directory /media/dell/C14D581BDA18EBFA/dcNet/libbeato/jkweb' make[2]: Nothing to be done for
all'.
make[2]: Leaving directory /media/dell/C14D581BDA18EBFA/dcNet/libbeato/jkweb' Making all in beato make[2]: Entering directory
/media/dell/C14D581BDA18EBFA/dcNet/libbeato/beato'
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -Wall -Wformat -Wimplicit -Wreturn-type -Wuninitialized -fno-strict-aliasing -g -O0 -I/home/dell/include -MT fastq_stuff.o -MD -MP -MF .deps/fastq_stuff.Tpo -c -o fastq_stuff.o fastq_stuff.c
In file included from fastq_stuff.c:5:0:
../beato/fastq_stuff.h:22:1: error: unknown type name ‘boolean’
boolean read_fastq_auto(struct fastq_auto fq, struct lineFile lf, boolean just_seq_qual);
^
../beato/fastq_stuff.h:22:69: error: unknown type name ‘boolean’
boolean read_fastq_auto(struct fastq_auto fq, struct lineFile lf, boolean just_seq_qual);
^
../beato/fastq_stuff.h:27:31: error: unknown type name ‘FILE’
void fprint_fastq_auto_normal(FILE* f, struct fastq_auto fq, int wrap_len);
^
fastq_stuff.c: In function ‘read_fastq_auto’:
fastq_stuff.c:28:17: warning: variable ‘numWords’ set but not used [-Wunused-but-set-variable]
int numWords;
^
make[2]: [fastq_stuff.o] Error 1
make[2]: Leaving directory `/media/dell/C14D581BDA18EBFA/dcNet/libbeato/beato'
make[1]: [all-recursive] Error 1
make[1]: Leaving directory /media/dell/C14D581BDA18EBFA/dcNet/libbeato' make: *** [all] Error 2
I think this is also a problem with the header file, but I don't know how to modify it.
@xymia , It's easier rollback to an old commit with git checkout 0c30432af9c7e1e09ba065ad3b2bc042baa54dc2 And then compile
@xymia , It's easier rollback to an old commit with git checkout 0c30432 And then compile
Sorry, can you explain in more detail. I still don't know what to do. Thank you.
git clone https://github.com/CRG-Barcelona/libbeato.git cd libbeato git checkout 0c30432 ./configure make sudo make install
git clone https://github.com/CRG-Barcelona/libbeato.git cd libbeato git checkout 0c30432 ./configure make sudo make install
Thank you very much. I successfully installed it.
I had the same problem, your solution worked great! Thank you! Also bwtool is great little program! :-)
I have followed your instruction and then i had a new error
metaBigBam.c:489:42: error: read-only variable is not assignable h->cigar_tab[(int)BAM_CIGAR_STR[i]] = i;
metaBigBam.c:502:35: warning: 'cigar_tab' is deprecated: Use bam_cigar_table[]
instead [-Wdeprecated-declarations]
op = (uint8_t)*q >= 128? -1 : h->cigar_tab[(int)*q];
^
/usr/local/include/htslib/sam.h:76:29: note: 'cigar_tab' has been explicitly
marked deprecated here
const int8_t *cigar_tab HTS_DEPRECATED("Use bam_cigar_table[] instead");
^
/usr/local/include/htslib/hts_defs.h:75:49: note: expanded from macro
'HTS_DEPRECATED'
#define HTS_DEPRECATED(message) __attribute__ ((__deprecated__ (message)))
error: error opening '.deps/metaBigBam.Tpo': Permission denied
4 warnings and 2 errors generated.
make[2]: *** [metaBigBam.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Please, help me!
> git clone https://github.com/CRG-Barcelona/libbeato.git
> cd libbeato
> git checkout [0c30432](https://github.com/CRG-Barcelona/libbeato/commit/0c30432af9c7e1e09ba065ad3b2bc042baa54dc2)
> ./configure
> make
> sudo make install
@bobia9991 Please repeat all instructions from zero again because the error you showed
error: error opening '.deps/metaBigBam.Tpo': Permission denied
it's not related to this
@bobia9991 Please repeat all instructions from zero again because the error you showed
error: error opening '.deps/metaBigBam.Tpo': Permission denied
it's not related to this
sorry, i have run again without sudo. With sudo, i had a error:
sudo make Password: /Library/Developer/CommandLineTools/usr/bin/make all-recursive Making all in jkweb make[2]: Nothing to be done for `all'. Making all in beato gcc -DHAVE_CONFIG_H -I. -I.. -I.. -Wall -Wformat -Wimplicit -Wreturn-type -Wuninitialized -fno-strict-aliasing -g -O2 -MT bbiAugment.o -MD -MP -MF .deps/bbiAugment.Tpo -c -o bbiAugment.o bbiAugment.c mv -f .deps/bbiAugment.Tpo .deps/bbiAugment.Po gcc -DHAVE_CONFIG_H -I. -I.. -I.. -Wall -Wformat -Wimplicit -Wreturn-type -Wuninitialized -fno-strict-aliasing -g -O2 -MT metaBigBam.o -MD -MP -MF .deps/metaBigBam.Tpo -c -o metaBigBam.o metaBigBam.c metaBigBam.c:485:12: warning: 'cigar_tab' is deprecated: Use bam_cigar_table[] instead [-Wdeprecated-declarations] if (h->cigar_tab == 0) ^ /usr/local/include/htslib/sam.h:76:29: note: 'cigar_tab' has been explicitly marked deprecated here const int8_t *cigar_tab HTS_DEPRECATED("Use bam_cigar_table[] instead"); ^ /usr/local/include/htslib/hts_defs.h:75:49: note: expanded from macro 'HTS_DEPRECATED'
^
metaBigBam.c:487:5: warning: 'cigar_tab' is deprecated: Use bam_cigar_table[] instead [-Wdeprecated-declarations] h->cigar_tab = (int8_t)calloc(128, sizeof(int8_t)); ^ /usr/local/include/htslib/sam.h:76:29: note: 'cigar_tab' has been explicitly marked deprecated here const int8_t cigar_tab HTS_DEPRECATED("Use bam_cigar_table[] instead"); ^ /usr/local/include/htslib/hts_defs.h:75:49: note: expanded from macro 'HTS_DEPRECATED'
^
metaBigBam.c:489:9: warning: 'cigar_tab' is deprecated: Use bam_cigar_table[] instead [-Wdeprecated-declarations] h->cigar_tab[(int)BAM_CIGAR_STR[i]] = i; ^ /usr/local/include/htslib/sam.h:76:29: note: 'cigar_tab' has been explicitly marked deprecated here const int8_t *cigar_tab HTS_DEPRECATED("Use bam_cigar_table[] instead"); ^ /usr/local/include/htslib/hts_defs.h:75:49: note: expanded from macro 'HTS_DEPRECATED'
^
metaBigBam.c:489:42: error: read-only variable is not assignable h->cigar_tab[(int)BAM_CIGAR_STR[i]] = i;
metaBigBam.c:502:35: warning: 'cigar_tab' is deprecated: Use bam_cigar_table[]
instead [-Wdeprecated-declarations]
op = (uint8_t)*q >= 128? -1 : h->cigar_tab[(int)*q];
^
/usr/local/include/htslib/sam.h:76:29: note: 'cigar_tab' has been explicitly
marked deprecated here
const int8_t *cigar_tab HTS_DEPRECATED("Use bam_cigar_table[] instead");
^
/usr/local/include/htslib/hts_defs.h:75:49: note: expanded from macro
'HTS_DEPRECATED'
#define HTS_DEPRECATED(message) __attribute__ ((__deprecated__ (message)))
^
4 warnings and 1 error generated.
make[2]: *** [metaBigBam.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
@bobia9991 Please only use sudo for the make install step as it's shown by the instructions
@bobia9991 Please only use sudo for the make install step as it's shown by the instructions
Thanks for your reply. i run make, without sudo. i had a Error:
metaBigBam.c:489:42: error: read-only variable is not assignable h->cigar_tab[(int)BAM_CIGAR_STR[i]] = i;
metaBigBam.c:502:35: warning: 'cigar_tab' is deprecated: Use bam_cigar_table[] instead
[-Wdeprecated-declarations]
op = (uint8_t)*q >= 128? -1 : h->cigar_tab[(int)*q];
^
/usr/local/include/htslib/sam.h:76:29: note: 'cigar_tab' has been explicitly marked
deprecated here
const int8_t *cigar_tab HTS_DEPRECATED("Use bam_cigar_table[] instead");
^
/usr/local/include/htslib/hts_defs.h:75:49: note: expanded from macro 'HTS_DEPRECATED'
#define HTS_DEPRECATED(message) __attribute__ ((__deprecated__ (message)))
^
4 warnings and 1 error generated.
make[2]: *** [metaBigBam.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
This error like #7
Hi @andypohl
libbeato can't be compiled with the last changes
The bad commit found using git bisect is: 5be49bece6c04cd40157445a9eedecdf9421ee2d
Thanks a lot in advance