OSDev.org

The Place to Start for Operating System Developers
It is currently Sun Apr 23, 2017 8:07 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: GCC Build Issue
PostPosted: Fri Mar 17, 2017 11:14 pm 
Offline

Joined: Fri Mar 17, 2017 7:11 am
Posts: 4
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


Top
 Profile  
 
 Post subject: Re: GCC Build Issue
PostPosted: Sat Mar 18, 2017 2:41 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 1032
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.


Top
 Profile  
 
 Post subject: Re: GCC Build Issue
PostPosted: Sat Mar 18, 2017 3:12 am 
Offline
Member
Member
User avatar

Joined: Tue Aug 02, 2016 1:52 pm
Posts: 244
Location: East Riding of Yorkshire, UK
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 Wiki
Compiler Development Forum


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group