GithubHelp home page GithubHelp logo

Comments (7)

chetant avatar chetant commented on July 20, 2024

Fixed in trunk, will release to Hackage soon

from libclang.

alrunner4 avatar alrunner4 commented on July 20, 2024

This looks like it's still broken on Hackage (LibClang-0.1.0). Building from the source at master, I get different, scarier errors. Are there any assumptions about the version(s) of llvm/clang/ghc needed to make this work? I'm building with ghc-7.4.2 and llvm-3.2.

from libclang.

chetant avatar chetant commented on July 20, 2024

Could you post the errors here? It would help.

from libclang.

alrunner4 avatar alrunner4 commented on July 20, 2024

At the current master (61f4a12) I get these warnings and errors from cabal build:

In file included from ./src/Clang/FFI_stub_ffi.h:7,

                 from src/Clang/FFI_stub_ffi.c:5:0: 

/Library/Frameworks/GHC.framework/Versions/7.4.2-x86_64/usr/lib/ghc-7.4.2/include/HsFFI.h:29:1:
     warning: "__STDC_LIMIT_MACROS" redefined
<command-line>: warning: this is the location of the previous definition
src/Clang/FFI_stub_ffi.c: In function ‘prim_getCString’:

src/Clang/FFI_stub_ffi.c:34:0:
     warning: assignment discards qualifiers from pointer target type
src/Clang/FFI_stub_ffi.c: In function ‘prim_getDiagnosticCategoryName’:

src/Clang/FFI_stub_ffi.c:315:0:
     warning: ‘clang_getDiagnosticCategoryName’ is deprecated (declared at /usr/local/Cellar/llvm/3.2/include/clang-c/Index.h:862)
src/Clang/FFI_stub_ffi.c: In function ‘prim_translationUnit_CXXPrecompiledPreamble’:

src/Clang/FFI_stub_ffi.c:412:0:
     error: ‘CXTranslationUnit_CXXPrecompiledPreamble’ undeclared (first use in this function)

src/Clang/FFI_stub_ffi.c:412:0:
     error: (Each undeclared identifier is reported only once

src/Clang/FFI_stub_ffi.c:412:0:
     error: for each function it appears in.)
src/Clang/FFI_stub_ffi.c: In function ‘prim_translationUnit_NestedMacroExpansions’:

src/Clang/FFI_stub_ffi.c:424:0:
     error: ‘CXTranslationUnit_NestedMacroExpansions’ undeclared (first use in this function)
src/Clang/FFI_stub_ffi.c: In function ‘prim_translationUnit_NestedMacroInstantiations’:

src/Clang/FFI_stub_ffi.c:430:0:
     error: ‘CXTranslationUnit_NestedMacroInstantiations’ undeclared (first use in this function)

I guess I should also mention that I'm on OSX 10.7.5, in case that's a sticking point.

from libclang.

chetant avatar chetant commented on July 20, 2024

It looks like they removed CXTranslationUnit_NestedMacroExpansions, CXTranslationUnit_NestedMacroInstantiations and CXTranslationUnit_CXXPrecompiledPreamble flags from llvm 3.2. Either that, or you have a bad setup. I've tested LibClang uptil llvm 3.0.

It'll take atleast till the weekend for me to update my setup and test this, but you could try just deleting the entries causing errors from this line here and trying to recompile.

from libclang.

chetant avatar chetant commented on July 20, 2024

I finally got some time to update to llvm 3.2 and fixed the errors and cleaned up some tests.
I've however put this in the llvm3.2 branch, as I'm getting some string conversions being botched up and I'm currently unable to figure out why they're happening. The issue is in Test_ChildVisitor, some of the cursor names have the first four chars zeroed out.

from libclang.

chetant avatar chetant commented on July 20, 2024

Closing this issue, will continue this in a new issue.

from libclang.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.