Minimac3 icon indicating copy to clipboard operation
Minimac3 copied to clipboard

Error when 'make'

Open nienkevanunen opened this issue 2 years ago • 1 comments

Get this with both cloning the repo and downloading the tar from ftp://share.sph.umich.edu/minimac3/Minimac3.v2.0.1.tar.gz.

On Fedora 29.

...
g++  -std=c++0x -O4 -pipe -Wall -Werror  -Wno-strict-overflow -I../include -I.   -D__ZLIB_AVAILABLE__ -D_FILE_OFFSET_BITS=64 -D__STDC_LIMIT_MACROS  -o obj/CharBuffer.o -c CharBuffer.cpp -DVERSION="\"1.0.0\""
g++  -std=c++0x -O4 -pipe -Wall -Werror  -Wno-strict-overflow -I../include -I.   -D__ZLIB_AVAILABLE__ -D_FILE_OFFSET_BITS=64 -D__STDC_LIMIT_MACROS  -o obj/Chromosome.o -c Chromosome.cpp -DVERSION="\"1.0.0\""
Chromosome.cpp: In constructor ‘Chromosome::Chromosome(const string&, unsigned int, bool)’:
Chromosome.cpp:42:15: error: ‘*<unknown>.Chromosome::gs’ is used uninitialized in this function [-Werror=uninitialized]
     if (this->gs) delete gs;
         ~~~~~~^~
cc1plus: all warnings being treated as errors
make[3]: *** [../Makefiles/Makefile.common:81: obj/Chromosome.o] Error 1
make[2]: *** [Makefiles/Makefile.base:15: general] Error 2
make[1]: *** [../Library/libStatGenForMinimac3/Makefiles/Makefile.ext:50: ../Library/libStatGenForMinimac3/libStatGen.a] Error 2
make[1]: Leaving directory '/vol/projects/BIIM_guest/meta_cQTL/Lyme_cQTL/Minimac3/src'
make: *** [Library/libStatGenForMinimac3/Makefiles/Makefile.base:15: src] Error 2

nienkevanunen avatar May 20 '22 09:05 nienkevanunen

I had a similar issue. Building worked with make CFLAGS="-Wno-error=format-truncation". I haven't used Minimac3 yet, so I'm not sure whether my solution really works.

#1 and #8 refer to similar problems. As suggested there, it might also work to replace libStatGenForMinimac3 in Minimac3/Library with the newest version of libStatGen.

steffenom avatar Sep 21 '22 15:09 steffenom