[Vm-dev] Strange error while building stack vm

Mariano Martinez Peck marianopeck at gmail.com
Thu Dec 30 10:26:24 UTC 2010


Igor, I could compile StackVM without fatal errors in Mac. JUst in case, I
am using GCC 4.2 and compiling from XCode.

cheers

mariano

On Thu, Dec 30, 2010 at 11:22 AM, Igor Stasenko <siguctua at gmail.com> wrote:

>
> On 30 December 2010 10:53, John McIntosh
> <johnmci at smalltalkconsulting.com> wrote:
> >
> > The mac OS tree is not certified to work or even compile with the cog
> > vm. In fact you should know that any vm built with the Mac OS tree and
> > submitted to the osx app store will be rejected by apple
> >
>
> Well but at least once it was built by Eliot? No?
> Because otherwise, why is it there, if not for building against it? :)
>
> I doubt that there is something wrong with Mac OS tree,
> okay.. the headers could be a little bit different, but
> i compiling the gcc3x-interp.c which have little to do with Mac OS tree,
> since its a generated StrackInterpreter code.
>
> As to me, it looks like bug in GCC (because error is FATAL).
>
>
> > On 12/30/10, Igor Stasenko <siguctua at gmail.com> wrote:
> >>
> >> (warnings are supressed)
> >>
> >> In file included from
> >> /Users/sig/projects/cog/sig-cog/build/../platforms/Mac
> >> OS/vm/Developer/sqGnu.h:46,
> >>                  from
> >> /Users/sig/projects/cog/sig-cog/src/vm/gcc3x-interp.c:20:
> >> /Users/sig/projects/cog/sig-cog/src/vm/gcc3x-interp.c: At top level:
> >> /Users/sig/projects/cog/sig-cog/src/vm/gcc3x-interp.c: At top level:
> >> /Users/sig/projects/cog/sig-cog/src/vm/gcc3x-interp.c:15490: note:
> >> ‘theIP’ was declared here
> >> /Users/sig/projects/cog/sig-cog/src/vm/gcc3x-interp.c:34730: note:
> >> ‘hdrTypeBits’ was declared here
> >> /Users/sig/projects/cog/sig-cog/src/vm/gcc3x-interp.c:14690: note:
> >> ‘hdrTypeBits’ was declared here
> >> /Users/sig/projects/cog/sig-cog/src/vm/gcc3x-interp.c:35424: note:
> >> ‘freeChunkSize’ was declared here
> >> /Users/sig/projects/cog/sig-cog/src/vm/gcc3x-interp.c:35311: note:
> >> ‘freeChunkSize’ was declared here
> >>
> /var/folders/kE/kEXZB7BWHXWwxswd6aL4XU+++TM/-Tmp-//ccIxqx9C.s:143250:FATAL:Symbol
> >> L0bereaveAllMarriedContexts already defined.
> >>
> >>
> >> i found the only use of it in generated code:
> >>
> >> voidVMStateForSnapshot(void) {
> >> DECL_MAYBE_SQ_GLOBAL_STRUCT
> >>     sqInt activeContext;
> >>     sqInt header;
> >>     sqInt oop;
> >>     sqInt sz;
> >>
> >>         activeContext = divorceAllFrames();
> >>         /* begin bereaveAllMarriedContexts */
> >>         VM_LABEL(0bereaveAllMarriedContexts);
> >>
> >>
> >> but gcc insists that there are another one???
> >>
> >> --
> >> Best regards,
> >> Igor Stasenko AKA sig.
> >>
> >
> >
> > --
> >
> ===========================================================================
> > John M. McIntosh <johnmci at smalltalkconsulting.com>
> > Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
> >
> ===========================================================================
> >
>
>
>
> --
> Best regards,
> Igor Stasenko AKA sig.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20101230/78c343ba/attachment-0001.htm


More information about the Vm-dev mailing list