GCC 4.6 fails on types_used_by_cur_var_decl

Ricky Huang rhuang.work at gmail.com
Tue Dec 17 20:18:47 UTC 2013


Hello all,

Initially I had 4.6.3 which I couldn't install over with 4.6.4 (it complained about "installing into the same location") so I had to "pkg_delete -f" it.

Then I tried to "make install" in /usr/ports/lang/gcc and the build fails with:

.././../gcc-4.6.4/gcc/c-family/c-common.c:9537:28: error: use of undeclared identifier
      'types_used_by_cur_var_decl'
  while (!VEC_empty (tree, types_used_by_cur_var_decl))

.././../gcc-4.6.4/gcc/c-family/c-common.c:9537:28: error: use of undeclared identifier
      'types_used_by_cur_var_decl'
  while (!VEC_empty (tree, types_used_by_cur_var_decl))

.././../gcc-4.6.4/gcc/c-family/c-common.c:9539:34: error: use of undeclared identifier
      'types_used_by_cur_var_decl'
      tree type = VEC_pop (tree, types_used_by_cur_var_decl);

.././../gcc-4.6.4/gcc/c-family/c-common.c:9539:34: error: use of undeclared identifier
      'types_used_by_cur_var_decl'
      tree type = VEC_pop (tree, types_used_by_cur_var_decl);

Is this the case where types_used_by_cur_var_decl was not extern declared somewhere else (probably in its header)?

And a more important question, how did this kind of error sneak into the trunk code?  I had "portsnap fetch update" prior, so the port is up to date…  I was under the impression that everything on the head of the trunk should be stable and at least compilable?



More information about the freebsd-questions mailing list