With actual dehydra sources I run into the following trouble:
/opt/linux-gnu_4.7.2/bin/gcc -MD -g3 -Wall -fPIC -DXP_UNIX -DIN_GCC 
-DPLUGIN_NO_POISON -DHAVE_CONFIG_H  
-I/opt/linux-gnu_4.7.2/lib/gcc/i686-pc-linux-gnu/4.7.2/plugin/include 
-I../obj-js/dist/include/ -I/home/krud/work/dehydra/obj-js 
-I//home/krud/local/include/js/  
-I/opt/linux-gnu_4.7.2/lib/gcc/i686-pc-linux-gnu/4.7.2/plugin/include/ -c 
dehydra_plugin.c
In file included from dehydra_plugin.c:31:0:
dehydra.h:51:20: error: 'BASES' redeclared as different kind of symbol
In file included from 
/opt/linux-gnu_4.7.2/lib/gcc/i686-pc-linux-gnu/4.7.2/plugin/include/all-tree.def:5:0,
                 from 
/opt/linux-gnu_4.7.2/lib/gcc/i686-pc-linux-gnu/4.7.2/plugin/include/tree.h:43,
                 from gcc_cp_headers.h:41,
                 from dehydra_plugin.c:28:
/opt/linux-gnu_4.7.2/lib/gcc/i686-pc-linux-gnu/4.7.2/plugin/include/cp/cp-tree.def:468:1:
 note: previous definition of 'BASES' was here
dehydra_plugin.c: In function 'plugin_init':
dehydra_plugin.c:485:20: warning: comparison between 'timevar_id_t' and 'enum 
<anonymous>' [-Wenum-compare]
make: *** [dehydra_plugin.o] Error 1



What I did:
tar -xzf ~/Downloads/autoconf-2.13.tar.gz
cd autoconf-2.13/
./configure
make
./autoconf --macrodir . --version

-> works!

As described in 
https://developer.mozilla.org/en-US/docs/Dehydra/Installing_Dehydra

cd $HOME
hg clone http://hg.mozilla.org/mozilla-central/
cd mozilla-central
hg update AURORA_BASE_20110705
cd js/src
~/work/autoconf-2.13/autoconf --macrodir=/home/krud/work/autoconf-2.13/
mkdir $HOME/obj-js
cd $HOME/obj-js
$HOME/mozilla-central/js/src/configure --enable-optimize --disable-debug
make

Works!

---

Final dehydra compilation:
hg clone http://hg.mozilla.org/rewriting-and-analysis/dehydra/
cd dehydra/
export CXX=/opt/linux-gnu_4.7.2/bin/g++
export CC=/opt/linux-gnu_4.7.2/bin/gcc
./configure --js-headers=../obj-js/dist/include/ --js-libs=../obj-js/
make

Fails :-( with error listed on top of the mail.

Any ideas?

Regards
 Klaus




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

Reply via email to