GuoliangLi-HZAU / BatMeth2

BS-seq analysis pipeline
38 stars 12 forks source link

installation error #28

Open Deng-Yuan opened 2 years ago

Deng-Yuan commented 2 years ago

make all-recursive make[1]: Entering directory '/beegfs/home/wangshouchuang_L/workspace/09.tea/01.methylation/soft/BatMeth2' Making all in src/mealign make[2]: Entering directory '/beegfs/home/wangshouchuang_L/workspace/09.tea/01.methylation/soft/BatMeth2/src/mealign' gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS utils.c -o utils.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS kthread.c -o kthread.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS kstring.c -o kstring.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS ksw.c -o ksw.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS bwt.c -o bwt.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS bntseq.c -o bntseq.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS bwa.c -o bwa.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS bwamem.c -o bwamem.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS bwamem_pair.c -o bwamem_pair.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS bwamem_extra.c -o bwamem_extra.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS malloc_wrap.c -o malloc_wrap.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS QSufSort.c -o QSufSort.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS bwt_gen.c -o bwt_gen.o bwt_gen.c: In function 'BWTIncBuildRelativeRank': bwt_gen.c:879:10: warning: variable 'oldInverseSa0RelativeRank' set but not used [-Wunused-but-set-variable] 879 | bgint_t oldInverseSa0RelativeRank = 0; | ^~~~~~~~~ bwt_gen.c: In function 'BWTIncMergeBwt': bwt_gen.c:953:15: warning: variable 'bitsInWordMinusBitPerChar' set but not used [-Wunused-but-set-variable] 953 | unsigned int bitsInWordMinusBitPerChar; | ^~~~~~~~~ gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS rope.c -o rope.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS rle.c -o rle.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS is.c -o is.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS bwtindex.c -o bwtindex.o bwtindex.c: In function 'bwa_idx_build': bwtindex.c:272:44: warning: unknown conversion type character '/' in format [-Wformat=] 272 | if (bwa_verbose >= 3) fprintf(stderr, "%./2f sec\n", (float)(clock() - t) / CLOCKS_PER_SEC); | ^ bwtindex.c:272:41: warning: too many arguments for format [-Wformat-extra-args] 272 | if (bwa_verbose >= 3) fprintf(stderr, "%./2f sec\n", (float)(clock() - t) / CLOCKS_PER_SEC); | ^~~~~ ar -csru libbwa.a utils.o kthread.o kstring.o ksw.o bwt.o bntseq.o bwa.o bwamem.o bwamem_pair.o bwamem_extra.o malloc_wrap.o QSufSort.o bwt_gen.o rope.o rle.o is.o bwtindex.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS bwashm.c -o bwashm.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS bwase.c -o bwase.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS bwaseqio.c -o bwaseqio.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS bwtgap.c -o bwtgap.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS bwtaln.c -o bwtaln.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS bamlite.c -o bamlite.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS bwape.c -o bwape.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS kopen.c -o kopen.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS pemerge.c -o pemerge.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS maxk.c -o maxk.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS bwtsw2_core.c -o bwtsw2_core.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS bwtsw2_main.c -o bwtsw2_main.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS bwtsw2_aux.c -o bwtsw2_aux.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS bwt_lite.c -o bwt_lite.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS bwtsw2_chain.c -o bwtsw2_chain.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS fastmap.c -o fastmap.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS bwtsw2_pair.c -o bwtsw2_pair.o gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS main.c -o main.o gcc -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS bwashm.o bwase.o bwaseqio.o bwtgap.o bwtaln.o bamlite.o bwape.o kopen.o pemerge.o maxk.o bwtsw2_core.o bwtsw2_main.o bwtsw2_aux.o bwt_lite.o bwtsw2_chain.o fastmap.o bwtsw2_pair.o main.o -o bwame -L. -lbwa -lm -lz -lpthread -lrt make[2]: Leaving directory '/beegfs/home/wangshouchuang_L/workspace/09.tea/01.methylation/soft/BatMeth2/src/mealign' Making all in src/samtools-0.1.18 make[2]: Entering directory '/beegfs/home/wangshouchuang_L/workspace/09.tea/01.methylation/soft/BatMeth2/src/samtools-0.1.18' make[3]: Entering directory '/beegfs/home/wangshouchuang_L/workspace/09.tea/01.methylation/soft/BatMeth2/src/samtools-0.1.18' gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bgzf.c -o bgzf.o bgzf.c: In function 'bgzf_close': bgzf.c:630:8: warning: variable 'count' set but not used [-Wunused-but-set-variable] 630 | int count, block_length = deflate_block(fp, 0); | ^~~~~ gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. kstring.c -okstring.o gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bam_aux.c -obam_aux.o gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bam.c -o bam.o In file included from /beegfs/home/wangshouchuang_L/miniconda3/x86_64-conda-linux-gnu/sysroot/usr/include/string.h:637, from bam.h:47, from bam.c:5: bam.c: In function 'bam_header_write': bam.c:116:2: warning: 'builtin_strncpy' output truncated before terminating nul copying 4 bytes from a string ofthe same length [-Wstringop-truncation] 116 | strncpy(buf, "BAM\001", 4); | ^~~ gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bam_import.c-o bam_import.o gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. sam.c -o sam.o gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bam_index.c -o bam_index.o gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bam_pileup.c-o bam_pileup.o bam_pileup.c: In function 'resolve_cigar2': bam_pileup.c:75:9: warning: variable 'is_head' set but not used [-Wunused-but-set-variable] 75 | int k, is_head = 0; | ^~~ gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bam_lpileup.c -o bam_lpileup.o gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bam_md.c -o bam_md.o gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. razf.c -o razf.o In file included from /beegfs/home/wangshouchuang_L/miniconda3/x86_64-conda-linux-gnu/sysroot/usr/include/string.h:637, from razf.c:37: razf.c: In function 'razf_open_w': razf.c:178:2: warning: '__builtin_strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 178 | strncpy((char*)rz->header->extra, "RAZF", 4); | ^~~ gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. faidx.c -o faidx.o faidx.c: In function 'fai_load': faidx.c:277:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 277 | else | ^~~~ faidx.c:280:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 280 | if (fp == 0) { | ^~ gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bedidx.c -o bedidx.o gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. knetfile.c -o knetfile.o gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bam_sort.c -o bam_sort.o In file included from bam_sort.c:9: bam_sort.c:309:26: warning: 'bam1_lt' is static but used in inline function 'ks_insertsort_sort' which is not static 309 | KSORT_INIT(sort, bam1_p, bam1_lt) | ^~~ ksort.h:148:25: note: in definition of macro 'KSORT_INIT' 148 | for (j = i; j > s && __sort_lt(j, (j-1)); --j) { \ | ^~~~~ bam_sort.c:53:27: warning: 'heap_lt' is static but used in inline function 'ks_insertsort_heap' which is not static 53 | KSORT_INIT(heap, heap1_t, heap_lt) | ^~~ ksort.h:148:25: note: in definition of macro 'KSORT_INIT' 148 | for (j = i; j > s && sort_lt(j, (j-1)); --j) { \ | ^~~~~ gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. sam_header.c-o sam_header.o gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bam_reheader.c -o bam_reheader.o bam_reheader.c: In function 'bam_reheader': bam_reheader.c:11:16: warning: variable 'old' set but not used [-Wunused-but-set-variable] 11 | bam_header_t *old; | ^~~ gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. kprobaln.c -o kprobaln.o kprobaln.c: In function 'kpa_glocal': kprobaln.c:78:21: warning: variable 'is_diff' set but not used [-Wunused-but-set-variable] 78 | int bw, bw2, i, k, is_diff = 0, is_backward = 1, Pr; | ^~~ gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bam_cat.c -obam_cat.o /beegfs/home/wangshouchuang_L/miniconda3/bin/x86_64-conda-linux-gnu-ar -csru libbam.a bgzf.o kstring.o bam_aux.o bam.o bam_import.o sam.o bam_index.o bam_pileup.o bam_lpileup.o bam_md.o razf.o faidx.o bedidx.o knetfile.o bam_sort.o sam_header.o bam_reheader.o kprobaln.o bam_cat.o make[3]: Leaving directory '/beegfs/home/wangshouchuang_L/workspace/09.tea/01.methylation/soft/BatMeth2/src/samtools-0.1.18' make[3]: Entering directory '/beegfs/home/wangshouchuang_L/workspace/09.tea/01.methylation/soft/BatMeth2/src/samtools-0.1.18/bcftools' gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I.. -I. bcf.c -o bcf.o gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I.. -I. vcf.c -o vcf.o gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I.. -I. bcfutils.c -o bcfutils.o gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I.. -I. prob1.c-o prob1.o gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I.. -I. em.c -oem.o em.c: In function 'bcf_em1': em.c:174:12: warning: variable 'n2' set but not used [-Wunused-but-set-variable] 174 | int i, n, n2; | ^~ gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I.. -I. kfunc.c-o kfunc.o gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I.. -I. kmin.c -o kmin.o gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I.. -I. index.c-o index.o gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I.. -I. fet.c -o fet.o gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I.. -I. mut.c -o mut.o gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I.. -I. bcf2qcall.c -o bcf2qcall.o /beegfs/home/wangshouchuang_L/miniconda3/bin/x86_64-conda-linux-gnu-ar -csru libbcf.a bcf.o vcf.o bcfutils.o prob1.o em.o kfunc.o kmin.o index.o fet.o mut.o bcf2qcall.o make[3]: Leaving directory '/beegfs/home/wangshouchuang_L/workspace/09.tea/01.methylation/soft/BatMeth2/src/samtools-0.1.18/bcftools' make[3]: Entering directory '/beegfs/home/wangshouchuang_L/workspace/09.tea/01.methylation/soft/BatMeth2/src/samtools-0.1.18/misc' make[3]: Nothing to be done for 'lib'. make[3]: Leaving directory '/beegfs/home/wangshouchuang_L/workspace/09.tea/01.methylation/soft/BatMeth2/src/samtools-0.1.18/misc' make[2]: Leaving directory '/beegfs/home/wangshouchuang_L/workspace/09.tea/01.methylation/soft/BatMeth2/src/samtools-0.1.18' Making all in src make[2]: Entering directory '/beegfs/home/wangshouchuang_L/workspace/09.tea/01.methylation/soft/BatMeth2/src' g++ -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /beegfs/home/wangshouchuang_L/miniconda3/include -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /beegfs/home/wangshouchuang_L/miniconda3/include -o genome2cg genome2cg.cpp -I/beegfs/home/wangshouchuang_L/workspace/09.tea/01.methylation/soft/BatMeth2/src -I./ -lz g++: error: unrecognized command line option ‘-std=c++17’ g++: error: unrecognized command line option ‘-fno-plt’ g++: error: unrecognized command line option ‘-std=c++17’ g++: error: unrecognized command line option ‘-fno-plt’ make[2]: [Makefile:70: MOMO] Error 1 make[2]: Leaving directory '/beegfs/home/wangshouchuang_L/workspace/09.tea/01.methylation/soft/BatMeth2/src' make[1]: [Makefile:255: all-recursive] Error 1 make[1]: Leaving directory '/beegfs/home/wangshouchuang_L/workspace/09.tea/01.methylation/soft/BatMeth2' make: *** [Makefile:193: all] Error 2

Please help me solve this problem, it looks like a g++ problem, but I don't have root permission

ZhouQiangwei commented 2 years ago

Hi, yes, i think it's due to the higher level of gcc could you please quit the conda environment, and comment out the conda path in ~/.bashrc file and then run the command below with the default gcc in your sever make clean && ./configure && make && make install