EmbLogic's Blog

gcc 2.95.3 building problem

decl.c: In function 'start_struct':
decl.c:4451: error: argument 'code' doesn't match prototype
ch-tree.h:736: error: prototype declaration
make[2]: *** [decl.o] Error 1
make[2]: Leaving directory `/home/cihan/gcc-2.95.3/gcc/ch'
make[1]: *** [cc1chill] Error 2
make[1]: Leaving directory `/home/cihan/gcc-2.95.3/gcc'
make: *** [all-gcc] Error 2

One Response to gcc 2.95.3 building problem

  1. Sumit Gemini says:

    Please use this syntax to get your problem out…

    During Gcc compiling….
    1) Go to “gcc-2.95.3/gcc/ch/ch-tree.h”
    2) Go to line number : 739

    extern tree start_struct PROTO(enum tree_code, tree);
    change it with
    extern tree start_struct PROTO(enum chill_tree_code, tree);

    After glibc you should use this:—
    $ cd build-boot-gcc
    $ ../gcc-2.95.3/configure –target=$TARGET –prefix=${PREFIX} \
    > –without-headers –with-newlib –enable-languages=c,c++

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>