gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] Report on gm2 of 2008-08-15 on Solaris 10/sparc


From: john o goyo
Subject: [Gm2] Report on gm2 of 2008-08-15 on Solaris 10/sparc
Date: Mon, 25 Aug 2008 13:58:31 -0400

After a bit of boostrapping to install g++ 4.1.2, I wish to report that the build succeeded and check-gm2 yielde the following.

                === gm2 Summary ===

# of expected passes            6000
# of unexpected failures        60
# of unresolved testcases       18

(As usual, full reports will be sent separately to Gaius.)

Unfortunately, I seem to have completely lost the ability to debug. Witness:


johng [test]316=> cat what.mod
MODULE what;

FROM InOut IMPORT WriteString, WriteLn;

BEGIN
    WriteString("What?");
    WriteLn
END what.
johng [test]317=> gm2 -c -g what.mod
johng [test]318=> file what.o
what.o:         ELF 64-bit MSB relocatable SPARCV9 Version 1
johng [test]319=> nm what.o |grep what
what.o:
[26] | 292| 12|FUNC |GLOB |0 |1 | _M2_what_finish [21] | 0| 292|FUNC |GLOB |0 |1 | _M2_what_init
[1]     |             0|           0|FILE |LOCL |0    |ABS    |what.mod
johng [test]320=> gm2 -o what -g what.mod
johng [test]321=> ./what
What?
johng [test]322=> gdb what
GNU gdb 6.2.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.10"...
(gdb) b _M2_what_init
Breakpoint 1 at 0x100024bf4: file what.mod, line 6.
(gdb) r
Starting program: /home/johng/prj/test/what
procfs: target_wait (wait_for_stop) line 3937, /proc/18993: Value too large for defined data type.
(gdb) c
Continuing.
procfs: couldn't find pid 18993 (kernel thread 1) in procinfo list.
(gdb) q
The program is running.  Exit anyway? (y or n) y
johng [test]324=> dbx what
Reading what
dbx: internal error: dwarf reference attribute out of bounds
dbx: warning: object initialization interrupted - no program loaded
(dbx) quit
johng [test]325=> cat what.C
#include <iostream>

int
main(){
  using namespace std;

  cout << "What?\n";
}
johng [test]326=> g++ -o what -g what.C
johng [test]327=> ./what
What?
johng [test]328=> gdb what
GNU gdb 6.2.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.10"...
(gdb) l
1       #include <iostream>
2
3       int
4       main(){
5         using namespace std;
6
7         cout << "What?\n";
8       }
(gdb) b 7
Breakpoint 1 at 0x100000adc: file what.C, line 7.
(gdb) r
Starting program: /home/johng/prj/test/what
procfs: target_wait (wait_for_stop) line 3937, /proc/19010: Value too large for defined data type.
(gdb) q
The program is running.  Exit anyway? (y or n) y
johng [test]329=> dbx what
Reading what
Reading ld.so.1
Reading libstdc++.so.6.0.8
Reading libm.so.2
Reading libgcc_s.so.1
Reading libc.so.1
(dbx) list
    7     cout << "What?\n";
    8   }
(dbx) stop at 7
(2) stop at "what.C":7
(dbx) run
Running: what
(process id 19013)
Reading libc_psr.so.1
stopped in main at line 7 in file "what.C"
    7     cout << "What?\n";
(dbx) cont
What?

execution completed, exit code is 0
(dbx) quit

In the transcript above, g++ is the C++ compiler built along with gm2 and produces binaries acceptable to gdb. However, the corresponding gm2-compiled binaries are not even acceptable to dbx anymore.

john





reply via email to

[Prev in Thread] Current Thread [Next in Thread]