You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got some issues in make process for raremetal and raremetal2. My 'gcc -v' is : gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04) .
1, in raremetal, after make clean &make, it gives:
PDF.cpp: In member function ‘void PDF::OpenFile(const char*)’:
PDF.cpp:41:80: error: narrowing conversion of ‘199’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]
char signature[] = {'%', '%', 'G' + 128, 'R' + 128, 'A' + 128, '\n', '\n', 0};
^
PDF.cpp:41:80: error: narrowing conversion of ‘210’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]
PDF.cpp:41:80: error: narrowing conversion of ‘193’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]
PDF.cpp:44:27: warning: format not a string literal and no format arguments [-Wformat-security]
fprintf(file, signature);
^
../../libStatGen/Makefiles/Makefile.common:81: recipe for target 'obj/PDF.o' failed
make[2]: *** [obj/PDF.o] Error 1
make[2]: Leaving directory '/home/yiming/RareMetal/Raremetal/libRareMetal/pdf'
../libStatGen/Makefiles/Makefile.base:15: recipe for target 'pdf' failed
make[1]: *** [pdf] Error 2
make[1]: Leaving directory '/home/yiming/RareMetal/Raremetal/libRareMetal'
libStatGen/Makefiles/Makefile.base:15: recipe for target 'libRareMetal' failed
make: *** [libRareMetal] Error 2
2, while in raremetal2. After make clean $ make, it gives:
Parameters.cpp: In member function ‘virtual void LongParameters::Status()’:
Parameters.cpp:560:25: error: use of an operand of type ‘bool’ in ‘operator++’ is deprecated [-Werror=deprecated]
legacy_count++;
^~
cc1plus: all warnings being treated as errors
../Makefiles/Makefile.common:81: recipe for target 'obj/Parameters.o' failed
make[4]: *** [obj/Parameters.o] Error 1
Makefiles/Makefile.base:15: recipe for target 'general' failed
make[3]: *** [general] Error 2
../../libStatGen/Makefiles/Makefile.ext:50: recipe for target '../../libStatGen/libStatGen.a' failed
make[2]: *** [../../libStatGen/libStatGen.a] Error 2
make[2]: Leaving directory '/home/yiming/RareMetal/Raremetal2/libRareMetal/mvtnorm'
../libStatGen/Makefiles/Makefile.base:15: recipe for target 'mvtnorm' failed
make[1]: *** [mvtnorm] Error 2
make[1]: Leaving directory '/home/yiming/RareMetal/Raremetal2/libRareMetal'
libStatGen/Makefiles/Makefile.base:15: recipe for target 'libRareMetal' failed
make: *** [libRareMetal] Error 2
I have tried change GCC to gcc-4.8. It gave some other errors. Actually, I have no ideas where to start to check. Zlib, gfortran, r-mathlib are installed. Would you please give me some suggestions to install raremetal or raremetal2? Thanks.
best,
Yiming
The text was updated successfully, but these errors were encountered:
Hi,
I got some issues in make process for raremetal and raremetal2. My 'gcc -v' is : gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04) .
1, in raremetal, after make clean &make, it gives:
PDF.cpp: In member function ‘void PDF::OpenFile(const char*)’:
PDF.cpp:41:80: error: narrowing conversion of ‘199’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]
char signature[] = {'%', '%', 'G' + 128, 'R' + 128, 'A' + 128, '\n', '\n', 0};
^
PDF.cpp:41:80: error: narrowing conversion of ‘210’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]
PDF.cpp:41:80: error: narrowing conversion of ‘193’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]
PDF.cpp:44:27: warning: format not a string literal and no format arguments [-Wformat-security]
fprintf(file, signature);
^
../../libStatGen/Makefiles/Makefile.common:81: recipe for target 'obj/PDF.o' failed
make[2]: *** [obj/PDF.o] Error 1
make[2]: Leaving directory '/home/yiming/RareMetal/Raremetal/libRareMetal/pdf'
../libStatGen/Makefiles/Makefile.base:15: recipe for target 'pdf' failed
make[1]: *** [pdf] Error 2
make[1]: Leaving directory '/home/yiming/RareMetal/Raremetal/libRareMetal'
libStatGen/Makefiles/Makefile.base:15: recipe for target 'libRareMetal' failed
make: *** [libRareMetal] Error 2
2, while in raremetal2. After make clean $ make, it gives:
Parameters.cpp: In member function ‘virtual void LongParameters::Status()’:
Parameters.cpp:560:25: error: use of an operand of type ‘bool’ in ‘operator++’ is deprecated [-Werror=deprecated]
legacy_count++;
^~
cc1plus: all warnings being treated as errors
../Makefiles/Makefile.common:81: recipe for target 'obj/Parameters.o' failed
make[4]: *** [obj/Parameters.o] Error 1
Makefiles/Makefile.base:15: recipe for target 'general' failed
make[3]: *** [general] Error 2
../../libStatGen/Makefiles/Makefile.ext:50: recipe for target '../../libStatGen/libStatGen.a' failed
make[2]: *** [../../libStatGen/libStatGen.a] Error 2
make[2]: Leaving directory '/home/yiming/RareMetal/Raremetal2/libRareMetal/mvtnorm'
../libStatGen/Makefiles/Makefile.base:15: recipe for target 'mvtnorm' failed
make[1]: *** [mvtnorm] Error 2
make[1]: Leaving directory '/home/yiming/RareMetal/Raremetal2/libRareMetal'
libStatGen/Makefiles/Makefile.base:15: recipe for target 'libRareMetal' failed
make: *** [libRareMetal] Error 2
I have tried change GCC to gcc-4.8. It gave some other errors. Actually, I have no ideas where to start to check. Zlib, gfortran, r-mathlib are installed. Would you please give me some suggestions to install raremetal or raremetal2? Thanks.
best,
Yiming
The text was updated successfully, but these errors were encountered: