2008/2/17, Eduardo Mendes <emammendes@superig.com.br>:
Stephen Lee wrote:
> Eduardo Mendes <emammendes@superig.com.br> wrote:
>
>> Ok. so I did the right thing and error msg changed.  Now gcc is missing
>> sys/wait.h when compiling libiberty/pex_win32.c
>>
>
> Probably incorrect cached information.
>
> Make sure your cygwin environment is set up as in Keith's last message,
> remove /develop/build/libiberty and restart from "Switch to cygwin to
> build. ...".  If that doesn't work try removing everything
> under /develop/build and restart there.
>
>
I removed everything from /develop/build and restarted there.
Unfortunately it didn't end up well.  See the errors below.

../../gcc-4.2.1-2-src/libiberty/objalloc.c: In function `objalloc_create':
../../gcc-4.2.1-2-src/libiberty/objalloc.c:106: warning: implicit
declaration of function `__builtin_offsetof'
../../gcc-4.2.1-2-src/libiberty/objalloc.c:106: error: parse error
before "struct"
../../gcc-4.2.1-2-src/libiberty/objalloc.c:106: error: parse error
before "struct"
../../gcc-4.2.1-2-src/libiberty/objalloc.c:106: error: parse error
before ')' token
../../gcc-4.2.1-2-src/libiberty/objalloc.c:107: error: parse error
before "struct"
../../gcc-4.2.1-2-src/libiberty/objalloc.c:107: error: parse error
before "struct"
../../gcc-4.2.1-2-src/libiberty/objalloc.c:107: error: parse error
before ')' token
../../gcc-4.2.1-2-src/libiberty/objalloc.c: In function `_objalloc_alloc':
../../gcc-4.2.1-2-src/libiberty/objalloc.c:122: error: parse error
before "struct"
../../gcc-4.2.1-2-src/libiberty/objalloc.c:122: error: parse error
before ')' token
../../gcc-4.2.1-2-src/libiberty/objalloc.c:136: error: parse error
before "struct"
../../gcc-4.2.1-2-src/libiberty/objalloc.c:136: error: parse error
before "struct"
../../gcc-4.2.1-2-src/libiberty/objalloc.c:136: error: parse error
before ')' token
../../gcc-4.2.1-2-src/libiberty/objalloc.c:146: error: parse error
before "struct"
../../gcc-4.2.1-2-src/libiberty/objalloc.c:146: error: parse error
before "struct"
../../gcc-4.2.1-2-src/libiberty/objalloc.c:146: error: parse error
before ')' token
../../gcc-4.2.1-2-src/libiberty/objalloc.c:158: error: parse error
before "struct"
../../gcc-4.2.1-2-src/libiberty/objalloc.c:158: error: parse error
before "struct"
../../gcc-4.2.1-2-src/libiberty/objalloc.c:158: error: parse error
before ')' token
../../gcc-4.2.1-2-src/libiberty/objalloc.c:159: error: parse error
before "struct"
../../gcc-4.2.1-2-src/libiberty/objalloc.c:159: error: parse error
before "struct"
../../gcc-4.2.1-2-src/libiberty/objalloc.c:159: error: parse error
before ')' token
../../gcc-4.2.1-2-src/libiberty/objalloc.c:163: error: parse error
before "struct"
../../gcc-4.2.1-2-src/libiberty/objalloc.c:163: error: parse error
before ')' token
../../gcc-4.2.1-2-src/libiberty/objalloc.c: In function
`objalloc_free_block':
../../gcc-4.2.1-2-src/libiberty/objalloc.c:209: error: parse error
before "struct"
../../gcc-4.2.1-2-src/libiberty/objalloc.c:209: error: parse error
before "struct"
../../gcc-4.2.1-2-src/libiberty/objalloc.c:209: error: parse error
before ')' token
../../gcc-4.2.1-2-src/libiberty/objalloc.c:209: warning: empty body in
an if-statement
make[2]: *** [objalloc.o] Error 1
make[1]: *** [all-libiberty] Error 2
make: *** [all] Error 2

Thanks

Ed
 
 
Have anyone managed to follow Lee's instructions and successfully compiled gcc from source?  
 
Thanks
 
Ed