Re: compiling smlnj
brian <briand-/[email protected]> Mon, 1 Dec 2008 20:23:40 -0800
| Newsgroups | gmane.comp.lang.sml.smlnj |
|---|---|
| Message-ID | <[email protected]> |
On Dec 1, 2008, at 3:30 PM, Jon Riehl wrote:
>
>
> This is a problem with a library in the 110.68 distribution. Matthias
> Blume was able to work around this by rebuilding everything. From an
> email he CC'ed me:
>
> - download and untar all the source tarballs
> - then (after doing config/install.sh once) go to base/system
> - then run ./fixpt
> - then get rid of all the sml*.{bin,boot}.* directories except the
> "last" one (in my case sml1.{bin,boot}.x86-unix)
> - then rename these "last" directories back to sml.{bin,boot}.x86-
> unix
> - then run ./makeml
> - then run rm -r ../../lib/* ../../bin/.heap/*
> - then run ./installml
> - then cd back to ../..
> - then run (again) config/install.sh
>
> I'll make sure this is fixed in the 110.69 distribution. Hope this
> helps.
>
Thanks for the info, but I'm unsure of how to take advantage of it.
Do I need to do this once, or everytime I touch something in the
source tree ?
Speaking of the source tree, it's not at all obvious why touching
code in smlnj-lib, for example should require the whole shootin'
match to be recompiled. Isn't that what .cm is designed to prevent ??
Meanwhile, back at the computer, config/install.sh fixed it. If I do
the above, will I still need to run config/install.sh ?
So either way, happy days, I can compiler hack :-)
Brian
> Thanks,
> -Jon
>
> On Sun, Nov 30, 2008 at 9:12 PM, brian <briand-/[email protected]> wrote:
>> So in my attempt to mod sml -nj I had a few problems, so I downloaded
>> 110.68 and started from scratch.
>> I modified Unix/os-path.sml and re-compiled.
>>
>> Now I get the following error, and I think this only occurs for nl-
>> ffi, but I'm no positive.
>>
>> library $c/internals/c-int.cm is stable]
>> Error: Compiler bug: UnpickMod: stub lookup failed
>> /usr/local/smlnj/bin/sml: Fatal error -- Uncaught exception Error
>> with 0
>>
>>
>> Naturally I'm going to start over, however I'm wondering if someone
>> might have a clue as to what went wrong with the build process that I
>> would get this error.
>>
>> Thanks.
>>
>> Brian
>>
>>
>> ---------------------------------------------------------------------
>> ----
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win
>> great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in
>> the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Smlnj-list mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/smlnj-list
>>
>
> ----------------------------------------------------------------------
> ---
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win
> great prizes
> Grand prize is a trip for two to an Open Source event anywhere in
> the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Smlnj-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/smlnj-list
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/