read_impute_bgen2.cpp:100: error: no matching function for call to ‘BgenParserGenotypeReadHelper::get_sample_ids(BgenParserGenotypeReadHelper::genotyp

23 views
Skip to first unread message

Shicheng Guo

unread,
Jul 18, 2018, 1:57:50 AM7/18/18
to Mega2
make[2]: Entering directory `/mnt/bigdata/Genetic/Projects/shg047/tools/mega2_v5.0.0_src/srcdir/lib/bcftools-1.6'
make[2]: Nothing to be done for `lib-static'.
make[2]: Leaving directory `/mnt/bigdata/Genetic/Projects/shg047/tools/mega2_v5.0.0_src/srcdir/lib/bcftools-1.6'
make[1]: Leaving directory `/mnt/bigdata/Genetic/Projects/shg047/tools/mega2_v5.0.0_src/srcdir/lib/bcftools-1.6'
rm -f read_impute_bgen2.o
g++ -Wall -O3   -c -D_mega2_ -I. -Ibgen/genfile/include -Ibgen/zstd-1.1.0/lib -std=c++0x read_impute_bgen2.cpp
read_impute_bgen2.cpp: In member function ‘virtual void BgenParserGenotypeReadHelper::genotypes_init()’:
read_impute_bgen2.cpp:100: error: no matching function for call to ‘BgenParserGenotypeReadHelper::get_sample_ids(BgenParserGenotypeReadHelper::genotypes_init()::noop&)’
make: *** [read_impute_bgen2.o] Error 1
make program exit value 2

ERROR: Compilation of mega2 failed.  Get help
[MFLDCLIN\guosa@birc7-lc mega2_v5.0.0_src]$ gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23)


Not working

Shicheng Guo

unread,
Jul 18, 2018, 12:15:31 PM7/18/18
to Mega2

Solved!!


scl enable devtoolset-2 bash


gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15)


After update GCC to 4.8.2 for RedHat, Installing is smoothly. 

Shicheng

Dan Weeks

unread,
Aug 22, 2018, 4:59:31 PM8/22/18
to Mega2
Thank you for sharing your solution.

Dan
Reply all
Reply to author
Forward
0 new messages