Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cabal install llvm-base fails on arch #37

Merged
merged 1 commit into from
Apr 26, 2013
Merged

Conversation

bharath1097
Copy link
Contributor

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

@Ralith
Copy link
Collaborator

Ralith commented Aug 27, 2012

This fix was necessary on my system as well. Arch is on LLVM 3.1; perhaps that's the cause?

@markwright
Copy link
Contributor

The error was occurring with sys-devel/llvm-3.1-r2 and dev-haskell/llvm-base-3.0.1.0 on Gentoo. Since I don't know which llvm version have print or Print I grep'd in the header file to check

    grep -q "void print" /usr/include/llvm/Support/SourceMgr.h
    if [[ $? == 0 ]]; then
        sed -e 's/error.Print/error.print/' \
            -i "${S}/cbits/extra.cpp" || die "Could not change Print to print"
    fi

@tcsavage
Copy link

tcsavage commented Dec 7, 2012

I'm getting this on OS X 10.6.8. LLVM 3.1. The 3.0 docs say that version also uses print rather than Print though.

Weirdly, even after downloading the repo and changing line 390 accordingly, it still wants to use the old one. Like it's cached the old version one somewhere.

@squarfed
Copy link

@tcsavage, do this to install llvm-base:
cd base
autoconf
cabal install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants