Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

vagrant up help

16 views
Skip to first unread message

Andrew Artajos

unread,
Jun 9, 2015, 5:48:59 AM6/9/15
to dev-stati...@lists.mozilla.org
Hi dev-static-analysis,

I'm following DXR docs and I got stuck in the part where
$ vagrant up

it displays an error: http://mibpaste.com/ni0VCs

I hope you could help.

--

Erik Rose

unread,
Jun 9, 2015, 11:54:24 AM6/9/15
to Andrew Artajos, dev-stati...@lists.mozilla.org
Hi, Andrew. I haven't seen this one before. Do you have a reasonably powerful machine? Have you tried "vagrant destroy" followed by another "vagrant up", in case something went awry during initialization?

If neither of those helps, you could try adding the suggested config directive to Vagrantfile: put "config.vm.boot_timeout = 600" after "config.vm.box = "ubuntu/trusty64", and see if more time does the trick.

Btw, you very probably want to be on the "es" branch if you're not already; that's "DXR 2.0", where all the development is these days. It'll shortly be merging into master.

Cheers,
Erik
DXR Lead
> _______________________________________________
> dev-static-analysis mailing list
> dev-stati...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-static-analysis

Peter Elmers

unread,
Jun 9, 2015, 12:19:54 PM6/9/15
to Andrew Artajos, dev-stati...@lists.mozilla.org
One problem I've run into on Linux is that by default not all of the
required Virtualbox modules are probed. I'm not on a Linux machine at the
moment, but I recall it is necessary to perform `modprobe vboxnetadp` and
`modprobe vboxnetflp` before calling vagrant up.

Andrew Artajos

unread,
Jun 11, 2015, 11:07:23 PM6/11/15
to dev-stati...@lists.mozilla.org
Thanks for your replies.

I got the virtual machine working. I used windows instead of running it
inside my Ubuntu VMware box. Now, I encounter missing file as I

missing AST.H??

Should I install clang in the VM?

cd ~/dxr
make

vagrant@vagrant-ubuntu-trusty-64:~/dxr$ make
make -C dxr/plugins/clang build
make[1]: llvm-config: Command not found
make[1]: Entering directory `/home/vagrant/dxr/dxr/plugins/clang'
make[1]: llvm-config: Command not found
g++ -Wall -Wno-strict-aliasing -c dxr-index.cpp -o dxr-index.o
dxr-index.cpp:1:27: fatal error: clang/AST/AST.h: No such file or directory
#include "clang/AST/AST.h"
^
compilation terminated.
make[1]: *** [dxr-index.o] Error 1
make[1]: Leaving directory `/home/vagrant/dxr/dxr/plugins/clang'
make: *** [build-plugin-clang] Error 2


Thanks,
--

Erik Rose

unread,
Jun 12, 2015, 10:53:20 AM6/12/15
to Andrew Artajos, dev-stati...@lists.mozilla.org
If you're running DXR inside the vagrant VM we ship with it, you should already have the clang dev headers installed. Perhaps the provisioning process failed the first time; run "vagrant provision" to retry it. But yes, you'll need not only clang but its development headers (as well as many other things, all expressed in vagrant_provision.sh, which "vagrant provision" runs).

Cheers,
Erik Rose
DXR Lead
0 new messages