Hello,
To make the installation of flair easier for my needs, I created a conda package. conda-build takes care of the compilation on the target environment and the package can then be installed. No issue so far.
However, trying to update to the latest version, I get compilation errors:
In file included from usrbinlayer.cc:13:0:
…/data/usrbin.h: At global scope:
…/data/usrbin.h:31:58: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
static constexpr char USRBINErrHeader[] = { “STATISTICS” };
^
…/data/usrbin.h:31:58: error: field initializer is not constant
make[1]: *** [usrbinlayer.o] Error 1
make[1]: Leaving directory `$SRC_DIR/flair-geoviewer-3.2-4.5/viewer’
make: *** [viewer/libviewer.a] Error 2
I use GCC 9 on CC7 using the LCG release on CVMFS ( /cvmfs/sft.cern.ch/lcg/releases/gcc/9.2.0-afc57/x86_64-centos7/bin/g++ ). The documentation does not mention a specific version of GCC so I assume this should work.
I’m a bit puzzled as this seems like a genuine C++ error.
Any pointer would be appreciated.