delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2007/05/27/06:11:17

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
Message-ID: <46595182.80902@iki.fi>
Date: Sun, 27 May 2007 12:38:10 +0300
From: Andris Pavenis <andris DOT pavenis AT iki DOT fi>
User-Agent: Thunderbird 2.0.0.0 (Windows/20070326)
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: gcc-4.2.0
X--MailScanner-Information: Please contact the ISP for more information
X--MailScanner: Found to be clean
X--MailScanner-From: andris DOT pavenis AT iki DOT fi
X-Spam-Status: No
Reply-To: djgpp-workers AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019