Results 1 to 5 of 5

Thread: Ice 3.3.1 slice2cpp error with symlinks

  1. #1
    hawesie is offline Registered User
    Name: Nick Hawes
    Organization: University of Birmingham
    Project: Robotics middleware
    Join Date
    Mar 2009
    Posts
    4

    Ice 3.3.1 slice2cpp error with symlinks

    Using an install of 3.3.1 compiled from source on Mac OS X when I issue a slice2cpp command with a symlinked path to the slice file I get an error. E.g.

    vonnegut:cast nah$ slice2cpp -I/Users/nah/cast/src/slice --stream --header-ext hpp --output-dir /Users/nah/cast/src/c++/cast/slice /Users/nah/cast/src/slice/CDL.ice
    Assertion failed: (_definitionContextStack.size() == 1), function parse, file Parser.cpp, line 5512.
    Abort trap

    But, with just the relative normal path to the ice file it all works

    vonnegut:cast nah$ slice2cpp -I/Users/nah/cast/src/slice --stream --header-ext hpp --output-dir /Users/nah/cast/src/c++/cast/slice src/slice/CDL.ice

    I can work around it for now, but it seems pretty odd!

  2. #2
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    I tried this with a simple example and could not reproduce the problem.

    Could you post the exact file paths and symlink paths, as well as the content of the Slice files? Alternatively, if you have a self-contained example that shows the problem, that would be great too.

    Thanks,

    Michi.

  3. #3
    hawesie is offline Registered User
    Name: Nick Hawes
    Organization: University of Birmingham
    Project: Robotics middleware
    Join Date
    Mar 2009
    Posts
    4
    I've done a bit more digging and here's the problem in more detail. The full (dumb... excuse my disorganised filesystem!) absolute path to the Slice file is

    /Users/nah/Documents/code/cosy.svn/development/cast/trunk/tools/cast/src/slice/CDL.ice

    The directory I use as the root for my work is

    /Users/nah/Documents/code/cosy.svn/development/cast/trunk/tools/cast

    I have two symlinks that I use to get to this:

    ln -s /Users/nah/Documents/code/cosy.svn ~/svn.cosy

    and

    ln -s ~/svn.cosy/development/cast/trunk/tools/cast ~/cast

    (note that the second link requires the first one)

    Given this setup the command slice2cpp gives the error like:

    vonnegut:~ nah$ slice2cpp /Users/nah/cast/src/slice/CDL.ice
    Assertion failed: (_definitionContextStack.size() == 1), function parse, file Parser.cpp, line 5512.
    Abort trap


    BUT if I replace the ~/cast symlink with

    ln -s Documents/code/cosy.svn/development/cast/trunk/tools/cast ~/cast

    (i.e. this now does not depend on the intermediate symlink)

    then the error does not occur. So it seems like the intermediate link (which I really shouldn't need anyway) causes the problem. This did not happen with 3.3.0 (the only other version of Ice I've used).

    I've put the Slice file here:

    http://www.cs.bham.ac.uk/~nah/cast/CDL.ice

    If you need more information, just let me know.

  4. #4
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    I managed to reproduce the problem, thanks. We already published a patch for this issue.

    Cheers,

    Michi.

  5. #5
    cholzhausen is offline Registered User
    Name: Chris Holzhausen
    Organization: Analytical Engineering Inc.
    Project: Project GINA
    Join Date
    Oct 2009
    Posts
    3
    Hello Michi,

    I have upgraded to 3.3.1 and added the patch that you have specified, and I am still receiving the error that was mentioned in this thread. I can get rid of the error if I remove the multiple '/' from my Makefile for the slice2cpp command. I running on a linux machine.

    Thanks,
    Chris

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. slice2cpp --dll-export error
    By xdm in forum Bug Reports
    Replies: 1
    Last Post: 11-06-2006, 08:37 AM
  2. slice2cpp error
    By JimSec in forum Bug Reports
    Replies: 1
    Last Post: 08-16-2006, 01:05 PM
  3. slice2cpp Printer.ice error?
    By ificanfly in forum Help Center
    Replies: 1
    Last Post: 07-31-2006, 08:26 AM
  4. Compile error, slice2cpp, VC7
    By Kaos in forum Help Center
    Replies: 2
    Last Post: 05-06-2004, 11:22 AM
  5. Replies: 1
    Last Post: 11-07-2003, 07:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •