cabal install llvm-base fails on arch

cabal install llvm-base fails with the error on arch linux

bits/extra.cpp:390:15:  error: ‘class llvm::SMDiagnostic’ has no member named ‘Print’

on changing the error.Print on line 390 to error.print build succeeds