Build fails

John Colvin john.loughran.colvin at gmail.com
Mon Nov 26 17:17:10 PST 2012


I haven't been able to get GDC to build for a while, the same 
errors come up on for me on ubuntu and fedora.

In file included from ../../gcc-4.8-20121118/gcc/d/d-lang.cc:28:0:
../../gcc-4.8-20121118/gcc/d/d-codegen.h:553:24: error: ‘gc’ 
has not been declared
    VEC(constructor_elt, gc) *head;
                         ^
../../gcc-4.8-20121118/gcc/d/d-codegen.h:553:26: error: ISO C++ 
forbids declaration of ‘VEC’ with no type [-fpermissive]
    VEC(constructor_elt, gc) *head;
                           ^
../../gcc-4.8-20121118/gcc/d/d-codegen.h:553:26: error: expected 
‘;’ at end of member declaration
../../gcc-4.8-20121118/gcc/d/d-codegen.h:553:29: error: ISO C++ 
forbids declaration of ‘head’ with no type [-fpermissive]
    VEC(constructor_elt, gc) *head;
                              ^
../../gcc-4.8-20121118/gcc/d/d-codegen.h: In member function 
‘void CtorEltMaker::reserve(int)’:
../../gcc-4.8-20121118/gcc/d/d-codegen.h:560:33: error: expected 
primary-expression before ‘,’ token
    { VEC_reserve (constructor_elt, gc, this->head, i); }
                                  ^
../../gcc-4.8-20121118/gcc/d/d-codegen.h:560:35: error: ‘gc’ 
was not declared in this scope
    { VEC_reserve (constructor_elt, gc, this->head, i); }
                                    ^
../../gcc-4.8-20121118/gcc/d/d-codegen.h:560:52: error: 
‘VEC_reserve’ was not declared in this scope
    { VEC_reserve (constructor_elt, gc, this->head, i); }
                                                     ^
../../gcc-4.8-20121118/gcc/d/d-codegen.h: In member function 
‘void CtorEltMaker::cons(tree, tree)’:
../../gcc-4.8-20121118/gcc/d/d-codegen.h:565:35: error: expected 
primary-expression before ‘,’ token
      VEC_safe_push (constructor_elt, gc, this->head, ce);
                                    ^
../../gcc-4.8-20121118/gcc/d/d-codegen.h:565:37: error: ‘gc’ 
was not declared in this scope
      VEC_safe_push (constructor_elt, gc, this->head, ce);
                                      ^
../../gcc-4.8-20121118/gcc/d/d-codegen.h:565:55: error: 
‘VEC_safe_push’ was not declared in this scope
      VEC_safe_push (constructor_elt, gc, this->head, ce);
                                                        ^
make[3]: *** [d/d-lang.glue.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from 
../../gcc-4.8-20121118/gcc/d/d-decls.cc:32:0:
../../gcc-4.8-20121118/gcc/d/d-codegen.h:553:24: error: ‘gc’ 
has not been declared
    VEC(constructor_elt, gc) *head;
                         ^
../../gcc-4.8-20121118/gcc/d/d-codegen.h:553:26: error: ISO C++ 
forbids declaration of ‘VEC’ with no type [-fpermissive]
    VEC(constructor_elt, gc) *head;
                           ^
../../gcc-4.8-20121118/gcc/d/d-codegen.h:553:26: error: expected 
‘;’ at end of member declaration
../../gcc-4.8-20121118/gcc/d/d-codegen.h:553:29: error: ISO C++ 
forbids declaration of ‘head’ with no type [-fpermissive]
    VEC(constructor_elt, gc) *head;
                              ^
../../gcc-4.8-20121118/gcc/d/d-codegen.h: In member function 
‘void CtorEltMaker::reserve(int)’:
../../gcc-4.8-20121118/gcc/d/d-codegen.h:560:33: error: expected 
primary-expression before ‘,’ token
    { VEC_reserve (constructor_elt, gc, this->head, i); }
                                  ^
../../gcc-4.8-20121118/gcc/d/d-codegen.h:560:35: error: ‘gc’ 
was not declared in this scope
    { VEC_reserve (constructor_elt, gc, this->head, i); }
                                    ^
../../gcc-4.8-20121118/gcc/d/d-codegen.h:560:52: error: 
‘VEC_reserve’ was not declared in this scope
    { VEC_reserve (constructor_elt, gc, this->head, i); }
                                                     ^
../../gcc-4.8-20121118/gcc/d/d-codegen.h: In member function 
‘void CtorEltMaker::cons(tree, tree)’:
../../gcc-4.8-20121118/gcc/d/d-codegen.h:565:35: error: expected 
primary-expression before ‘,’ token
      VEC_safe_push (constructor_elt, gc, this->head, ce);
                                    ^
../../gcc-4.8-20121118/gcc/d/d-codegen.h:565:37: error: ‘gc’ 
was not declared in this scope
      VEC_safe_push (constructor_elt, gc, this->head, ce);
                                      ^
../../gcc-4.8-20121118/gcc/d/d-codegen.h:565:55: error: 
‘VEC_safe_push’ was not declared in this scope
      VEC_safe_push (constructor_elt, gc, this->head, ce);
                                                        ^
make[3]: *** [d/d-decls.glue.o] Error 1


gcc snapshot gcc-4.8-20121118
gdc master from git

I got the same when using the latest gcc from svn

Any ideas?


More information about the D.gnu mailing list