Results 1 to 9 of 9

Thread: Build problem in Ice-3.3.1

  1. #1
    ctennis is offline Registered User
    Name: Caleb Tennis
    Organization: AEI
    Project: Project GINA
    Join Date
    Mar 2006
    Posts
    123

    Build problem in Ice-3.3.1

    Not sure what's going wrong here, trying to build Ice 3.3.1 and getting this build error when it gets to the cpp/Ice directory:

    Code:
    rm -f ../../include/Ice/BuiltinSequences.h BuiltinSequences.cpp
    
    ../../bin/slice2cpp --ice --include-dir Ice --dll-export ICE_API -I../../../slice --stream ../../../slice/Ice/BuiltinSequences.ice
    
    terminate called after throwing an instance of 'IceUtil::NullHandleException'
      what():  ../../include/IceUtil/Handle.h:46: IceUtil::NullHandleException
    make: *** [BuiltinSequences.cpp] Aborted
    Anyone else seen this?
    Caleb Tennis
    Analytical Engineering, Inc.
    http://www.aei-tech.com
    Project: Our facility infrastructure heavily utilizes Ice

    Gentoo ebuild maintainer for Ice, IceRuby, etc.

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Hi Caleb,

    Can you get us a stack trace?

    It would also be good for us to know your operating system and compiler versions.

    Thanks,
    Mark

  3. #3
    ctennis is offline Registered User
    Name: Caleb Tennis
    Organization: AEI
    Project: Project GINA
    Join Date
    Mar 2006
    Posts
    123
    This is on a Gentoo setup, gcc 4.1.2

    I tried again, this time downloading a fresh copy, going into the dir, and just typing "make". Slightly different error this time:

    rm -f ../../include/Ice/BuiltinSequences.h BuiltinSequences.cpp

    Code:
    ../../bin/slice2cpp --ice --include-dir Ice --dll-export ICE_API -I../../../slice --stream ../../../slice/Ice/BuiltinSequences.ice
    
    slice2cpp: Parser.cpp:5512: int Slice::Unit::parse(const std::string&, FILE*, bool, Slice::FeatureProfile): Assertion `_definitionContextStack.size() == 1' failed.
    The backtrace for this error is:

    #0 0xb7f91416 in __kernel_vsyscall ()
    #1 0xb7b4db91 in raise () from /lib/libc.so.6
    #2 0xb7b4f378 in abort () from /lib/libc.so.6
    #3 0xb7b46f25 in __assert_fail () from /lib/libc.so.6
    #4 0xb7ebb1f3 in Slice::Unit:arse (this=0x9bae978, filename=@0x9bae018, file=0x9bae810, debug=false, profile=Slice::Ice)
    at Parser.cpp:5512
    #5 0x080be30b in main (argc=9, argv=0xbfdac274) at Main.cpp:210

    I'll keep diving in to see what's going on.
    Caleb Tennis
    Analytical Engineering, Inc.
    http://www.aei-tech.com
    Project: Our facility infrastructure heavily utilizes Ice

    Gentoo ebuild maintainer for Ice, IceRuby, etc.

  4. #4
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruña, Spain
    Posts
    588
    Hi Caleb,

    I have build Ice-3.3.1 on Gentoo

    gcc -v
    Code:
    Using built-in specs.
    Target: i686-pc-linux-gnu
    Configured with: /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.2 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --disable-libgcj --with-arch=i686 --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
    Thread model: posix
    gcc version 4.1.2 (Gentoo 4.1.2 p1.1)
    I could not reproduce the problem you are seeing, are you using the correct mcpp version? 2.7.2 is required as Ice-3.3.1

    Regards,
    José

  5. #5
    ctennis is offline Registered User
    Name: Caleb Tennis
    Organization: AEI
    Project: Project GINA
    Join Date
    Mar 2006
    Posts
    123
    Yep, that was it. I only had 2.7. Thanks for the insight. I missed it in the INSTALL.LINUX file.
    Caleb Tennis
    Analytical Engineering, Inc.
    http://www.aei-tech.com
    Project: Our facility infrastructure heavily utilizes Ice

    Gentoo ebuild maintainer for Ice, IceRuby, etc.

  6. #6
    borax00 is offline Registered User
    Name: Alex Brooks
    Organization: Marathon Robotics
    Project: www.marathon-robotics.com
    Join Date
    Oct 2005
    Posts
    56
    Hi,

    I'm seeing what appears to be an identical problem: when slice2cpp runs I see:

    slice2cpp: Parser.cpp:5512: int Slice::Unit:arse(const std::string&, FILE*, bool, Slice::FeatureProfile): Assertion `_definitionContextStack.size() == 1' failed.

    However I'm using mcpp version 2.7.2 (which I build from source, the debian packages are older). My setup is as follows:

    Debian linux [stable (lenny)]

    $ gcc --version
    gcc-4.3 (Debian 4.3.2-1.1) 4.3.2
    $ mcpp -v
    MCPP V.2.7.2 (2008/11) compiler-independent-build compiled by GCC V.4.3
    Include paths are as follows --
    /usr/local/include/
    /usr/include/
    $ ls /usr/local/lib/libmcpp.*
    /usr/local/lib/libmcpp.a /usr/local/lib/libmcpp.so /usr/local/lib/libmcpp.so.0.3.0
    /usr/local/lib/libmcpp.la /usr/local/lib/libmcpp.so.0
    $ ldd `which slice2cpp`
    linux-gate.so.1 => (0xb7f31000)
    libSlice.so.33 => /opt/Ice-3.3/lib/libSlice.so.33 (0xb7d8f000)
    libIceUtil.so.33 => /opt/Ice-3.3/lib/libIceUtil.so.33 (0xb7d2d000)
    libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7cfd000)
    librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb7cf4000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7c06000)
    libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7be0000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7bd3000)
    libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7a77000)
    libmcpp.so.0 => /usr/local/lib/libmcpp.so.0 (0xb79f1000)
    /lib/ld-linux.so.2 (0xb7f32000)


    Any ideas?


    Alex
    Alex Brooks
    Marathon Robotics
    www.marathon-robotics.com

  7. #7
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    Hi Alex,

    What are the contents of your Slice file?

  8. #8
    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
    This looks like the mcpp problem we already posted a patch for. Could check whether that patch fixes it?

    Cheers,

    Michi.

  9. #9
    borax00 is offline Registered User
    Name: Alex Brooks
    Organization: Marathon Robotics
    Project: www.marathon-robotics.com
    Join Date
    Oct 2005
    Posts
    56
    Yes, this patch seems to fix the problem.

    Thanks!
    Alex Brooks
    Marathon Robotics
    www.marathon-robotics.com

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. IcePy-2.0.0 build problem on AIX
    By zephyr007 in forum Help Center
    Replies: 2
    Last Post: 01-16-2005, 05:11 AM
  2. Unable to build demoj using supplied build.xml files
    By vsonnathi in forum Bug Reports
    Replies: 1
    Last Post: 10-21-2004, 12:34 PM
  3. Replies: 0
    Last Post: 08-25-2004, 09:21 AM
  4. Build problem on Linux
    By Jeff Holle in forum Help Center
    Replies: 5
    Last Post: 08-13-2003, 12:21 AM
  5. problem to build demos with VC 6.0
    By jxie in forum Help Center
    Replies: 5
    Last Post: 07-20-2003, 11:43 PM

Posting Permissions

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