【问题标题】:bcftools make fails with numerous vcfmerge errors in win10bcftools make 在 win10 中失败并出现大量 vcfmerge 错误
【发布时间】:2020-12-19 17:16:47
【问题描述】:

我想编译最新的 github bcftools 但我在下面得到这些错误。

[安装说明]https://raw.githubusercontent.com/samtools/bcftools/develop/INSTALL提及:

git clone git://github.com/samtools/htslib.git
git clone git://github.com/samtools/bcftools.git
cd bcftools
make

另外,我做了以下事情:

  1. BCFTOOLS_PLUGINS=/path/to/bcftools/plugins(添加到 Makefile) 以及这些第 3 方库(已下载并添加到路径)
  2. zlib、gsl 和 libperl

make 命令运行时的错误

C:\Users\Admin\bcftools>make
echo '#define BCFTOOLS_VERSION "1.10.2-122-gf09bac3-dirty"' > version.h
gcc -g -Wall -O2 -I. -I../htslib   -c -o main.o main.c
gcc -g -Wall -O2 -I. -I../htslib   -c -o vcfindex.o vcfindex.c
gcc -g -Wall -O2 -I. -I../htslib   -c -o tabix.o tabix.c
gcc -g -Wall -O2 -I. -I../htslib   -c -o vcfstats.o vcfstats.c
gcc -g -Wall -O2 -I. -I../htslib   -c -o vcfisec.o vcfisec.c
gcc -g -Wall -O2 -I. -I../htslib   -c -o vcfmerge.o vcfmerge.c
vcfmerge.c: In function 'merge_GT':
vcfmerge.c:1565:9: warning: unknown conversion type character 'z' in format [-Wformat=]
         if ( !warned ) fprintf(stderr,"Warning: Too many genotypes at %s:%"PRId64", requires %zu 
bytes, skipping.\n", bcf_seqname(out_hdr,out),(int64_t) out->pos+1,msize);
         ^
vcfmerge.c:1565:9: warning: too many arguments for format [-Wformat-extra-args]
vcfmerge.c:1572:9: warning: unknown conversion type character 'z' in format [-Wformat=]
         if ( !ma->tmp_arr ) error("Could not allocate %zu bytes\n",msize);
         ^
vcfmerge.c:1572:9: warning: too many arguments for format [-Wformat-extra-args]
vcfmerge.c: In function 'merge_format_string':
vcfmerge.c:1743:9: warning: unknown conversion type character 'z' in format [-Wformat=]
         if ( !warned ) fprintf(stderr,"Warning: The row size is too big for FORMAT/%s at 
%s:%"PRId64", requires %zu bytes, skipping.\n", key,bcf_seqname(out_hdr,out),(int64_t) out- 
>pos+1,msize);
         ^
vcfmerge.c:1743:9: warning: too many arguments for format [-Wformat-extra-args]
vcfmerge.c:1750:9: warning: unknown conversion type character 'z' in format [-Wformat=]
         if ( !ma->tmp_arr ) error("Could not allocate %zu bytes\n",msize);
         ^
vcfmerge.c:1750:9: warning: too many arguments for format [-Wformat-extra-args]
vcfmerge.c: In function 'merge_localized_numberG_format_field':
vcfmerge.c:1777:9: warning: unknown conversion type character 'z' in format [-Wformat=]
         if ( !warned ) fprintf(stderr,"Warning: The row size is too big for FORMAT/%s at 
%s:%"PRId64", requires %zu bytes, skipping.\n", key,bcf_seqname(args->out_hdr,out),(int64_t) out- 
>pos+1,msize);
         ^
vcfmerge.c:1777:9: warning: too many arguments for format [-Wformat-extra-args]
vcfmerge.c:1784:9: warning: unknown conversion type character 'z' in format [-Wformat=]
         if ( !ma->tmp_arr ) error("Failed to allocate %zu bytes at %s:%"PRId64" for FORMAT/%s\n", 
msize,bcf_seqname(args->out_hdr,out),(int64_t) out->pos+1,key);
         ^
vcfmerge.c:1784:9: warning: format '%s' expects argument of type 'char *', but argument 2 has type 
'size_t' [-Wformat=]
vcfmerge.c:1784:9: warning: format '%I64d' expects argument of type 'long long int', but argument 3 
has type 'const char *' [-Wformat=]
vcfmerge.c:1784:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 
'hts_pos_t' [-Wformat=]
vcfmerge.c:1784:9: warning: too many arguments for format [-Wformat-extra-args]
vcfmerge.c: In function 'merge_localized_numberAR_format_field':
vcfmerge.c:1878:9: warning: unknown conversion type character 'z' in format [-Wformat=]
         if ( !warned ) fprintf(stderr,"Warning: The row size is too big for FORMAT/%s at 
%s:%"PRId64", requires %zu bytes, skipping.\n", key,bcf_seqname(args->out_hdr,out),(int64_t) out- 
>pos+1,msize);
         ^
vcfmerge.c:1878:9: warning: too many arguments for format [-Wformat-extra-args]
vcfmerge.c:1885:9: warning: unknown conversion type character 'z' in format [-Wformat=]
         if ( !ma->tmp_arr ) error("Failed to allocate %zu bytes at %s:%"PRId64" for FORMAT/%s\n", 
msize,bcf_seqname(args->out_hdr,out),(int64_t) out->pos+1,key);
         ^
vcfmerge.c:1885:9: warning: format '%s' expects argument of type 'char *', but argument 2 has type 
'size_t' [-Wformat=]
vcfmerge.c:1885:9: warning: format '%I64d' expects argument of type 'long long int', but argument 3 
has type 'const char *' [-Wformat=]
vcfmerge.c:1885:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 
'hts_pos_t' [-Wformat=]
vcfmerge.c:1885:9: warning: too many arguments for format [-Wformat-extra-args]
vcfmerge.c: In function 'merge_format_field':
vcfmerge.c:2015:9: warning: unknown conversion type character 'z' in format [-Wformat=]
         if ( !warned ) fprintf(stderr,"Warning: The row size is too big for FORMAT/%s at 
%s:%"PRId64", requires %zu bytes, skipping.\n", key,bcf_seqname(out_hdr,out),(int64_t) out- 
>pos+1,msize);
         ^
vcfmerge.c:2015:9: warning: too many arguments for format [-Wformat-extra-args]
vcfmerge.c:2022:9: warning: unknown conversion type character 'z' in format [-Wformat=]
         if ( !ma->tmp_arr ) error("Failed to allocate %zu bytes at %s:%"PRId64" for FORMAT/%s\n", 
msize,bcf_seqname(args->out_hdr,out),(int64_t) out->pos+1,key);
         ^
vcfmerge.c:2022:9: warning: format '%s' expects argument of type 'char *', but argument 2 has type 
'size_t' [-Wformat=]
vcfmerge.c:2022:9: warning: format '%I64d' expects argument of type 'long long int', but argument 3 
has type 'const char *' [-Wformat=]
vcfmerge.c:2022:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 
'hts_pos_t' [-Wformat=]
vcfmerge.c:2022:9: warning: too many arguments for format [-Wformat-extra-args]
gcc -g -Wall -O2 -I. -I../htslib   -c -o vcfquery.o vcfquery.c
gcc -g -Wall -O2 -I. -I../htslib   -c -o vcffilter.o vcffilter.c
gcc -g -Wall -O2 -I. -I../htslib    -c -o filter.o filter.c
filter.c:36:19: fatal error: regex.h: No such file or directory
 #include <regex.h>
                   ^
compilation terminated.
make: *** [Makefile:259: filter.o] Error 1

【问题讨论】:

    标签: compiler-errors vcftools bcftools


    【解决方案1】:

    由 Grant Skinner 安装 RegExr

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-06-23
      • 1970-01-01
      • 2018-02-24
      • 1970-01-01
      • 2012-09-24
      • 1970-01-01
      • 2013-07-18
      • 2021-10-12
      相关资源
      最近更新 更多