Open main menu

CDOT Wiki β

Changes

Instructions for Setting Up DXR

402 bytes added, 17:33, 3 April 2010
noting the READM in DXR HG should be used now and not those steps
--[[User:Jmdesp|Jmdesp]] 17:33, 3 April 2010 (EDT)
 
'''The instructions belows are outdated'''. Instead, you'd better just :
 
* hg clone http://hg.mozilla.org/webtools/dxr/ dxr
 
and then read and apply the content of the dxr/README file
It's similar to what's below here, but with newer versions of the scripts, more functionalities (callgraph!), and full steps up to putting your DXR web site online.
 
 
----
This page describes the steps necessary to manually create a working DXR. The goal of this is to eventually be able to automate the process as part of an RPM for Fedora.
** hg clone http://hg.mozilla.org/users/tglek_mozilla.com/gcc-moz-plugin-mq .hg/patches
** (for file in `cat .hg/patches/series`; do cat .hg/patches/$file; done) |patch -p1
** cd ..
** mkdir gcc-build
** cd gcc-build
** make
** make install
** cd .. (note: ./installed now contains the built gcc)
* [https://developer.mozilla.org/en/Dehydra_GCC#Building_Dehydra Build Dehydra]
** hg clone http://hg.mozilla.org/users/tglek_mozilla.com/dehydra-gcc/
** cd dehydra-gcc
** ./configure --js-libs=/home/dave/dxr/tools/SpiderMonkey/lib --js-headers=/home/dave/dxr/tools/SpiderMonkey/include/js --js-name=mozjs
*** <strike>note use of --js-name=mozjs (see [https://bugzilla.mozilla.org/show_bug.cgi?id=478103 bug 478103])</strike> Pretty sure you can leave this out now.
** make
python unit_test_harness.py dehydra "/home/dave/dxr/tools/gcc-dehydra/gcc-build/gcc/cc1plus -quiet -O1 -ftest-coverage -fplugin=../gcc_%s.so -o /dev/null -fplugin-arg=%s %s"
...x..................................
Test Failure:
Test command: /home/dave/dxr/tools/gcc-dehydra/gcc-build/gcc/cc1plus -quiet -O1 -ftest-coverage -fplugin=../gcc_dehydra.so -o /dev/null -fplugin-arg=test_numinfo.js numinfo.cc
Failure msg: Expected 'OK' output; got 'ERR TestCase Error: 0ul != 0u'
Unit Test Suite Summary:
37 passed
make[1]: Leaving directory `/home/dave/dxr/tools/gcc-dehydra/dehydra-gcc/test'
make: *** [check] Error 2
 
* Get xref post-processing scripts (see [https://bugzilla.mozilla.org/show_bug.cgi?id=435814 bug 435814])
1
edit