OSDev.org https://forum.osdev.org/ |
|
GCC Build Issue https://forum.osdev.org/viewtopic.php?f=1&t=31435 |
Page 1 of 1 |
Author: | varun [ Fri Mar 17, 2017 11:14 pm ] |
Post subject: | GCC Build Issue |
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 |
Author: | Octocontrabass [ Sat Mar 18, 2017 2:41 am ] |
Post subject: | Re: GCC Build Issue |
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. |
Author: | matt11235 [ Sat Mar 18, 2017 3:12 am ] |
Post subject: | Re: GCC Build Issue |
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? |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |