def METHOD_NAME(entry):
    compiler_name = translated_compiler_name(entry["name"])
    paths = entry["executables"]
    # to instantiate a compiler class we may need a concrete version:
    version = "={}".format(entry["version"])
    arch = entry["arch"]
    operating_system = arch["os"]
    target = arch["target"]
    compiler_cls = spack.compilers.class_for_compiler_name(compiler_name)
    spec = spack.spec.CompilerSpec(compiler_cls.name, version)
    paths = [paths.get(x, None) for x in ("cc", "cxx", "f77", "fc")]
    return compiler_cls(spec, operating_system, target, paths)