delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/07/04/09:16:57

Sender: rich AT phekda DOT freeserve DOT co DOT uk
Message-ID: <3D2443E1.F6108E7D@phekda.freeserve.co.uk>
Date: Thu, 04 Jul 2002 13:47:29 +0100
From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i586)
X-Accept-Language: de,fr
MIME-Version: 1.0
To: DJGPP workers <djgpp-workers AT delorie DOT com>
Subject: Build failure when gcc.opt, gcc-l.opt contains -gdwarf-2
Reply-To: djgpp-workers AT delorie DOT com

Hello.

I've just hit the following error, when I build libc with -gdwarf-2 in gcc.opt
and gcc-l.opt:

...
c:/djgpp/bin/make.exe ./../../lib/libemu.a
make.exe[2]: `../../lib/libemu.a' is up to date.
./../../hostbin/dxegen.exe ./../../bin/emu387.dxe __emu_entry src/emu387.o
id_emu.o src/emudummy.o -L../../lib c:/djgpp/lib/gcc-lib/djgpp/3.1/libgcc.a
-lc c:/djgpp/lib/gcc-lib/djgpp/3.1/libgcc.a
ld -X -S -r -o dxe__tmp.o -L./../../lib src/emu387.o id_emu.o src/emudummy.o
-L../../lib c:/djgpp/lib/gcc-lib/djgpp/3.1/libgcc.a -lc
c:/djgpp/lib/gcc-lib/djgpp/
3.1/libgcc.a  -T dxe.ld
Exiting due to signal SIGSEGV
General Protection Fault at eip=00043169
eax=00189c94 ebx=001aaf74 ecx=001aaf64 edx=00b10000 esi=0010d1e0 edi=000f66c4
ebp=000f64a0 esp=000f6488 program=C:\DJGPP\BIN\LD.EXE
cs: sel=01e7  base=84f39000  limit=001affff
ds: sel=01ef  base=84f39000  limit=001affff
es: sel=01ef  base=84f39000  limit=001affff
fs: sel=01c7  base=0002c430  limit=0000ffff
gs: sel=01ff  base=00000000  limit=0010ffff
ss: sel=01ef  base=84f39000  limit=001affff
App stack: [000f67c4..000767c4]  Exceptn stack: [00076718..000747d8]

Call frame traceback EIPs:
  0x00043169 0x43169
  0x000433a3 0x433a3
  0x000427f9 0x427f9
  0x0001d439 0x1d439
  0x0001adb1 0x1adb1
  0x0005f558 0x5f558

'symify c:/djgpp/bin/ld.exe' doesn't give me anymore info. Here are the
versions I'm using:

bash-2.04$ gcc --version
gcc.exe (GCC) 3.1
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

bash-2.04$ ls -al `which gcc.exe`
-rwxr-xr-x    1 rich     root        77656 May 15 15:07
/dev/c/djgpp/bin/gcc.exe
*
bash-2.04$ ld --version
GNU ld version 2.12.1
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
bash-2.04$ ls -al `which ld.exe`
-rwxr-xr-x    1 rich     root       196456 May 20 18:24
/dev/c/djgpp/bin/ld.exe*

If I compile with -gstabs+3 in gcc.opt & gcc-l.opt, then it works. My libc
sources are current CVS + some work for LFS.

Has anyone else seen this problem?

Thanks, bye, Rich =]

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]

- Raw text -


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