delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/05/25/07:07:06

Message-ID: <002701c203d8$8dd2d8e0$0102a8c0@acceleron>
From: "Andrew Cottrell" <acottrel AT ihug DOT com DOT au>
To: <djgpp-workers AT delorie DOT com>
Cc: "Andris Pavenis" <pavenis AT lanet DOT lv>
References: <002801c20126$ab7bd680$0102a8c0 AT acceleron>
Subject: Re: GCC 3.1 & CVS LIBC failure
Date: Sat, 25 May 2002 20:39:43 +1000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Reply-To: djgpp-workers AT delorie DOT com

All,

Has anyone been able to build the CVS LIBC using GCC 3.1 sucessfully?  The
list of files that need to be modified is included at the end of this email
in order to get GCC 3.1 to build the CVS LIBC source code.

The following is what the SIGSEV I get, I will have another look in the
morning.

d:/dj204/bin/make.exe -C ../zoneinfo/src
./host-zic  -y ./yearistype -d ../../zoneinfo -L /dev/null africa antarctica
asi
a australasia europe northamerica southamerica pacificnew etcetera factory
backw
ard systemv solar87 solar88 solar89
Exiting due to signal SIGSEGV
General Protection Fault at eip=00005f5e
eax=f000001e ebx=00001e73 ecx=00000000 edx=f000001e esi=ffffffff
edi=f000001e
ebp=001ee8d8 esp=001ee8d8 program=D:\dj204\BIN\go32-v2.exe
cs: sel=0257  base=02bc0000  limit=001effff
ds: sel=025f  base=02bc0000  limit=001effff
es: sel=025f  base=02bc0000  limit=001effff
fs: sel=022f  base=00012020  limit=0000ffff
gs: sel=026f  base=00000000  limit=0010ffff
ss: sel=025f  base=02bc0000  limit=001effff
App stack: [001f0000..00170000]  Exceptn stack: [00021118..0001f1d8]

Call frame traceback EIPs:
  0x00005f5e 0x5e00003a
  0x0000eee0 0xe000003a
  0x00008a8b 0x8b00003a
  0x00002026 0x2600003a
  0x000026e6 0xe600003a
  0x00005637 0x3700003a
make.exe[1]: *** [posix_only] Error -1
make.exe: [subs] Error 2 (ignored)
d:/dj204/bin/make.exe -f makempty
make.exe[1]: Nothing to be done for `all'.

DJGPP_204 D:\dj204\src>symify D:\dj204\BIN\go32-v2.exe


So far the files that are needed to be modified by adding a type cast for
one or more function parameters, the files are:-
src\libc\ansi\stdio\fprintf.c
src\libc\ansi\stdio\fscanf.c
src\libc\ansi\stdio\printf.c
src\libc\ansi\stdio\remove.c
src\libc\compat\ioctl\ioctl.c
src\libc\compat\stdio\vscanf.c
src\libc\compat\stdio\vsscanf.c
src\libc\compat\time\select.c
src\libc\compat\unistd\_irdlink.c
src\libc\compat\unistd\fchown.c
src\libc\compat\unistd\llseek.c
src\libc\dos\io\_close.c
src\libc\dos\io\_creat_n.c
src\libc\dos\io\_open.c
src\libc\dos\io\_read.c
src\libc\dos\io\_write.c
src\libc\posix\fcntl\fcntl.c
src\libc\posix\sys\stat\fstat.c
src\libc\posix\sys\stat\lstat.c
src\libc\posix\unistd\link.c
src\libc\posix\unistd\lseek.c
src\libc\posix\unistd\write.c

The following file needs a small code change in order to build:-
src\libc\posix\unistd\confstr.c

There are two code changes to fix this  are:-
a)   out_len = 1;
      memcpy (buf, "\0", out_len);
      break;
b) out_len = snprintf(buf, len, "%s", "");

The easier change is option b.

Regards,
Andrew

- Raw text -


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