On 11 October 2010 14:54, charfi asma <charfiasma@xxxxxxxx> wrote: > Hello, > > I tried to install sample_fe in gcc-dev. > > I get errors dealing with #include "gtype-sample_fe.h" and #include > "gt-sample_fe-sfe1.h" > > In the sample_fe (that woked well in gcc4.5) there is only #include > "gtype-sample_fe.h" not "gt-sample_fe-sfe1.h" > when I call make I get this error: > > libbackend.a(i386.o):(.rodata+0x242c): undefined reference to > `gt_ggc_mx_lang_tree_node' > libbackend.a(i386.o):(.rodata+0x2430): undefined reference to > `gt_pch_nx_lang_tree_node' > /usr/bin/ld: Dwarf Error: Offset (17707) greater than or equal to .debug_str > size (1397). > libbackend.a(cgraphunit.o):(.rodata+0xc): undefined reference to > `gt_ggc_mx_lang_tree_node' > libbackend.a(cgraphunit.o):(.rodata+0x10): undefined reference to > `gt_pch_nx_lang_tree_node' > /usr/bin/ld: Dwarf Error: Offset (15649) greater than or equal to .debug_str > size (1103). > libbackend.a(ggc-page.o): In function `gt_ggc_m_S': > /export/home/charfi/Bureau/build_uml/gcc/../../gcc-dev/gcc/ggc-page.c:1304: > undefined reference to `gt_ggc_mx_lang_tree_node' > collect2: ld returned 1 exit status > > if I add #include "gt-sample_fe-sfe1.h" and call make I get this different > error: > > ../../gcc-dev/gcc/sample_fe/sfe1.c:173:31: error: gt-sample_fe-sfe1.h: No such > file or directory > > I do not change the make_lang.in. > > any idea ? > Last i remember sample_fe was andi's skeleton front-end, it was probably based on a much older version gcc sources (the front-end langhooks and interfaces change alot) andi would know more, but my guess you could get it working easily again. But not sure why you would bother since i try to weekly merge in the gcc/master on all branches of my git repo. When we get thinks more stable with my python fe and gcalc i will try to push these into gcc/git and or svn and see why people say about merging into trunk since me and andi can maintain gcalc and the documentation. The python front-end is a long time before it will be ready for trunk but i would like to put it in the gcc git/svn soon. --Phil