Mail Archives: djgpp-workers/2012/08/01/01:08:15
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 -