Really Should make a Cross Compiler...
Posted: Mon Apr 09, 2007 7:21 am
Hi,
I normally compile my kernel on a WinXP machine using DJGPP with arguments to prevent use of the built in libc and standard runtime:
which seems to work fine - I tend to produce coff executables which my second stage loader can handle.
Problem is, I just tried to 'install' djgpp on my home Win2k box and with the above parameters get the message:
..which seems to indicate to me that gcc is attempting to use its built in runtime.
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:
I don't mind whether I get cygwin or djgpp working, and sorry it's kind of 2 questions in one, but they're related to the same problem. Any ideas much appreciated.
Cheers,
Adam
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