Personal tools
You are here: Home Forum Install & build Salome 3.2.2 on Gentoo

Salome 3.2.2 on Gentoo

Up to Install & build
  • Salome 3.2.2 on Gentoo

    Posted by Daniel Tourde - Caelae.se at October 23. 2006
    Hello,

    I am trying to compile Salome-kernel 3.2.2 on my gcc-4.1.1, glibc-2.4 Gentoo x86 box
    I use a homebrewed OpenCascade-6.1 ebuild (It's on bugs.gentoo.org) and when I compile by hand kernel, I get the following error:
     g++ "-DPACKAGE_NAME=\"Salome2 Project\"" -DPACKAGE_TARNAME=\"salome\" -DPACKAGE_VERSION=\"3.2.2\" "-DPACKAGE_STRING=\"Salome2 Project 3.2.2\"" -DPACKAGE_BUGREPORT=\"gboulant@CS\" -DPACKAGE=\"salome\" -DVERSION=\"3.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBDL=1 -DHAVE_LIBRT=1 -DHAVE_LIBM=1 -DHAVE_NAMESPACES= -DHAVE_PTHREAD=1 -D__x86__=1 -D__linux__=1 -D__OSVERSION__=1 -DOMNIORB=1 -DCORBA_HAVE_POA=1 -DCORBA_ORB_INIT_HAVE_3_ARGS=1 -DCORBA_ORB_INIT_THIRD_ARG=\"omniORB\" -DRM=\"/usr/bin/rm\" -DSH=\"/bin/sh\" -DCP=\"/usr/bin/cp\" -DRSH=\"/usr/bin/rsh\" -DRCP=\"/usr/bin/rcp\" -DSSH=\"/usr/bin/ssh\" -DSCP=\"/usr/bin/scp\" -I. -I. -DOCC_VERSION_MAJOR=6 -DOCC_VERSION_MINOR=1 -DOCC_VERSION_MAINTENANCE=0 -DLIN -DLINTEL -DCSFDB -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DHAVE_WOK_CONFIG_H -DNO_CXX_EXCEPTION -I/usr/opencascade-6.1/ros//inc -funsigned-char -DHAVE_SOCKET -g -D_DEBUG_ -Wno-deprecated -Wparentheses -Wreturn-type -Wunused -pthread -MT libCASCatch_la-CASCatch_Failure.lo -MD -MP -MF .deps/libCASCatch_la-CASCatch_Failure.Tpo -c CASCatch_Failure.cxx  -fPIC -DPIC -o .libs/libCASCatch_la-CASCatch_Failure.o
    In file included from /usr/opencascade-6.1/ros//inc/Standard_Stream.hxx:10,
                     from /usr/opencascade-6.1/ros//inc/Standard_TypeDef.hxx:22,
                     from /usr/opencascade-6.1/ros//inc/Standard_Address.hxx:16,
                     from /usr/opencascade-6.1/ros//inc/Standard.hxx:28,
                     from /usr/opencascade-6.1/ros//inc/Handle_Standard_Transient.hxx:4,
                     from /usr/opencascade-6.1/ros//inc/Standard_Transient.hxx:5,
                     from CASCatch_Failure.hxx:23,
                     from CASCatch_Failure.cxx:20:
    /usr/opencascade-6.1/ros//inc/config.h:287:1: warning: "PACKAGE" redefined
    :1:1: warning: this is the location of the previous definition
    /usr/opencascade-6.1/ros//inc/config.h:290:1: warning: "PACKAGE_BUGREPORT" redefined
    :1:1: warning: this is the location of the previous definition
    /usr/opencascade-6.1/ros//inc/config.h:293:1: warning: "PACKAGE_NAME" redefined
    :1:1: warning: this is the location of the previous definition
    /usr/opencascade-6.1/ros//inc/config.h:296:1: warning: "PACKAGE_STRING" redefined
    :1:1: warning: this is the location of the previous definition
    /usr/opencascade-6.1/ros//inc/config.h:299:1: warning: "PACKAGE_TARNAME" redefined
    :1:1: warning: this is the location of the previous definition
    /usr/opencascade-6.1/ros//inc/config.h:302:1: warning: "PACKAGE_VERSION" redefined
    :1:1: warning: this is the location of the previous definition
    /usr/opencascade-6.1/ros//inc/config.h:337:1: warning: "VERSION" redefined
    :1:1: warning: this is the location of the previous definition
    CASCatch_Failure.cxx: In function 'Handle_Standard_Type& CASCatch_Failure_Type_()':
    CASCatch_Failure.cxx:27: error: 'Standard_Transient_Type_' was not declared in this scope
    make[2]: *** [libCASCatch_la-CASCatch_Failure.lo] Error 1
    make[2]: Leaving directory `/home/ted/Desktop/salome3.2.2_SRC/KERNEL/src/CASCatch'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/ted/Desktop/salome3.2.2_SRC/KERNEL/src'
    make: *** [all-recursive] Error 1

    Any idea?

    Daniel
    • Re: Salome 3.2.2 on Gentoo

      Posted by Daniel Tourde - Caelae.se at October 23. 2006
      Same problem with 3.2.1...

      Daniel
      • Re: Salome 3.2.2 on Gentoo

        Posted by Erwan ADAM at October 24. 2006
        Hello Daniel,

        I've upload on ftp://ftp.cea.fr/incoming/y2k01/adam the files :

        ncftp /incoming/y2k01/adam > dir
        -rwxrwxr--   1 9000         6993   oct 24 10:24   CASCADE_6.1.0_gcc4.1.patch
        -rwxrwxr--   1 9000          625   oct 24 10:24   INSTALL
        -rwxrwxr--   1 9000       134534   oct 24 10:25   patches_from_V3.2.2.tgz

        The INSTALL file is a list of commands to install CASCADE.
        The patchs from 3.2.2 allow to generate my salome current version
        with patches for gcc4.1 or for 64 bits architectures.

        Caution : Those files remains only one week.

        Regards,

                       E.A.

        • Re: Salome 3.2.2 on Gentoo

          Posted by Daniel Tourde - Caelae.se at October 28. 2006
          ADAM Erwan wrote:
          Hello Daniel,

          I've upload on ftp://ftp.cea.fr/incoming/y2k01/adam the files :

          ncftp /incoming/y2k01/adam > dir
          -rwxrwxr--   1 9000         6993   oct 24 10:24   CASCADE_6.1.0_gcc4.1.patch
          -rwxrwxr--   1 9000          625   oct 24 10:24   INSTALL
          -rwxrwxr--   1 9000       134534   oct 24 10:25   patches_from_V3.2.2.tgz

          The INSTALL file is a list of commands to install CASCADE.
          The patchs from 3.2.2 allow to generate my salome current version
          with patches for gcc4.1 or for 64 bits architectures.

          Caution : Those files remains only one week.

          Regards,

                         E.A.


          Salut Erwan,

          Thanks for the patches. I am experimenting at the moment. Apparently my problem originated from the fact that I did not use the patch to get OpenCascade built on gcc-4.1.1 but some additional gcc flags. I have modified my ebuild now and will rebuild OpenCascade (6 hours... :( ) on my box.

          Daniel
        • Re: Salome 3.2.2 on Gentoo

          Posted by Daniel Tourde - Caelae.se at March 25. 2007
          ADAM Erwan wrote:
          Hello Daniel,

          I've upload on ftp://ftp.cea.fr/incoming/y2k01/adam the files :

          ncftp /incoming/y2k01/adam > dir
          -rwxrwxr--   1 9000         6993   oct 24 10:24   CASCADE_6.1.0_gcc4.1.patch
          -rwxrwxr--   1 9000          625   oct 24 10:24   INSTALL
          -rwxrwxr--   1 9000       134534   oct 24 10:25   patches_from_V3.2.2.tgz

          The INSTALL file is a list of commands to install CASCADE.
          The patchs from 3.2.2 allow to generate my salome current version
          with patches for gcc4.1 or for 64 bits architectures.

          Caution : Those files remains only one week.

          Regards,

                         E.A.

          Salut Erwan,

          Do you happen to have a similar patch for OpenCascade 6.2?

          Daniel
          • Re: Salome 3.2.2 on Gentoo

            Posted by Michael Andrews at August 05. 2007
            I'm posting this mostly to remind myself.  I didn't solve it, I found it in the OpenCascade forums.

            Here's what I had to do after running the installer (another story entirely):

            cd /opt/Salome-3.2.6
            cd KERNEL_BUILD
            CXXFLAGS="-ffriend-injection -fpermissive" ../KERNEL_SRC_3.2.6/configure --prefix=/opt/Salome-3.2.6/KERNEL-3.2.6
            make
            make install

            • Re: Salome 3.2.2 on Gentoo

              Posted by Dan Popov at February 21. 2008
              Michael Andrews wrote:
              I'm posting this mostly to remind myself.  I didn't solve it, I found it in the OpenCascade forums.


              Hello Michael,

              thx for this post. Not only it served to remind you but helped me a lot, too =)
Powered by Ploneboard
Document Actions