Thanks for the info, Taras. On Feb 7, 4:06 pm, Taras Glek <[email protected]> wrote: > On 2/4/2012 10:39 AM, Anton wrote: > > > > > > > > > Hi, > > > I ran into problems when installing callgraph by following the > > instructions > > athttps://developer.mozilla.org/en/Developing_Mozilla/Callgraph/Install.... > > It seems that during the configure stage of building mozilla, the gcc > > check fails. To be more specific, here are the outputs: > > > from terminal: > > > checking for gcc... /usr/bin/gcc -fplugin=/home/anton/dehydra/ > > gcc_treehydra.so -fplugin-arg-gcc_treehydra-script=/home/anton/ > > callgraph/callgraph_static.js > > checking whether the C compiler (/usr/bin/gcc -fplugin=/home/anton/ > > dehydra/gcc_treehydra.so -fplugin-arg-gcc_treehydra-script=/home/anton/ > > callgraph/callgraph_static.js ) works... no > > configure: error: installation or configuration problem: C compiler > > cannot create executables. > > *** Fix above errors and then restart with "make -f > > client.mk build" > > make[2]: *** [configure] Error 1 > > make[1]: *** [/home/anton/callgraph/mozilla-central//obj-fx/Makefile] > > Error 2 > > make: *** [build] Error 2 > > ./callgraph.sh: build failed > > > from config.log > > > configure:2660: checking for gcc > > configure:2773: checking whether the C compiler (/usr/bin/gcc - > > fplugin=/home/anton/dehydra/gcc_treehydra.so -fplugin-arg- > > gcc_treehydra-script=/home/anton/callgraph/callgraph_static.js ) > > works > > configure:2789: /usr/bin/gcc -fplugin=/home/anton/dehydra/ > > gcc_treehydra.so -fplugin-arg-gcc_treehydra-script=/home/anton/ > > callgraph/callgraph_static.js -o conftest conftest.c 1>&5 > > /home/anton/callgraph/callgraph_static.js:301: JS Exception: Error: > > unknown location > > /home/anton/callgraph/callgraph_static.js:301: #0: > > location_string([object GCCNode]) > > /home/anton/callgraph/callgraph_static.js:196: #1: get_names([object > > GCCNode]) > > /home/anton/callgraph/callgraph_static.js:374: #2: > > process_tree([object GCCNode]) > > configure: failed program was: > > > #line 2784 "configure" > > #include "confdefs.h" > > > main(){return(0);} > > > It seems that the callgraph_static.js script is throwing exception > > when configure script checks gcc with the treehydra plugin. Any > > thoughts on how this can be resolved? > > gcc callgraph stuff is bitrotted. I believe we have more up to date > clang callgraph support in dxr. > > Taras > > > > > > > > > > > Thanks, > > Anton > > _______________________________________________ > > dev-static-analysis mailing list > > [email protected] > >https://lists.mozilla.org/listinfo/dev-static-analysis
_______________________________________________ dev-static-analysis mailing list [email protected] https://lists.mozilla.org/listinfo/dev-static-analysis
