Personal tools
You are here: Home Forum Install & build Salome 3.2.2 on Mandriva 2006 - Error building SWIG

Salome 3.2.2 on Mandriva 2006 - Error building SWIG

Up to Install & build
  • Salome 3.2.2 on Mandriva 2006 - Error building SWIG

    Posted by ArnoldH at October 08. 2006
      Hi everybody,

    when installing salome 3.2.2, the follwoing error occurs when installing SWIG:
    /tmp/INSTALLWORK4872/SWIG-1.3.24 -> make >> /opt/salome_3.2.2/SWIG-1.3.24/MAKE.LOG
    /usr/bin/ld: cannot find -lstdc++
    collect2: ld returned 1 exit status
    make[2]: *** [eswig] Error 1
    make[1]: *** [all] Error 2
    make: *** [source] Error 2
    • Re: Salome 3.2.2 on Mandriva 2006 - Error building SWIG

      Posted by ArnoldH at October 08. 2006
      Problem solved. I somehow had an issue with my c++ installation. The only problem I am still having is posted in http://www.salome-platform.org/forum/forum_9/thread_498. Hopefully somebody can help me over there. regards, Arnold
      • Re: Salome 3.2.2 on Mandriva 2006 - Error building SWIG

        Posted by Hernan Dario Guerrero at March 18. 2008
        Hi people,
        Im installing Salome 3.2.6 in debian 32bits (in chroot mode), but, the next error always is present when install swig package:

        DOH/base.c: In function 'DohCall':
        DOH/base.c:858: warning: ISO C forbids conversion of object pointer to function pointer type
        DOH/fio.c: In function 'DohEncoding':
        DOH/fio.c:50: warning: ISO C forbids conversion of function pointer to object pointer type
        DOH/fio.c: In function 'encode':
        DOH/fio.c:63: warning: ISO C forbids conversion of object pointer to function pointer type
        DOH/hash.c: In function 'Hash_str':
        DOH/hash.c:390: warning: overflow in implicit constant conversion
        DOH/list.c: In function 'List_str':
        DOH/list.c:245: warning: overflow in implicit constant conversion
        DOH/memory.c: In function 'DohIntern':
        DOH/memory.c:100: warning: overflow in implicit constant conversion
        Modules/allegrocl.cxx:101: warning: non-local variable ' defined_foreign_types' uses anonymous type
        /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4
        .2.3/libstdc++.so when searching for -lstdc++
        /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.2.3/libstdc++.a when searching for -lstdc++
        /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.2.3/libstdc++.so when searching for -lstdc++
        /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.2.3/libstdc++.a when searching for -lstdc++
        /usr/bin/ld: cannot find -lstdc++
        collect2: ld returned 1 exit status
        make[2]: *** [eswig] Error 1
        make[1]: *** [all] Error 2
        make: *** [source] Error 2

        I think that I have all requierements that the program need.
        Can somebody help me, please?
        Hernan
        • Re: Salome 3.2.2 on Mandriva 2006 - Error building SWIG

          Posted by Adam Powell at March 18. 2008
          It sounds like you're trying to install a binary swig which doesn't link properly with the Debian libstdc++.

          If you're installing on Debian lenny, why not try my package?  It's at: http://lyre.mit.edu/~powell/salome/ and you should use the -4 version (-5 and -6 are incomplete attempts to build with omniORB 4.1).  It uses native Debian versions of swig, netgen, Qt, everything, so it should not have this problem.

          On the other hand, it doesn't currently build because of sip4 bug 469850, http://bugs.debian.org/469850 .  Though you should be able to install and use the included 64-bit packages on a 64-bit platform.

          I welcome all feedback.
          • Re: Salome 3.2.2 on Mandriva 2006 - Error building SWIG

            Posted by Hernan Dario Guerrero at March 21. 2008
            Hi,
            Now, I m trying install salome 3.2.6 in Debian 64 bits, I have been installed it without error but when I launched it, the next error is present:

            hdgc@debian:/salome/KERNEL_3.2.6$ runSalome
            Traceback (most recent call last):
              File "/salome/KERNEL_3.2.6/bin/salome/runSalome.py", line 23, in ?
                import orbmodule
              File "/salome/KERNEL_3.2.6/bin/salome/orbmodule.py", line 21, in ?
                from omniORB import CORBA
            ImportError: No module named omniORB
             
            What's going on?
            I have all packages that program need (I think).  Unfortunately, I cant use your package, dependency problems.
            Thanks for your help Alan.
            • Re: Salome 3.2.2 on Mandriva 2006 - Error building SWIG

              Posted by Adam Powell at March 25. 2008
              I'm sorry, the salome package is indeed missing dependencies.  You need omniorb 4.0.x and python-omniorb 2.6.  The source packages are in http://lyre.mit.edu/~powell/salome/build-deps/ and I am building them now.

              I am working on porting salome to omniORB 4.1.x and sip 4.7.4 so it will build in Debian unstable.  See recent debian-science list archives for the latest updates in that effort.
Powered by Ploneboard
Document Actions