Repository navigation
Open
Description
Hi,
I'm trying to compile BAT 1.0 on a CentOS machine. Before I config the package, I run:
lsetup "lcgenv -p LCG_93 x86_64-centos7-gcc62-opt ROOT"
Which seems to set up gcc and ROOT successfully. Then, I do ./configure --prefix=$HOME/local and then make. However, I get the error reported below. It seems to be related to math includes shipped with CentOS.
Thank you in advance,
Riccardo
disipio@gra-login1: make
make all-recursive
make[1]: Entering directory '/home/disipio/local/src/BAT-1.0.0-RC1'
Making all in src
make[2]: Entering directory '/home/disipio/local/src/BAT-1.0.0-RC1/src'
make all-am
make[3]: Entering directory '/home/disipio/local/src/BAT-1.0.0-RC1/src'
/bin/sh ../libtool --tag=CXX --mode=compile /cvmfs/sft.cern.ch/lcg/contrib/gcc/6.2.0binutils/x86_64-centos7/bin/g++ -DHAVE_CONFIG_H -I. -I.. -pthread -std=c++1y -m64 -Wall -fPIC -I../BAT -I.includes -I/cvmfs/sft.cern.ch/lcg/releases/LCG_93/ROOT/6.12.06/x86_64-centos7-gcc62-opt/include -O2 -Wno-unknown-pragmas -MT BCDataPoint.lo -MD -MP -MF .deps/BCDataPoint.Tpo -c -o BCDataPoint.lo BCDataPoint.cxx
libtool: compile: /cvmfs/sft.cern.ch/lcg/contrib/gcc/6.2.0binutils/x86_64-centos7/bin/g++ -DHAVE_CONFIG_H -I. -I.. -pthread -std=c++1y -m64 -Wall -fPIC -I../BAT -I.includes -I/cvmfs/sft.cern.ch/lcg/releases/LCG_93/ROOT/6.12.06/x86_64-centos7-gcc62-opt/include -O2 -Wno-unknown-pragmas -MT BCDataPoint.lo -MD -MP -MF .deps/BCDataPoint.Tpo -c BCDataPoint.cxx -fPIC -DPIC -o .libs/BCDataPoint.o
In file included from /usr/include/math.h:70:0,
from /cvmfs/sft.cern.ch/lcg/contrib/gcc/6.2.0binutils/x86_64-centos7/include/c++/6.2.0/cmath:45,
from /cvmfs/sft.cern.ch/lcg/releases/LCG_93/ROOT/6.12.06/x86_64-centos7-gcc62-opt/include/TMathBase.h:32,
from /cvmfs/sft.cern.ch/lcg/releases/LCG_93/ROOT/6.12.06/x86_64-centos7-gcc62-opt/include/TString.h:26,
from BCDataPoint.cxx:13:
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:63:16: error: expected constructor, destructor, or type conversion before '(' token
__MATHCALL_VEC (cos,, (_Mdouble_ __x));
^
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:65:16: error: expected constructor, destructor, or type conversion before '(' token
__MATHCALL_VEC (sin,, (_Mdouble_ __x));
^
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:81:22: error: 'sincos' has not been declared
__MATHDECL_VEC (void,sincos,,
^~~~~~
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:81:29: error: expected identifier before ',' token
__MATHDECL_VEC (void,sincos,,
^
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:82:3: error: expected identifier before '(' token
(_Mdouble_ __x, _Mdouble_ *__sinx, _Mdouble_ *__cosx));
^
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:82:57: error: expected constructor, destructor, or type conversion before ';' token
(_Mdouble_ __x, _Mdouble_ *__sinx, _Mdouble_ *__cosx));
^
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:100:16: error: expected constructor, destructor, or type conversion before '(' token
__MATHCALL_VEC (exp,, (_Mdouble_ __x));
^
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:109:16: error: expected constructor, destructor, or type conversion before '(' token
__MATHCALL_VEC (log,, (_Mdouble_ __x));
^
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:153:16: error: expected constructor, destructor, or type conversion before '(' token
__MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
^
In file included from /usr/include/math.h:89:0,
from /cvmfs/sft.cern.ch/lcg/contrib/gcc/6.2.0binutils/x86_64-centos7/include/c++/6.2.0/cmath:45,
from /cvmfs/sft.cern.ch/lcg/releases/LCG_93/ROOT/6.12.06/x86_64-centos7-gcc62-opt/include/TMathBase.h:32,
from /cvmfs/sft.cern.ch/lcg/releases/LCG_93/ROOT/6.12.06/x86_64-centos7-gcc62-opt/include/TString.h:26,
from BCDataPoint.cxx:13:
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:63:16: error: expected constructor, destructor, or type conversion before '(' token
__MATHCALL_VEC (cos,, (_Mdouble_ __x));
^
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:65:16: error: expected constructor, destructor, or type conversion before '(' token
__MATHCALL_VEC (sin,, (_Mdouble_ __x));
^
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:81:22: error: 'sincos' has not been declared
__MATHDECL_VEC (void,sincos,,
^~~~~~
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:81:29: error: expected identifier before ',' token
__MATHDECL_VEC (void,sincos,,
^
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:82:3: error: expected identifier before '(' token
(_Mdouble_ __x, _Mdouble_ *__sinx, _Mdouble_ *__cosx));
^
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:82:57: error: expected constructor, destructor, or type conversion before ';' token
(_Mdouble_ __x, _Mdouble_ *__sinx, _Mdouble_ *__cosx));
^
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:100:16: error: expected constructor, destructor, or type conversion before '(' token
__MATHCALL_VEC (exp,, (_Mdouble_ __x));
^
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:109:16: error: expected constructor, destructor, or type conversion before '(' token
__MATHCALL_VEC (log,, (_Mdouble_ __x));
^
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:153:16: error: expected constructor, destructor, or type conversion before '(' token
__MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
^
In file included from /usr/include/math.h:133:0,
from /cvmfs/sft.cern.ch/lcg/contrib/gcc/6.2.0binutils/x86_64-centos7/include/c++/6.2.0/cmath:45,
from /cvmfs/sft.cern.ch/lcg/releases/LCG_93/ROOT/6.12.06/x86_64-centos7-gcc62-opt/include/TMathBase.h:32,
from /cvmfs/sft.cern.ch/lcg/releases/LCG_93/ROOT/6.12.06/x86_64-centos7-gcc62-opt/include/TString.h:26,
from BCDataPoint.cxx:13:
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:63:16: error: expected constructor, destructor, or type conversion before '(' token
__MATHCALL_VEC (cos,, (_Mdouble_ __x));
^
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:65:16: error: expected constructor, destructor, or type conversion before '(' token
__MATHCALL_VEC (sin,, (_Mdouble_ __x));
^
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:81:22: error: 'sincos' has not been declared
__MATHDECL_VEC (void,sincos,,
^~~~~~
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:81:29: error: expected identifier before ',' token
__MATHDECL_VEC (void,sincos,,
^
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:82:3: error: expected identifier before '(' token
(_Mdouble_ __x, _Mdouble_ *__sinx, _Mdouble_ *__cosx));
^
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:82:57: error: expected constructor, destructor, or type conversion before ';' token
(_Mdouble_ __x, _Mdouble_ *__sinx, _Mdouble_ *__cosx));
^
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:100:16: error: expected constructor, destructor, or type conversion before '(' token
__MATHCALL_VEC (exp,, (_Mdouble_ __x));
^
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:109:16: error: expected constructor, destructor, or type conversion before '(' token
__MATHCALL_VEC (log,, (_Mdouble_ __x));
^
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/bits/mathcalls.h:153:16: error: expected constructor, destructor, or type conversion before '(' token
__MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
^
In file included from /cvmfs/sft.cern.ch/lcg/releases/LCG_93/ROOT/6.12.06/x86_64-centos7-gcc62-opt/include/TMathBase.h:32:0,
from /cvmfs/sft.cern.ch/lcg/releases/LCG_93/ROOT/6.12.06/x86_64-centos7-gcc62-opt/include/TString.h:26,
from BCDataPoint.cxx:13:
/cvmfs/sft.cern.ch/lcg/contrib/gcc/6.2.0binutils/x86_64-centos7/include/c++/6.2.0/cmath:203:11: error: '::cos' has not been declared
using ::cos;
^~~
/cvmfs/sft.cern.ch/lcg/contrib/gcc/6.2.0binutils/x86_64-centos7/include/c++/6.2.0/cmath:241:11: error: '::exp' has not been declared
using ::exp;
^~~
/cvmfs/sft.cern.ch/lcg/contrib/gcc/6.2.0binutils/x86_64-centos7/include/c++/6.2.0/cmath:357:11: error: '::log' has not been declared
using ::log;
^~~
/cvmfs/sft.cern.ch/lcg/contrib/gcc/6.2.0binutils/x86_64-centos7/include/c++/6.2.0/cmath:407:11: error: '::pow' has not been declared
using ::pow;
^~~
/cvmfs/sft.cern.ch/lcg/contrib/gcc/6.2.0binutils/x86_64-centos7/include/c++/6.2.0/cmath:444:11: error: '::sin' has not been declared
using ::sin;
^~~
make[3]: *** [Makefile:549: BCDataPoint.lo] Error 1
make[3]: Leaving directory '/home/disipio/local/src/BAT-1.0.0-RC1/src'
make[2]: *** [Makefile:425: all] Error 2
make[2]: Leaving directory '/home/disipio/local/src/BAT-1.0.0-RC1/src'
make[1]: *** [Makefile:583: all-recursive] Error 1
make[1]: Leaving directory '/home/disipio/local/src/BAT-1.0.0-RC1'
make: *** [Makefile:427: all] Error 2
Metadata
Metadata
Assignees
Labels
No labels
Activity
fredRos commentedon Sep 13, 2018
It looks like this has little to do with BAT itself. Have you tried building/running the ROOT examples with this setup? Do you get a similar problem there?