micromegas 6.0.3 installation problem
I am trying to install micromegas 6.0.3. When I am doing make, I am getting the following error,
polint.c:98:1: warning: non-void function does not return a value [-Wreturn-type]
}
^
1 warning generated.
ar rv /Users/
a - polint.o
clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../../include -I../chep_
ar rv /Users/
a - vegas.o
ranlib -c /Users/
/Applications/
clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../SLHAplus/
dynamic_
for(
dynamic_
dynamic_
if(i==j){ nnew++; sprintf(
/Applications/
__builtin_
dynamic_
strcpy(
/Applications/
dynamic_
{ sprintf(
/Applications/
__builtin_
4 warnings generated.
ar rv ../../lib/
ar: creating archive ../../lib/
a - dynamic_cs.o
clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../SLHAplus/
kin4.c:84:34: error: incompatible function pointer types passing 'double (double, sVarW *)' to parameter of type 'double (*)(double, void *)' [-Wincompatible
if(n_Gauss) return gauss_arg(
./../ntools/
extern double gauss_arg( double (*func)
kin4.c:85:35: error: incompatible function pointer types passing 'double (double, sVarW *)' to parameter of type 'double (*)(double, void *)' [-Wincompatible
else return simpson_
./../ntools/
extern double simpson_arg( double (*func)
kin4.c:115:35: error: incompatible function pointer types passing 'double (double, sVarW *)' to parameter of type 'double (*)(double, void *)' [-Wincompatible
if(n_Gauss) return gauss_arg( intDecay2_
./../ntools/
extern double gauss_arg( double (*func)
kin4.c:116:36: error: incompatible function pointer types passing 'double (double, sVarW *)' to parameter of type 'double (*)(double, void *)' [-Wincompatible
else return simpson_arg( intDecay2_
./../ntools/
extern double simpson_arg( double (*func)
kin4.c:125:35: error: incompatible function pointer types passing 'double (double, sVarW *)' to parameter of type 'double (*)(double, void *)' [-Wincompatible
if(n_Gauss) return gauss_arg( intDecay2_
./../ntools/
extern double gauss_arg( double (*func)
kin4.c:126:35: error: incompatible function pointer types passing 'double (double, sVarW *)' to parameter of type 'double (*)(double, void *)' [-Wincompatible
else return simpson_
./../ntools/
extern double simpson_arg( double (*func)
kin4.c:156:24: error: incompatible function pointer types passing 'double (double, sVarW *)' to parameter of type 'double (*)(double, void *)' [-Wincompatible
double res=simpson_
./../ntools/
extern double simpson_arg( double (*func)
kin4.c:693:6: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value]
if(fabs(pdg2)<=2 && m2<0.14) m2=0.14;
^
kin4.c:693:6: note: use function 'abs' instead
if(fabs(pdg2)<=2 && m2<0.14) m2=0.14;
^~~~
abs
kin4.c:694:6: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value]
if(fabs(pdg3)<=2 && m3<0.14) m3=0.14;
^
kin4.c:694:6: note: use function 'abs' instead
if(fabs(pdg3)<=2 && m3<0.14) m3=0.14;
^~~~
abs
kin4.c:695:6: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value]
if(fabs(pdg3)==3 && m2<0.5) m2=0.5;
^
kin4.c:695:6: note: use function 'abs' instead
if(fabs(pdg3)==3 && m2<0.5) m2=0.5;
^~~~
abs
kin4.c:696:6: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value]
if(fabs(pdg3)==32 && m3<0.5) m3=0.5;
^
kin4.c:696:6: note: use function 'abs' instead
if(fabs(pdg3)==32 && m3<0.5) m3=0.5;
^~~~
abs
kin4.c:756:53: warning: add explicit braces to avoid dangling else [-Wdangling-else]
for(j=1;j<3;j++) if(pdg[j]==23 && VZdecay) s-=6; else if(abs(pdg[j])==24 && VWdecay) s-=5;
5 warnings and 7 errors generated.
make[3]: *** [kin4.o] Error 1
rm dynamic_cs.o
make[2]: *** [all] Error 2
make[1]: *** [COMPILE] Error 2
make: *** [all] Error 2
System: MBP M3.
However, I faced no issues with my Ubuntu system.
Any help will be really appreciated.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- CalcHEP Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Alexander Pukhov
- Solved:
- Last query:
- Last reply: