jts / sga

de novo sequence assembler using string graphs
http://genome.cshlp.org/content/22/3/549
237 stars 82 forks source link

Compile error #61

Closed borauyar closed 10 years ago

borauyar commented 10 years ago

Hey Jared, I am trying to install SGA. I installed sparsehash and bamtools.

I get the following error when I try to 'make'.

if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../Util -I../Bigraph -I../SuffixTools -I../StringGraph -I../Concurrency -I../Algorithm -I../SQG -I../Scaffold -I../GraphDiff -I../Thirdparty -fopenmp -I/g/gibson/uyar//include -I/g/gibson/uyar/genome_assembly/tools/other/bamtools-master//include -I/g/gibson/uyar/genome_assembly/tools/other/bamtools-master//include/bamtools -Wall -Wextra -Werror -Wno-unknown-pragmas -O3 -MT sga-preqc.o -MD -MP -MF ".deps/sga-preqc.Tpo" -c -o sga-preqc.o test -f 'preqc.cpp' || echo './'preqc.cpp; \ then mv -f ".deps/sga-preqc.Tpo" ".deps/sga-preqc.Po"; else rm -f ".deps/sga-preqc.Tpo"; exit 1; fi cc1plus: warnings being treated as errors preqc.cpp: In function ‘void learn_mixture_parameters(const KmerDistribution&, ModelParameters&)’: preqc.cpp:428: warning: converting to ‘size_t’ from ‘double’ preqc.cpp:455: warning: converting to ‘int’ from ‘double’ preqc.cpp:541: warning: passing ‘double’ for argument 1 to ‘int abs(int)’ make[2]: * [sga-preqc.o] Error 1 make[2]: Leaving directory `/g/gibson/uyar/genome_assembly/tools/Assemblers/sga-master/src/SGA' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory`/g/gibson/uyar/genome_assembly/tools/Assemblers/sga-master/src' make: *\ [all] Error 2

Do you know how to fix this?

Cheers, Bora

jts commented 10 years ago

Hi Bora,

What version of gcc are you using?

Jared

On Tue, Dec 24, 2013 at 6:48 AM, borauyar notifications@github.com wrote:

Hey Jared, I am trying to install SGA. I installed sparsehash and bamtools.

I get the following error when I try to 'make'.

if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../Util -I../Bigraph -I../SuffixTools -I../StringGraph -I../Concurrency -I../Algorithm -I../SQG -I../Scaffold -I../GraphDiff -I../Thirdparty -fopenmp -I/g/gibson/uyar//include -I/g/gibson/uyar/genome_assembly/tools/other/bamtools-master//include -I/g/gibson/uyar/genome_assembly/tools/other/bamtools-master//include/bamtools -Wall -Wextra -Werror -Wno-unknown-pragmas -O3 -MT sga-preqc.o -MD -MP -MF ".deps/sga-preqc.Tpo" -c -o sga-preqc.o test -f 'preqc.cpp' || echo './'preqc.cpp; \ then mv -f ".deps/sga-preqc.Tpo" ".deps/sga-preqc.Po"; else rm -f ".deps/sga-preqc.Tpo"; exit 1; fi cc1plus: warnings being treated as errors preqc.cpp: In function ‘void learn_mixture_parameters(const KmerDistribution&, ModelParameters&)’: preqc.cpp:428: warning: converting to ‘size_t’ from ‘double’ preqc.cpp:455: warning: converting to ‘int’ from ‘double’ preqc.cpp:541: warning: passing ‘double’ for argument 1 to ‘int abs(int)’ make[2]: * [sga-preqc.o] Error 1 make[2]: Leaving directory /g/gibson/uyar/genome_assembly/tools/Assemblers/sga-master/src/SGA' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory /g/gibson/uyar/genome_assembly/tools/Assemblers/sga-master/src' make: *\ [all] Error 2

Do you know how to fix this?

Cheers, Bora

— Reply to this email directly or view it on GitHubhttps://github.com/jts/sga/issues/61 .

borauyar commented 10 years ago

Hi Jared, This is the version of gcc I use: gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)

Bora

jts commented 10 years ago

This should be fixed in 624997165, which disables the fail-on-warning compilation flag

borauyar commented 10 years ago

Thank you Jared! It worked.