delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2012/08/01/01:08:15

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
Message-ID: <5018B9AB.7040100@iki.fi>
Date: Wed, 01 Aug 2012 08:07:55 +0300
From: Andris Pavenis <andris DOT pavenis AT iki DOT fi>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: gcc-4.8 snapshots and DJGPP
References: <50152C66 DOT 9040202 AT iki DOT fi> <201207291745 DOT 54447 DOT juan DOT guerrero AT gmx DOT de> <50156E5D DOT 7090509 AT iki DOT fi> <201208010039 DOT 53912 DOT juan DOT guerrero AT gmx DOT de>
In-Reply-To: <201208010039.53912.juan.guerrero@gmx.de>
Reply-To: djgpp-workers AT delorie DOT com

On 08/01/2012 01:39 AM, Juan Manuel Guerrero wrote:

> OFYI, I have successfully compiled gcc480_20120722 using djdev203 and djdev204.
> Building the djdev203 takes 4:30 hours, the djdev204 build takes 6:00 hours.
> I have omitted ADA.  To compile the sources using djdev203, the ports of cat,
> sort and tar must be replaced with the djdev204 ports of them or the build will
> fail.  I have installed the binaries produced in the first build and used them
> to compile the sources again.  I expirenced no problem.
>
> Neitherless something seems to be brocken.  I cannot produce programs that
> can be debuged.  If I compile a hello-world program which main function is
> not void I always get the error output below:
>
>
>
> C:\tmp>gdb a.exe
> GNU gdb (GDB) 7.4.1
> Copyright (C) 2012 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "--host=i786-pc-msdosdjgpp --target=djgpp".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from c:/tmp/a.exe...done.
> (gdb) b main
> Breakpoint 1 at 0x1ed9: file 1.c, line 5.
> (gdb) r foo bar
> Starting program: c:/tmp/a.exe foo bar
>
> Breakpoint 1, main (
>      argc=<error reading variable: can't compute CFA for this frame>,
>      argv=<error reading variable: can't compute CFA for this frame>) at 1.c:5
> 5         for (i = 0; i < 10; i++)
> (gdb)
>

I also reproduced this.

No need to compile anything as

gdb xgcc.exe

from gcc build directory was enough. I did not have time to check more though yet

Andris

>
>
> I compiled with -g[0-3] -O0.  The only reference I found related to this error
> message was this:
>    RFC: DW_OP_call_frame_cfa, again by Tom Tromey
>    <http://old.nabble.com/RFC%3A-DW_OP_call_frame_cfa%2C-again-td24925508.html#a25259165>
>
> but I do not understand this stuff.
>

There was also maybe related entry in RedHat Bugzilla:

https://bugzilla.redhat.com/show_bug.cgi?id=516627

but it is also old.

Andris

- Raw text -


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