Comments (7)
Fixed in trunk, will release to Hackage soon
from libclang.
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.
Could you post the errors here? It would help.
from libclang.
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.
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.
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.
Closing this issue, will continue this in a new issue.
from libclang.
Related Issues (20)
- LibClang won't build on the Haskell Platform 2013.2 because greencard is broken HOT 2
- libpthread symbol error? HOT 3
- Provide access to libclang headers needed for accurate parsing HOT 3
- Libclang on hackage doesn't compile (github master does compile) HOT 7
- Pull boundary values out of enumerations
- Make LibClang version track LLVM version HOT 2
- Make `newbuild` branch link correctly on OS X HOT 21
- Use --with-clang-resource-dir configure option HOT 1
- hackage greencard dependency won't build on 7.8 HOT 2
- Cabal 1.20 breaks Setup.hs HOT 13
- Crash when trying to enumerate Top Level Headers HOT 3
- Clang.File.getIncludedFile causes segfault on any code HOT 1
- Add an option to use out-of-tree llvm and clang HOT 4
- De-couple from Greencard HOT 3
- New release? HOT 2
- 3.4.0 Haddock Docs Have Not Been Built HOT 1
- Installing via Stack fails due to missing dist/build/Clang/Internal/FFI.chs.c HOT 1
- Doesn't build under Ubuntu HOT 3
- Doesn't build with ghc 8.0.1 HOT 2
- Static builds HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libclang.