[M3devel] Ubuntu Gutsy problems

Daniel Alejandro Benavides D. dabenavidesd at yahoo.es
Fri Jan 4 19:58:49 CET 2008


Hi:
It gets compiled well when using -gstabs command line option of cm3cg, as Tony marked on this post, so for now we can change the cm3.cfg debug variable of m3_backend:
https://mail.elegosoft.com/pipermail/m3devel/2007-June/000238.html
proc m3_backend (source, object, optimize, debug) is
  local args = [ "-quiet", source, "-o", object ]
  if optimize  args += "-O"  end
  if debug     args += "-gstabs"  end

(gdb) run RTHooks.ic -o RTHooks.is -gstabs
Starting program: /usr/local/cm3/bin/cm3cg RTHooks.ic -o RTHooks.is -gstabs
 RTHooks_I3
Execution times (seconds)
 TOTAL                 :   0.02             0.00             0.02                596 kB

Program exited normally.
(gdb)  

Thanks

"Daniel Alejandro Benavides D." <dabenavidesd at yahoo.es> escribió: Hi:
Here is a stacktrace of cm3cg, compiled with a gcc 4.1 compiler (of this machine).

daniel at fbd-desktop:~$ gdb cm3cg
GNU gdb 6.6-debian
Copyright (C) 2006 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 "i486-linux-gnu"...
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) run RTHooks.ic -o RTHooks.is -g
Starting program: /usr/local/cm3/bin/cm3cg RTHooks.ic -o RTHooks.is -g

Program received signal SIGSEGV, Segmentation fault.
0x080d8e6d in gen_field_die ()
(gdb) where
#0  0x080d8e6d in gen_field_die ()
#1  0x080dc988 in gen_decl_die ()
#2  0x080d9d61 in gen_type_die ()
#3   0x080dcb45 in gen_decl_die ()
#4  0x080dcd34 in dwarf2out_decl ()
#5  0x080dcd55 in dwarf2out_type_decl ()
#6  0x08050178 in debug_struct ()
#7  0x080505ea in m3cg_declare_formal ()
#8  0x080515b6 in m3_parse_file ()
#9  0x082682aa in toplev_main ()
#10 0x080568ca in main ()


"Daniel Alejandro Benavides D." <dabenavidesd at yahoo.es> escribió: Hi all:
I'm trying to compile the first step bootstrap compiler on ubuntu gutsy 2.6.22-14-386, and I get into segmentation fault:

adminfbd at fbd-desktop:/home/daniel/code/cm3/scripts$ sudo ./do-pkg.sh buildship m3core
CM3C =
/home/daniel/code/cm3/scripts/pkgmap.sh -c "/usr/local/cm3/bin/cm3 -build  -DROOT='/home/daniel/code/cm3'  && /usr/local/cm3/bin/cm3 -ship  -DROOT='/home/daniel/code/cm3' " m3core
=== package /home/daniel/code/cm3/m3-libs/m3core ===
 +++ /usr/local/cm3/bin/cm3 -build  -DROOT='/home/daniel/code/cm3'  && /usr/local/cm3/bin/cm3 -ship -DROOT='/home/daniel/code/cm3'  +++
--- building in LINUXLIBC6 ---

ignoring ../src/m3overrides

new source -> compiling RTHooks.i3
RTHooks.i3: In function 'RTHooks_I3':
RTHooks.i3:146: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source  if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for  instructions.
new source -> compiling RT0.i3
RT0.i3: In function 'RT0_I3':
RT0.i3:230: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
new source -> compiling RuntimeError.i3
RuntimeError.i3: In function 'RuntimeError_I3':

I used the new binaries of the d5.5.0 branch.

Thanks


          

---------------------------------

Web Revelación Yahoo! 2007:
 Premio Favorita del Público - ¡Vota tu preferida!
          

---------------------------------

Web Revelación Yahoo! 2007:
 Premio Favorita del Público - ¡Vota tu preferida!

       
---------------------------------

Web Revelación Yahoo! 2007:
 Premio Favorita del Público - ¡Vota tu preferida!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20080104/c3d85191/attachment-0002.html>


More information about the M3devel mailing list