Hi:<br>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:<br>https://mail.elegosoft.com/pipermail/m3devel/2007-June/000238.html<br>proc m3_backend (source, object, optimize, debug) is<br> local args = [ "-quiet", source, "-o", object ]<br> if optimize args += "-O" end<br> if debug args += "-gstabs" end<br><br>(gdb) run RTHooks.ic -o RTHooks.is -gstabs<br>Starting program: /usr/local/cm3/bin/cm3cg RTHooks.ic -o RTHooks.is -gstabs<br> RTHooks_I3<br>Execution times (seconds)<br> TOTAL : 0.02 0.00
0.02 596 kB<br><br>Program exited normally.<br>(gdb) <br><br>Thanks<br><br><b><i>"Daniel Alejandro Benavides D." <dabenavidesd@yahoo.es></i></b> escribió:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hi:<br>Here is a stacktrace of cm3cg, compiled with a gcc 4.1 compiler (of this machine).<br><br>daniel@fbd-desktop:~$ gdb cm3cg<br>GNU gdb 6.6-debian<br>Copyright (C) 2006 Free Software Foundation, Inc.<br>GDB is free software, covered by the GNU General Public License, and you are<br>welcome to change it and/or distribute copies of it under certain conditions.<br>Type "show copying" to see the conditions.<br>There is absolutely no warranty for GDB. Type "show warranty" for details.<br>This GDB was configured as "i486-linux-gnu"...<br>Using host libthread_db library
"/lib/tls/i686/cmov/libthread_db.so.1".<br>(gdb) run RTHooks.ic -o RTHooks.is -g<br>Starting program: /usr/local/cm3/bin/cm3cg RTHooks.ic -o RTHooks.is -g<br><br>Program received signal SIGSEGV, Segmentation fault.<br>0x080d8e6d in gen_field_die ()<br>(gdb) where<br>#0 0x080d8e6d in gen_field_die ()<br>#1 0x080dc988 in gen_decl_die ()<br>#2 0x080d9d61 in gen_type_die ()<br>#3 0x080dcb45 in gen_decl_die ()<br>#4 0x080dcd34 in dwarf2out_decl ()<br>#5 0x080dcd55 in dwarf2out_type_decl ()<br>#6 0x08050178 in debug_struct ()<br>#7 0x080505ea in m3cg_declare_formal ()<br>#8 0x080515b6 in m3_parse_file ()<br>#9 0x082682aa in toplev_main ()<br>#10 0x080568ca in main ()<br><br><br><b><i>"Daniel Alejandro Benavides D." <dabenavidesd@yahoo.es></i></b> escribió:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hi all:<br>I'm trying to compile the first
step bootstrap compiler on ubuntu gutsy 2.6.22-14-386, and I get into segmentation fault:<br><br>adminfbd@fbd-desktop:/home/daniel/code/cm3/scripts$ sudo ./do-pkg.sh buildship m3core<br>CM3C =<br>/home/daniel/code/cm3/scripts<div id="1etz" class="ArwC7c ckChnd"><wbr>/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<br>=== package /home/daniel/code/cm3/m3-libs<wbr>/m3core ===<br> +++ /usr/local/cm3/bin/cm3 -build -DROOT='/home/daniel/code/cm3' && /usr/local/cm3/bin/cm3 -ship -DROOT='/home/daniel/code/cm3' +++<br>--- building in LINUXLIBC6 ---<br><br>ignoring ../src/m3overrides<br><br>new source -> compiling RTHooks.i3<br>RTHooks.i3: In function 'RTHooks_I3':<br>RTHooks.i3:146: internal compiler error: Segmentation fault<br>Please submit a full bug report,<br>with preprocessed source if appropriate.<br>See <URL:<a
href="http://gcc.gnu.org/bugs.html" target="_blank">http://gcc.gnu.org/bugs.html</a>> for instructions.<br>new source -> compiling RT0.i3<br>RT0.i3: In function 'RT0_I3':<br>RT0.i3:230: internal compiler error: Segmentation fault<br>Please submit a full bug report,<br>with preprocessed source if appropriate.<br>See <URL:<a href="http://gcc.gnu.org/bugs.html" target="_blank">http://gcc.gnu.org/bugs.html</a>> for instructions.<br>new source -> compiling RuntimeError.i3<br>RuntimeError.i3: In function 'RuntimeError_I3':<br><div class="WgoR0d"><br>I used the new binaries of the d5.5.0 branch.<br><br>Thanks<br></div></div><div> </div><hr size="1"><br><font face="Verdana" size="-2">Web Revelación Yahoo! 2007:<br> Premio Favorita del Público - <a href="http://es.promotions.yahoo.com/revelacion2007/favoritos/">¡Vota tu preferida!</a></font></blockquote><br><div> </div><hr size="1"><br><font face="Verdana" size="-2">Web Revelación Yahoo! 2007:<br>
Premio Favorita del Público - <a href="http://es.promotions.yahoo.com/revelacion2007/favoritos/">¡Vota tu preferida!</a></font></blockquote><br><p>
<hr size=1><br><font face="Verdana" size="-2">Web Revelación Yahoo! 2007:<br> Premio Favorita del Público - <a href="http://es.promotions.yahoo.com/revelacion2007/favoritos/">¡Vota tu preferida!</a></font>