This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

undefined reference to `gt_pch_nx_tree_code'


Hi,

I am writing a new pass for gcc that uses the GTY markers,
1. I have included the source file in GTFILES_H in gcc/Makefile.in.
2. I have the gt-path.h mentioned in the compilation for source file
3. I have the #include "gt-path.h" at the very end of the code of source file.

I see the gt-path.h is getting created in the build/gcc directory. But
I am getting the below error. Is there something I am missing in the
Makefile, I tried to look at a similar example of tree-mudflap.c that
uses GTY markers, I do not see any difference in the steps I have
followed.?I havent done gcc dev before, so I'd really appreciate any
help in this regard.

main.o tree-browser.o libbackend.a ../libcpp/libcpp.a
../libdecnumber/libdecnumber.a ../libcpp/libcpp.a
../libiberty/libiberty.a ../libdecnumber/libdecnumber.a?? -lmpfr -lgmp
-rdynamic -ldl
libbackend.a(gtype-desc.o): In function `gt_ggc_m_P9tree_code4htab':
/home/aravinda/svnbuild/gcc/gtype-desc.c:1968: undefined reference to
`gt_ggc_mx_tree_code'
libbackend.a(gtype-desc.o): In function `gt_pch_n_P9tree_code4htab':
/home/aravinda/svnbuild/gcc/gtype-desc.c:4133: undefined reference to
`gt_pch_nx_tree_code'
collect2: ld returned 1 exit status
make[3]: *** [cc1-dummy] Error 1
Thanks,
Aravinda


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]