Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile issues in raremetal and raremetal2 #2

Open
wym0072003 opened this issue Dec 13, 2018 · 0 comments
Open

compile issues in raremetal and raremetal2 #2

wym0072003 opened this issue Dec 13, 2018 · 0 comments

Comments

@wym0072003
Copy link

wym0072003 commented Dec 13, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant