> I have been flooding IRC about this, but just wanted to mention for
> anyone lurking here that I have DXR working on FreeBSD, and am working
> on indexing and analyzing the full FreeBSD source tree (kernel +
> userland.)

I am watching your exploits with rapt interest. :-) And thanks for all the 
great front-end patches you've been flinging over the wall!

> FreeBSD 10.0 uses Clang 3.3 by default, so I haven't really had any
> problems on that front (well except that I need to compile the sqlite
> trilite extension with clang which does not like a debug macro, which
> is easy to hack around) - I hear trilite going away soon anyway.

Yep. Every day we chip away at one more blocker on the road to elasticsearch. 
We're almost there: https://bugzilla.mozilla.org/show_bug.cgi?id=1030307. It'll 
give us easier contribution (as you can see), line-based searching (a la grep) 
rather than our current weird behavior, a path to easy tree independence and 
parallel indexing, and it'll make a lot of requested fruit hang lower.

> I am tracking everything I had to change and current status in:
> https://gist.github.com/rhelmer/60bc81c6cee9c507008a

Looking forward to the patches!

> The only problems specific to DXR so far have been:
> 
> * "_csv.Error: field larger than field limit (131072)" after build. I
> am testing to see if "csv.field_size_limit(sys.maxsize)" in
> clang/indexer.py helps

Wow, I wonder what was in that field.

> * compiling LLVM doesn't seem to work, I am just skipping it for now
> but as it's part of the BSD base system I'd like to get it indexed and
> analyzed along with everything else. It fails on
> llvm/tools/clang/lib/Lex/ModuleMap.cpp with "clang: error: unable to
> execute command: Illegal instruction (core dumped)" - I saved the code
> and clang command-line used, and the same clang invocation works fine
> if I remove the DXR-added flags.

Sounds like you found a legitimate bug in our clang plugin. It must be a real 
corner case if you got through all that FreeBSD code without hitting it. gdb 
time, perhaps.

> Overall I am really happy with how easy it's been to get DXR up and
> running,

That's the first time we've ever been accused of that. ;-) And you're not even 
using the Vagrant box!

Cheers,
Erik
_______________________________________________
dev-static-analysis mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-static-analysis

Reply via email to