[M3devel] m3gdb broken

Rodney M. Bates rodney_bates at lcwb.coop
Sun Mar 6 03:30:29 CET 2011



On 03/05/2011 12:05 PM, Mika Nystrom wrote:
> Hi m3devel,
>
> I don't know what's happened here.  m3gdb used to work, and work fairly
> well (never perfectly, but...).  Now I'm trying to debug a program and
> I get the following:
>
> (m3gdb) break Main.m3:65
> Debug info for file "Main.mc" not in stabs format

This message looks vaguely familiar to me, but I'm not recalling just yet.

> (m3gdb)
>
> The system/architecture is AMD64_FREEBSD but I've seen this problem on other
> systems too.
>
> Everything is from the CVS head.
>
> Main was compiled as follows, says cm3 -commands:
>
> gcc -gstabs+ -m64 -fPIC -z origin -Wl,--warn-common -Wl,-rpath,\$ORIGIN -Wl,-rpath,\$ORIGIN/../lib  -Wl,--fatal-warnings -z now -Bsymbolic -L/usr/local/lib -o sstubgen  _m3main.o Main.mo /home/mika/t/mscheme/sstubgen/AMD64_FREEBSD/libsstubgen.a /home/mika/t/mscheme/schemereadline/AMD64_FREEBSD/libschemereadline.a /home/mika/t/mscheme/schemesig/AMD64_FREEBSD/libschemesig.a /home/mika/t/calarm/m3readline/AMD64_FREEBSD/libm3readline.a /home/mika/t/calarm/sx/AMD64_FREEBSD/libsx.a /home/mika/t/mscheme/modula3scheme/AMD64_FREEBSD/libmodula3scheme.a /home/mika/t/rdwr/AMD64_FREEBSD/librdwr.a /home/mika/t/mscheme/AMD64_FREEBSD/libmscheme.a /home/mika/t/cit_util/AMD64_FREEBSD/libcit_util.a /usr/local/cm3/pkg/netobj/AMD64_FREEBSD/libm3netobj.a /usr/local/cm3/pkg/tcp/AMD64_FREEBSD/libm3tcp.a /usr/local/cm3/pkg/patternmatching/AMD64_FREEBSD/libpatternmatching.a /home/mika/t/mscheme/scheme-lib/AMD64_FREEBSD/libscheme-lib.a /usr/local/cm3/pkg/libbuf/AMD64_FREEBSD/liblibbuf.a /home/mika/t/
ci
>   t_common/AMD64_FREEBSD/libcit_common.a /usr/local/cm3/pkg/set/AMD64_FREEBSD/libset.a /home/mika/t/rdwrreset/AMD64_FREEBSD/librdwrreset.a /usr/local/cm3/pkg/m3tk/AMD64_FREEBSD/libm3tk.a /usr/local/cm3/pkg/m3tk-misc/AMD64_FREEBSD/libm3tk-misc.a /usr/local/cm3/pkg/libm3/AMD64_FREEBSD/libm3.a /usr/local/cm3/pkg/m3core/AMD64_FREEBSD/libm3core.a -lm -lcrypt -lssl -L/usr/local/lib -lintl -lreadline
>

This looks like the gcc command for the link step.  Everything it gets is either .o or .a.,
and it invokes gcc, not cm3cg.

I think the problem might lie in the compile step for Main, which would be giving
Main.mc as the input file name.  Its -g option could be the culprit. It should
look something like:

/usr/local/cm3//bin/cm3cg -gstabs+ -m64 -fPIC -mno-align-double -funwind-tables -quiet -fno-reorder-blocks Main.mc -o Main.ms



> I'm not even sure where to begin looking.  Is it a configuration issue,
> something broken in the compiler, or what?
>
> I fear m3gdb is essentially useless at the moment.
>
>       Mika
>

Rodney Bates



More information about the M3devel mailing list