Re: building with debugging turned on
brian <briand-/[email protected]>
| Newsgroups | gmane.comp.lang.sml.smlnj |
|---|---|
| Message-ID | <[email protected]> |
OK - almost there...
I keep getting the following, which is preventing me from actually
running any of my test routines.
Standard ML of New Jersey v110.57 [built: Mon Nov 21 09:35:29 2005]
- CM.make("clapack.cm");
everything proceeds normally, and then :
[plugin $/make-tool.cm loaded successfully]
[make -f clapack.make SMLNJ_BINDIR=/usr/local/smlnj-110.57/bin FFI/
clapack.cm]
make: `FFI/clapack.cm' is up to date.
uncaught exception SysErr [SysErr: Interrupted system call [intr]]
raised at: <waitpid.c>
Basis/Implementation/Unix/os-process.sml:47.38-47.40
../cm/util/safeio.sml:41.55
../cm/tools/main/private-tools.sml:533.13
../cm/util/safeio.sml:41.55
../cm/util/safeio.sml:41.55
../cm/parse/parse.sml:501.47
Do I need to create my program as a heap image and load it instead of
sml ?
Brian
On Mar 26, 2006, at 11:26 AM, John Reppy wrote:
> Each version comes with a copy of the installation instructions.
> For example,
>
> http://smlnj.org/dist/working/110.58/INSTALL
>
> If you install using the config/install.sh command, then you should
> be set. The
> makefile already uses the -g option to compile the runtime, so
> you'll just need
> to run gdb on it. For example, if you are in the src/runtime/objs
> directory (where
> the runtime is built), do the following
>
> gdb ../../../bin/.run/run.ppc-darwin
>
> and then
>
> run @SMLload=../../../bin/.heap/sml
>
> at this point, you'll have SML/NJ running under gdb.
>
> - John
>
> On Mar 26, 2006, at 10:36 AM, brian wrote:
>
>> Hi John,
>>
>> Right, the problem is I can't seem to find how to add the -g
>> option to the build.
>>
>> I think I originally installed using the Mac OS X package.
>>
>> Do I need to grab the sources and build from scratch ?
>>
>> I can't seem to find any guidance in the doc's including
>> installation instructions and my own travels among the README's.
>>
>> Thanks
>>
>> Brian
>>
>> On Mar 23, 2006, at 8:28 PM, John Reppy wrote:
>>
>>> This is what I usually do when confronted with a crash. You
>>> should compile
>>> the runtime system with "-g" and then run gdb on it. Use the
>>> @SMLload option
>>> to the runtime system to load thee sml heap image (the standard
>>> one is in
>>> bin/.heap.
>>>
>>> - John
>>>
>>> On Mar 23, 2006, at 8:56 PM, brian wrote:
>>>
>>>> Well I can't seem to figure out where these seg faults are
>>>> coming from with nl-ffi so it's time to do things the hardware.
>>>>
>>>> Is it very reasonable to try and build my program with debugging
>>>> turned on so I can try to track down the problem using gdb ?
>>>>
>>>> Perhaps there is a better way ?
>>>>
>>>> Thanks
>>>>
>>>> Brian
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------
>>>> This SF.Net email is sponsored by xPML, a groundbreaking
>>>> scripting language
>>>> that extends applications into web and mobile media. Attend the
>>>> live webcast
>>>> and join the prime developer group breaking into this new coding
>>>> territory!
>>>> http://sel.as-us.falkag.net/sel?
>>>> cmd=lnk&kid=110944&bid=241720&dat=121642
>>>> _______________________________________________
>>>> Smlnj-list mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/smlnj-list
>>>>
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> This SF.Net email is sponsored by xPML, a groundbreaking
>>> scripting language
>>> that extends applications into web and mobile media. Attend the
>>> live webcast
>>> and join the prime developer group breaking into this new coding
>>> territory!
>>> http://sel.as-us.falkag.net/sel?
>>> cmd=lnk&kid=110944&bid=241720&dat=121642
>>> _______________________________________________
>>> Smlnj-list mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/smlnj-list
>>
>>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> that extends applications into web and mobile media. Attend the
> live webcast
> and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Smlnj-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/smlnj-list
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642