Mail Archives: djgpp-workers/2007/05/27/06:11:17
Tried to build gcc-4.2.0 for DJGPP (at first Linux-to-DJGPP
cross-compiler as usually, after that also native compiler)
Finally got it through.
'gcc -v' outputs
Using built-in specs.
Target: djgpp
Configured with: /v204/gcc-4.20/configure djgpp --prefix=/dev/env/DJDIR
--disable-nls --disable-werror
--enable-languages=c,c++,fortran,objc,obj-c++,ada
Thread model: single
gcc version 4.2.0
There are however serious problems yet.
1) './djmake.sh bootstrap' does not work in DOS session under
WinXP. When I run it, mv failed to rename directories (top level
make target stage2-end). I had to use bootstrap2 instead. So there were
no comparison of 2 stages. Now it seems that running ./djmake.sh
stage2-end and ./djmake.sh stage3-bubble separately may succeed (it's
not ended yet). I would prefer to build GCC under FreeDOS running in
Linux DOSEMU, but available FreeDOS kernel have bug which prevented it
(http://sourceforge.net/tracker/index.php?func=detail&aid=1429741&group_id=49784&atid=457447)
There is followup that it is fixed in FreeDOS kernel CVS version, but
my attempts to build it (under DOSEMU) did not produce a working kernel.
2) I'm getting warnings from GCC that requested alignment is larger that
one supported in object file and is replaced with value 16:
gcc -O2 misc.c -o misc.exe
gcc -O2 makemake.c -o makemake.exe
makemake.c:12: warning: alignment of 'starting_dir' is greater than
maximum object file alignment. Using 16
makemake.c:13: warning: alignment of 'top_dir' is greater than maximum
object file alignment. Using 16
makemake.c:14: warning: alignment of 'path' is greater than maximum
object file alignment. Using 16
makemake.c:12: warning: alignment of 'starting_dir' is greater than
maximum object file alignment. Using 16
makemake.c:13: warning: alignment of 'top_dir' is greater than maximum
object file alignment. Using 16
makemake.c:14: warning: alignment of 'path' is greater than maximum
object file alignment. Using 16
C:/COMP/DJGPP/BIN/make.exe -C djasm native
bison -o djasm-n.c djasm.y
gcc -g djasm-n.c -o ../../hostbin/djasm.exe
djasm.y:51: warning: alignment of 'ext_types' is greater than maximum
object file alignment. Using 16
djasm.y:158: warning: alignment of '_modrm' is greater than maximum
object file alignment. Using 16
djasm.y:264: warning: alignment of 'opcodes' is greater than maximum
object file alignment. Using 16
Andris
PS. It looks like I'll try to return to way how I tried to build native
compiler for DJGPP long time ago (gcc-2.95.X): using cross-compiling
from Linux...
- Raw text -