GCC Build Issue

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
varun
Posts: 4
Joined: Fri Mar 17, 2017 7:11 am
Libera.chat IRC: varun

GCC Build Issue

Post by varun »

Sorry to bother you guys again, but please take a look and help me solve this

My source Code versions:
gcc-6.2.0
texinfo-6.3
binutils-2.27
gmp-6.1.2
mpc-1.0.3
isl-0.18
mpfr-3.1.5

(http://wiki.osdev.org/Building_GCC)
After calling make command and waiting for hours it break down with the following errors:

In file included from ../../gcc-6.2.0/gcc/ggc-common.c:28:0:
../../gcc-6.2.0/gcc/ggc-internal.h:101:35: error: 'vkid' does not name a type
extern size_t ggc_get_size (const vkid *);
^~~~
../../gcc-6.2.0/gcc/ggc-common.c: In function 'void* ggc_realloc(void*, size_t)':
../../gcc-6.2.0/gcc/ggc-common.c:131:29: error: invalid conversion from 'void*' to 'const int*' [-fpermissive]
old_size = ggc_get_size (x);

^
In file included from ../../gcc-6.2.0/gcc/ggc-common.c:28:0:
../../gcc-6.2.0/gcc/ggc-internal.h:101:15: note: initializing argument 1 of 'size_t ggc_get_size(const int*)'
extern size_t ggc_get_size (const vkid *);
^~~~~~~~~~~~
../../gcc-6.2.0/gcc/ggc-common.c: In function 'int gt_pch_note_object(void*, void*, gt_note_pointers)':
../../gcc-6.2.0/gcc/ggc-common.c:287:38: error: invalid conversion from 'void*' to 'const int*' [-fpermissive]
(*slot)->size = ggc_get_size (obj);

^
In file included from ../../gcc-6.2.0/gcc/ggc-common.c:28:0:
../../gcc-6.2.0/gcc/ggc-internal.h:101:15: note: initializing argument 1 of 'size_t ggc_get_size(const int*)'
extern size_t ggc_get_size (const vkid *);
^~~~~~~~~~~~
Makefile:1085: recipe for target 'ggc-common.o' failed
make[3]: *** [ggc-common.o] Error 1
make[3]: Leaving directory '/home/lokesh/src/build-gcc/gcc'
Makefile:4476: recipe for target 'all-stage3-gcc' failed
make[2]: *** [all-stage3-gcc] Error 2
make[2]: Leaving directory '/home/lokesh/src/build-gcc'
Makefile:23633: recipe for target 'stage3-bubble' failed
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory '/home/lokesh/src/build-gcc'
Makefile:919: recipe for target 'all' failed
make: *** [all] Error 2
In file included from ../../gcc-6.2.0/gcc/ggc-common.c:28:0:
../../gcc-6.2.0/gcc/ggc-internal.h:101:35: error: 'vkid' does not name a type
extern size_t ggc_get_size (const vkid *);

^~~~
../../gcc-6.2.0/gcc/ggc-common.c: In function 'void* ggc_realloc(void*, size_t)':
../../gcc-6.2.0/gcc/ggc-common.c:131:29: error: invalid conversion from 'void*' to 'const int*' [-fpermissive]
old_size = ggc_get_size (x);

^
In file included from ../../gcc-6.2.0/gcc/ggc-common.c:28:0:
../../gcc-6.2.0/gcc/ggc-internal.h:101:15: note: initializing argument 1 of 'size_t ggc_get_size(const int*)'
extern size_t ggc_get_size (const vkid *);
^~~~~~~~~~~~
../../gcc-6.2.0/gcc/ggc-common.c: In function 'int gt_pch_note_object(void*, void*, gt_note_pointers)':
../../gcc-6.2.0/gcc/ggc-common.c:287:38: error: invalid conversion from 'void*' to 'const int*' [-fpermissive]
(*slot)->size = ggc_get_size (obj);

^
In file included from ../../gcc-6.2.0/gcc/ggc-common.c:28:0:
../../gcc-6.2.0/gcc/ggc-internal.h:101:15: note: initializing argument 1 of 'size_t ggc_get_size(const int*)'
extern size_t ggc_get_size (const vkid *);
^~~~~~~~~~~~
Makefile:1085: recipe for target 'ggc-common.o' failed
make[3]: *** [ggc-common.o] Error 1
make[3]: Leaving directory '/home/lokesh/src/build-gcc/gcc'
Makefile:4476: recipe for target 'all-stage3-gcc' failed
make[2]: *** [all-stage3-gcc] Error 2
make[2]: Leaving directory '/home/lokesh/src/build-gcc'
Makefile:23633: recipe for target 'stage3-bubble' failed
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory '/home/lokesh/src/build-gcc'
Makefile:919: recipe for target 'all' failed
make: *** [all] Error 2
Octocontrabass
Member
Member
Posts: 5587
Joined: Mon Mar 25, 2013 7:01 pm

Re: GCC Build Issue

Post by Octocontrabass »

varun wrote:../../gcc-6.2.0/gcc/ggc-internal.h:101:35: error: 'vkid' does not name a type
extern size_t ggc_get_size (const vkid *);
^~~~
That's supposed to say "void", not "vkid". It looks like you might have a hardware problem.
User avatar
matt11235
Member
Member
Posts: 286
Joined: Tue Aug 02, 2016 1:52 pm
Location: East Riding of Yorkshire, UK

Re: GCC Build Issue

Post by matt11235 »

Octocontrabass wrote:
varun wrote:../../gcc-6.2.0/gcc/ggc-internal.h:101:35: error: 'vkid' does not name a type
extern size_t ggc_get_size (const vkid *);
^~~~
That's supposed to say "void", not "vkid". It looks like you might have a hardware problem.
Have we just witnessed a random bit flip? :o
com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedState
Compiler Development Forum
Post Reply