State of SVN head (revision 9354)

3 messages Options
Embed this post
Permalink
Phil Malin-3

State of SVN head (revision 9354)

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hi all.

I was wondering what the state of the latest branch in SVN was (revision 9354).  I tried to compile and got the following error:

****** Error: Forbidden creation call (i.e. exportation rules
violated). Creation is only allowed from {RECYCLING_POOL}.

The source lines involved by the message are the following:

Line 303 column 4 in FAST_ARRAY (/home/psm/lib/SmartEiffel/lib/storage/collection/fast_array.e):
         create Result.make(max - min + 1)
         ^                               
Line 36 column 11 in RECYCLING_POOL (/home/psm/lib/SmartEiffel/lib/storage/low_level/recycling_pool.e):
creation {RECYCLING_POOL}
          ^             
Line 13 column 12 in STACK (/home/psm/lib/SmartEiffel/lib/storage/stack.e):
         make as collection_make


I tried modding the class RECYCLING_POOL to allow anyone to use 'collection_make' as a creation routine but then got another low-level error.

Is the latest revision not yet fit for consumption?

Thanks,
Phil.

Cyril ADRIAN

Re: State of SVN head (revision 9354)

Reply Threaded More More options
Print post
Permalink
Hi Phil,

On Fri, Feb 27, 2009 at 5:47 AM, Phil Malin <[hidden email]> wrote:
I tried modding the class RECYCLING_POOL to allow anyone to use 'collection_make' as a creation routine but then got another low-level error.

I know that error, it happens when SE 2.3 tries to compile the new RECYCLING_POOL. My guess: you are trying to update to the current svn using SE 2.3 as germ?

I'm afraid you'll have to compile the new germ first. You'll find it in $SE/work/germ

Hope it helps

Best regards,
--
Cyril ADRIAN

http://www.cadrian.net/~cyril
Phil Malin-3

Re: State of SVN head (revision 9354)

Reply Threaded More More options
Print post
Permalink
Hi Cyril.

Thanks for that.  The funny thing was that I could compile/install the latest revision - it was only when I went to use it that I got this error.

It turns out the issue was what you said but my .serc was the problem.  The way I install SmartEiffel is to have directories called SmartEiffel-2.3, etc., and create a symbolic link SmartEiffel to point to whichever version I want to use.  However, when I run an install the path directories that get put into the serc file are resolved to their actual ones, so my .serc was pointing to some 2.3 lib directories.  Resolving these fixed the problem.

Thanks for the help.

Cheers,
Phil.


2009/2/27 Cyril ADRIAN <[hidden email]>
Hi Phil,

On Fri, Feb 27, 2009 at 5:47 AM, Phil Malin <[hidden email]> wrote:
I tried modding the class RECYCLING_POOL to allow anyone to use 'collection_make' as a creation routine but then got another low-level error.

I know that error, it happens when SE 2.3 tries to compile the new RECYCLING_POOL. My guess: you are trying to update to the current svn using SE 2.3 as germ?

I'm afraid you'll have to compile the new germ first. You'll find it in $SE/work/germ

Hope it helps

Best regards,
--
Cyril ADRIAN

http://www.cadrian.net/~cyril