I normally compile my kernel on a WinXP machine using DJGPP with arguments to prevent use of the built in libc and standard runtime:
Code: Select all
-Wall -O -fno-builtin -nostartfiles -fstrength-reduce -nostdinc -fnostdlib -ffreestanding
Problem is, I just tried to 'install' djgpp on my home Win2k box and with the above parameters get the message:
Code: Select all
bin/main.o:main.c:(.text+0x13): undefined reference to `_alloca'
bin/main.o:main.c:(.text+0x18): undefined reference to `__main'
For this reason, I have tried to follow the cygwin x-compiler instructions but after binutils and gcc compile, I get error messages like the following:
Code: Select all
checking errno.h usability... 11138 [main] sh 116856 fork: child -1 - died wai
ting for longjmp before initialization, retry 0, exit code 0x80, errno 11
44 [main] sh 107312 fork: child -1 - died waiting for longjmp before initia
lization, retry 0, exit code 0x80, errno 11
Cheers,
Adam