Page 1 of 1
FAIL!
Posted: Wed Apr 29, 2009 12:05 pm
by dosfan
Gcc port: epic fail.
Err, version string looking good though! More work required me thinks.
Re: FAIL!
Posted: Wed Apr 29, 2009 12:44 pm
by earlz
nice lol let's hope your OS knows how to free a process' memory when it crashes
Re: FAIL!
Posted: Wed Apr 29, 2009 1:51 pm
by Osbios
Looks like you need a 64bit system just to be able to feed your memory hungry gcc. ^.^
Re: FAIL!
Posted: Wed Apr 29, 2009 4:08 pm
by dosfan
Bit confused with this one as the only interface available to increase heap is sbrk() which uses a signed int.. so how can it attempt to allocate 0xfffffff0 bytes
Re: FAIL!
Posted: Wed Apr 29, 2009 5:29 pm
by pcmattman
Make sure sysconf for _SC_PAGESIZE doesn't return -1
EDIT: This is because GCC assumes sysconf is implemented and doesn't check the return value. After all, there's not much that can throw an error when obtaining the system page size.
Congrats on getting it working, by the way!
Re: FAIL!
Posted: Wed Apr 29, 2009 11:19 pm
by dosfan
You could tell it was a signed vs unsigned issue. I remember having to modify the prototype for newlib's getpagesize() to return int instead of caddr_t to get it compile.
pcmattman wrote:Make sure sysconf for _SC_PAGESIZE doesn't return -1
Without even trying it I know you are absolutely on the money there. It does. Thanks!
Re: FAIL!
Posted: Thu Apr 30, 2009 12:03 am
by pcmattman
No worries - it's a problem I've run into before so I knew exactly how to fix it