PYMC3 model Compilation fails with "-Wno-c++11-narrowing" error message

I am trying to run the pymc3 library after installing and loading it succcessfully. The below code is a stripped down version of the code im trying to run:

import pymc3

mobility_model = pm.Model()
with mobility_model:
alpha_1 = pm.Normal(‘alpha_1’, mu=0, sigma=1)

It fails to run with the following error :

errmsg "Exception: ('Compilation failed (return status=1): cc1plus: error: unrecognized command line option “-Wno-c++11-narrowing”. ', ‘[Elemwise{true_div,no_inplace}(TensorConstant{1.0}, TensorConstant{0.01})]’).

Versions and main components

  • PyMC3 Version: pymc3==3.10.0
  • Python Version: 3.6
  • Operating system: SLES 11 ( gcc version 4.3.4)
  • PyMC3 Install : pip (conda is not available on the server so not an option )

I’ve tried disabling the error with theano.config.gcc.cxxflags = “-Wno-c++11-narrowing” but its not working.

Does this have something to do with the GCC version / OS version.

I have had the same issue, were you able to fix this ??