Personal tools
You are here: Home Forum Install & build Failed to compile Kernel on FC3

Failed to compile Kernel on FC3

Up to Install & build
  • Failed to compile Kernel on FC3

    Posted by Christophe Trophime at December 14. 2005
    I am trying to install Salome on FC3 with the corresponding rpms

    gcc-3.4.4-2.fc3
    gcc-c++-3.4.4-2.fc3
    python-2.3.4-13.1
    tcl-8.4.7-2
    tk-8.4.7-2
    qt-3.3.4-0.fc3.0
    boost-1.32.0-5.fc3
    hdf5-1.6.4-4.fc3
    med-2.2.3-1 (from code aster)
    swig-1.3.21-6
    sip-4.1-1
    PyQt-3.13-1
    qwt-4.2.0-1 (from http://sourceforge.net/projects/qwt)
    vtk-4.2.2-5fc3 (from Mandrake)
    graphviz-2.2-3
    python-numeric-23.3-2
    doxygen-1.4.4-0.fc3.1
    happydoc-2.1-1 (self built )
    netgen-4.3.1-1fc3 (self built )
    omniorb-4.0.6-fc3 (from Mandrake)
    omniorbpy-2.6-fc3 (from Mandrake)

    My configuration file (env_products.csh ) looks like:

    setenv INSTALL_ROOT /usr/local/salome

    #------ Python ------
    setenv PYTHONHOME /usr
    setenv PYTHON_INCLUDE ${PYTHONHOME}/include/python2.3
    setenva PYTHONPATH ${PYTHONHOME}/lib/python2.3
    setenva PATH ${PYTHONHOME}/bin
    setenva LD_LIBRARY_PATH ${PYTHONHOME}/lib/python2.3

    setenv QTDIR /usr/lib/qt-3.3

    setenv BOOSTDIR /usr
    setenv HDF5HOME /usr
    setenv MED2HOME /usr
    setenv VTKHOME /usr
    setenv QWTHOME /usr/lib/qt-3.3

    #------ OpenCascade ------
    setenv CASROOT ${INSTALL_ROOT}/CAS-5.2

    I had to pach some m4 files in KERNEL_SRC_2.2.2 (check_qt.m4, check_qwt.m4) to have the configure script to run correctly (ie detecting all required packages). But running the build.csh script I end up with the following error:

    Processing KERNEL module
    ------- Make --------------------
    make[3]: *** No rule to make target `Standard_ErrorHandler.hxx', needed by `CASCatch_SignalsHandler.lo'.  Stop.
    make[2]: *** [lib_CASCatch] Error 2
    make[1]: *** [lib_src] Error 2
    make: *** [all] Error 2

    No idea how to work around this error.
    Any help is welcome.
    Thanks

    • Re: Failed to compile Kernel on FC3

      Posted by Christophe Trophime at December 14. 2005
      Restarting with: ./build.csh -d -b KERNEL solved the problem mentionned in my previous mail

      Following a previous post about installing Salome on Debian I remove PatchQT from Makefile.in
      Then I run into some c++ compilation error due to g++ 3.4 :

      In file included from /usr/local/salome/KERNEL_SRC_2.2.2/src/MEDWrapper/Base/MED_Structures.hxx:32,                 from /usr/local/salome/KERNEL_SRC_2.2.2/src/MEDWrapper/Base/MED_Structures.cxx:9:
      MEDWrapper/Base/MED_Common.hxx: In member function `MED::SharedPtr::operator const T&() const':
      MEDWrapper/Base/MED_Common.hxx:81: error: there are no arguments to `get' that depend on a template parameter, so a declaration of `get' must be availableMEDWrapper/Base/MED_Common.hxx:81: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)MEDWrapper/Base/MED_Common.hxx: In member function `MED::SharedPtr::operator T&()':
      MEDWrapper/Base/MED_Common.hxx:86: error: theline 81: re are no arguments to `get' that depend on a template parameter, so a declaration of `get' must be availableMEDWrapper/Base/MED_Common.hxx: In member function `typename MED::ConstSliceArray::TValue& MED::SliceArray::operator[](size_t)':
      MEDWrapper/Base/MED_Common.hxx:146: error: there are no arguments to `GetID' that depend on a template parameter, so a declaration of `GetID' must be available

      I made the following changes to MEDWrapper/Base/MED_Common.hxx
      line 81: return *get(); -> return *boost::shared_ptr::get();
      line 86: same
       line 146:     return myContainer[GetID(theId)];  --> return myContainer[ConstSliceArray::GetID(theId)];


      Then I am stuck with the following errors:

      MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx: In function `med_2_1::med_err med_2_1::_MEDdatasetNumEcrire(med_2_1::med_idt, char*, med_2_1::med_type_champ, med_2_1::med_mode_switch, med_2_1::med_size, med_2_1::med_size, med_2_1::med_size, med_2_1::med_ssize*, med_2_1::med_int, med_2_1::med_size*, unsigned char*, med_2_1::med_mode_acces)':
      MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:85: warning: passing NULL used for non-pointer converting 6 of `herr_t H5Tconvert(hid_t, hid_t, size_t, void*, void*, hid_t)'
      MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:155: error: invalid conversion from `med_2_1::med_ssize*' to `const hsize_t*'
      MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:155: error:   initializing argument 3 of `herr_t H5Sselect_hyperslab(hid_t, H5S_seloper_t, const hsize_t*, const hsize_t*, const hsize_t*, const hsize_t*)'
      MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:160: error: invalid conversion from `med_2_1::med_ssize*' to `const hsize_t*'
      MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:160: error:   initializing argument 3 of `herr_t H5Sselect_hyperslab(hid_t, H5S_seloper_t, const hsize_t*, const hsize_t*, const hsize_t*, const hsize_t*)'
      MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:193: error: invalid conversion from `const hssize_t**' to `const hsize_t**'
      MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:193: error:   initializing argument 4 of `herr_t H5Sselect_elements(hid_t, H5S_seloper_t, size_t, const hsize_t**)'
      MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:196: error: invalid conversion from `const hssize_t**' to `const hsize_t**'
      MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:196: error:   initializing argument 4 of `herr_t H5Sselect_elements(hid_t, H5S_seloper_t, size_t, const hsize_t**)'
      MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:220: error: invalid conversion from `const hssize_t**' to `const hsize_t**'
      MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:220: error:   initializing argument 4 of `herr_t H5Sselect_elements(hid_t, H5S_seloper_t, size_t, const hsize_t**)'
      MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:223: error: invalid conversion from `const hssize_t**' to `const hsize_t**'
      MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:223: error:   initializing argument 4 of `herr_t H5Sselect_elements(hid_t, H5S_seloper_t, size_t, const hsize_t**)'
      MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:258: error: invalid conversion from `med_2_1::med_ssize*' to `const hsize_t*'
      MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:258: error:   initializing argument 3 of `herr_t H5Sselect_hyperslab(hid_t, H5S_seloper_t, const hsize_t*, const hsize_t*, const hsize_t*, const hsize_t*)'
      MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:295: error: invalid conversion from `const hssize_t**' to `const hsize_t**'
      MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:295: error:   initializing argument 4 of `herr_t H5Sselect_elements(hid_t, H5S_seloper_t, size_t, const hsize_t**)'
      MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:326: error: invalid conversion from `const hssize_t**' to `const hsize_t**'
      MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:326: error:   initializing argument 4 of `herr_t H5Sselect_elements(hid_t, H5S_seloper_t, size_t, const hsize_t**)'
      MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:329: error: invalid conversion from `const hssize_t**' to `const hsize_t**'
      MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:329: error:   initializing argument 4 of `herr_t H5Sselect_elements(hid_t, H5S_seloper_t, size_t, const hsize_t**)'
      MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:367: warning: passing NULL used for non-pointer converting 6 of `herr_t H5Tconvert(hid_t, hid_t, size_t, void*, void*, hid_t)'



      • Re: Failed to compile Kernel on FC3

        Posted by Christophe Bourcier at December 15. 2005
        Christophe Trophime wrote:


        Then I am stuck with the following errors:

        MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx: In function `med_2_1::med_err med_2_1::_MEDdatasetNumEcrire(med_2_1::med_idt, char*, med_2_1::med_type_champ, med_2_1::med_mode_switch, med_2_1::med_size, med_2_1::med_size, med_2_1::med_size, med_2_1::med_ssize*, med_2_1::med_int, med_2_1::med_size*, unsigned char*, med_2_1::med_mode_acces)':
        MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:85: warning: passing NULL used for non-pointer converting 6 of `herr_t H5Tconvert(hid_t, hid_t, size_t, void*, void*, hid_t)'
        MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:155: error: invalid conversion from `med_2_1::med_ssize*' to `const hsize_t*'
        MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:155: error:   initializing argument 3 of `herr_t H5Sselect_hyperslab(hid_t, H5S_seloper_t, const hsize_t*, const hsize_t*, const hsize_t*, const hsize_t*)'
        MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:160: error: invalid conversion from `med_2_1::med_ssize*' to `const hsize_t*'
        MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:160: error:   initializing argument 3 of `herr_t H5Sselect_hyperslab(hid_t, H5S_seloper_t, const hsize_t*, const hsize_t*, const hsize_t*, const hsize_t*)'
        MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:193: error: invalid conversion from `const hssize_t**' to `const hsize_t**'
        MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:193: error:   initializing argument 4 of `herr_t H5Sselect_elements(hid_t, H5S_seloper_t, size_t, const hsize_t**)'
        MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:196: error: invalid conversion from `const hssize_t**' to `const hsize_t**'
        MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:196: error:   initializing argument 4 of `herr_t H5Sselect_elements(hid_t, H5S_seloper_t, size_t, const hsize_t**)'
        MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:220: error: invalid conversion from `const hssize_t**' to `const hsize_t**'
        MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:220: error:   initializing argument 4 of `herr_t H5Sselect_elements(hid_t, H5S_seloper_t, size_t, const hsize_t**)'
        MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:223: error: invalid conversion from `const hssize_t**' to `const hsize_t**'
        MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:223: error:   initializing argument 4 of `herr_t H5Sselect_elements(hid_t, H5S_seloper_t, size_t, const hsize_t**)'
        MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:258: error: invalid conversion from `med_2_1::med_ssize*' to `const hsize_t*'
        MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:258: error:   initializing argument 3 of `herr_t H5Sselect_hyperslab(hid_t, H5S_seloper_t, const hsize_t*, const hsize_t*, const hsize_t*, const hsize_t*)'
        MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:295: error: invalid conversion from `const hssize_t**' to `const hsize_t**'
        MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:295: error:   initializing argument 4 of `herr_t H5Sselect_elements(hid_t, H5S_seloper_t, size_t, const hsize_t**)'
        MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:326: error: invalid conversion from `const hssize_t**' to `const hsize_t**'
        MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:326: error:   initializing argument 4 of `herr_t H5Sselect_elements(hid_t, H5S_seloper_t, size_t, const hsize_t**)'
        MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:329: error: invalid conversion from `const hssize_t**' to `const hsize_t**'
        MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:329: error:   initializing argument 4 of `herr_t H5Sselect_elements(hid_t, H5S_seloper_t, size_t, const hsize_t**)'
        MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx:367: warning: passing NULL used for non-pointer converting 6 of `herr_t H5Tconvert(hid_t, hid_t, size_t, void*, void*, hid_t)'




        Hi

        I have got the same error. I use gcc-3.3.5. It works fine with hdf5-1.6.2.

        You may try to use hdf5-1.6.2 and med-2.2.3 compiled with this hdf version.

        Christophe
        • Re: Failed to compile Kernel on FC3

          Posted by Erwan ADAM at December 15. 2005
          Hi all,

          I had the same problem with mandriva 2006.0 which comes with
          hdf5 1.6.4 ... Indeed the api of hdf5 has changed between version 1.6.3
          and 1.6.4 ... There is no problem at med compilation but occurs in KERNEL
          as you experienced. So, for the moment, use hdf5 1.6.3 ...

          I will try to send a patch for hdf versions compatibility as soon as possible.

          Cheers,

                          E.A.
          • Re: Failed to compile Kernel on FC3

            Posted by Christophe Trophime at December 15. 2005
            Following indications on your previous I tried to patch V2_1 files for hdf5 1.6.4
            by simply changing med_ssize to med_size and same for hssize_t to hsize_t in

            MEDWrapper/V2_1/MEDdatasetNumEcrire.cxx
            MEDWrapper/V2_1/MEDdatasetNumLire.cxx

            according to http://hdf.ncsa.uiuc.edu/HDF5/doc/ADGuide/Changes.html

            OK so now it compiles right for MEDWrapper but I had a new error in :

            make[3]: Entering directory `/usr/local/salome/KERNEL_BUILD/src/Registry'
            ../../libtool --mode=compile /usr/bin/g++ -g -D_DEBUG_  -Wno-deprecated -Wparentheses -Wreturn-type -fmessage-length=0 -Wunused -Wno-deprecated -Wparentheses -Wreturn-type -Wunused  -DOMNIORB_VERSION=4 -D__x86__ -D__linux__ -DCOMP_CORBA_DOUBLE -DCOMP_CORBA_LONG -DHAVE_SOCKET   -pthread -I../../include/salome -I/usr/local/salome/KERNEL_SRC_2.2.2/src/Registry -I. -I/usr/include -I/usr/include/omniORB4 -I/usr/include/COS  -c /usr/local/salome/KERNEL_SRC_2.2.2/src/Registry/RegistryConnexion.cxx
            /usr/bin/g++ -g -D_DEBUG_ -Wno-deprecated -Wparentheses -Wreturn-type -fmessage-length=0 -Wunused -Wno-deprecated -Wparentheses -Wreturn-type -Wunused -DOMNIORB_VERSION=4 -D__x86__ -D__linux__ -DCOMP_CORBA_DOUBLE -DCOMP_CORBA_LONG -DHAVE_SOCKET -pthread -I../../include/salome -I/usr/local/salome/KERNEL_SRC_2.2.2/src/Registry -I. -I/usr/include -I/usr/include/omniORB4 -I/usr/include/COS -c /usr/local/salome/KERNEL_SRC_2.2.2/src/Registry/RegistryConnexion.cxx  -fPIC -DPIC -o RegistryConnexion.lo
            In file included from /usr/local/salome/KERNEL_SRC_2.2.2/src/Registry/RegistryConnexion.cxx:33:
            ../../include/salome/Utils_SINGLETON.hxx: In static member function `static int SINGLETON_::Destruction()':
            ../../include/salome/Utils_SINGLETON.hxx:150: error: `Destructeurs' is not a member of `DESTRUCTEUR_GENERIQUE_'
            ../../include/salome/Utils_SINGLETON.hxx:150: error: `Destructeurs' is not a member of `DESTRUCTEUR_GENERIQUE_'
            ../../include/salome/Utils_SINGLETON.hxx:154: error: `Destructeurs' is not a member of `DESTRUCTEUR_GENERIQUE_'
            make[3]: *** [RegistryConnexion.lo] Error 1
            make[3]: Leaving directory `/usr/local/salome/KERNEL_BUILD/src/Registry'
            make[2]: *** [lib_Registry] Error 2
            make[2]: Leaving directory `/usr/local/salome/KERNEL_BUILD/src'
            make[1]: *** [lib_src] Error 2
            make[1]: Leaving directory `/usr/local/salome/KERNEL_BUILD'
            make: *** [all] Error 2


            • Re: Failed to compile Kernel on FC3

              Posted by Erwan ADAM at December 15. 2005
              Well,

              I didn't see at first that you were with salome 2.2.2 ... Indeed, this bug
              has been fixed in more recent versions. I wonder when open cascade
              team will put a recent version on site (we are inside the project to the
              2.2.6 one, nearly the 2.2.7 and me on CVS head :) ).

              For you to progress, I've put my own source of KERNEL at ftp.cea.fr
              (login : ftp, passwd you email) into incoming/y2k01/adam. Feel free
              to get them and try with that (if you have time of course). The patches
              for hdf5_1.6.4 are inside (but not in official sources), it's why I give
              mine.

              Cheers,

                                      E.A.
              • Re: Failed to compile Kernel on FC3

                Posted by Christophe Trophime at December 16. 2005
                Thanks,
                now it compiles. I just have a concern regarding the following warnings:

                LifeCycleCORBA/TestLifeCycleCORBA.cxx:118: warning: exception of type `CORBA::SystemException' will be caught
                LifeCycleCORBA/TestLifeCycleCORBA.cxx:114: warning:    by earlier handler for `CORBA::SystemException'
                /usr/bin/ld: warning: libstdc++.so.5, needed by /usr/local/OpenCASCADE5.2/ros/Linux/lib/libTKCAF.so, may conflict with libstdc++.so.6
                /usr/bin/ld: warning: libstdc++.so.5, needed by /usr/local/OpenCASCADE5.2/ros/Linux/lib/libTKCAF.so, may conflict with libstdc++.so.6
                /usr/bin/ld: warning: libstdc++.so.5, needed by /usr/local/OpenCASCADE5.2/ros/Linux/lib/libTKCAF.so, may conflict with libstdc++.so.6
                /usr/bin/ld: warning: libstdc++.so.5, needed by /usr/local/OpenCASCADE5.2/ros/Linux/lib/libTKCAF.so, may conflict with libstdc++.so.6
                Session/SALOME_Session_Server.cxx:184: warning: unused variable '_ret'
                Session/SALOME_Session_Server.cxx:88: warning: 'MYDEBUG' defined but not used
                /usr/bin/ld: warning: libstdc++.so.5, needed by /usr/local/OpenCASCADE5.2/ros/Linux/lib/libTKBO.so, may conflict with libstdc++.so.6
                /usr/bin/ld: warning: libstdc++.so.5, needed by /usr/local/OpenCASCADE5.2/ros/Linux/lib/libTKBO.so, may conflict with libstdc++.so.6

                My guess is that this is connected with the libtool, ltmain.sh and ltconfig in salome_adm/unix/config_files.
                Note that I have recompile OpenCascade 5.2 with the patch included in Salome distribution. So there may a conflict due to the use of different versions of libtool in my OpenCascade build and the Kernel build.


                • Re: Failed to compile Kernel on FC3

                  Posted by Christophe Trophime at December 16. 2005
                  I had to patch check_qwt.m4 (to get KERNEL 2.2.7 to compile) on line 60:
                  QWT_INCLUDES="$QWTHOME/include/qwt"

                  I still have trouble with Salome. Now it is in MED :

                  In file included from libMEDMEM_Swig_wrap.cxx:774:
                  ../../include/salome/MEDMEM_Med.hxx: In member function `bool MEDMEM::LT_DT_IT_::operator()(const MEDMEM::DT_IT_&, const MEDMEM::DT_IT_&;) const':
                  ../../include/salome/MEDMEM_Med.hxx:28: warning: unused variable 'test'
                  libMEDMEM_Swig_wrap.cxx: In function `PyObject* _wrap_GROUP_setFamilies(PyObject*, PyObject*)':
                  libMEDMEM_Swig_wrap.cxx:8191: error: no match for 'operator[]' in 'arg2[i]'
                  libMEDMEM_Swig_wrap.cxx: In function `PyObject* _wrap_GROUP_getFamilies(PyObject*, PyObject*)':
                  libMEDMEM_Swig_wrap.cxx:8273: error: no match for 'operator[]' in 'result[i]'
                  libMEDMEM_Swig_wrap.cxx: In function `PyObject* _wrap_MESH_mergeSupports(PyObject*, PyObject*)':
                  libMEDMEM_Swig_wrap.cxx:8955: error: passing `const std::vector >' as `this' argument of `void std::vector<_Tp, _Alloc>::resize(size_t) [with _Tp = MEDMEM::SUPPORT*, _Alloc = std::allocator]' discards qualifiers
                  libMEDMEM_Swig_wrap.cxx:8972: error: no match for 'operator[]' in 'arg2[i]'
                  libMEDMEM_Swig_wrap.cxx: In function `PyObject* _wrap_MESH_intersectSupports(PyObject*, PyObject*)':
                  libMEDMEM_Swig_wrap.cxx:9016: error: passing `const std::vector >' as `this' argument of `void std::vector<_Tp, _Alloc>::resize(size_t) [with _Tp = MEDMEM::SUPPORT*, _Alloc = std::allocator]' discards qualifiers
                  libMEDMEM_Swig_wrap.cxx:9033: error: no match for 'operator[]' in 'arg2[i]'
                  libMEDMEM_Swig_wrap.cxx: At global scope:
                  libMEDMEM_Swig_wrap.cxx:204: warning: 'swig_type_info* SWIG_Python_TypeDynamicCast(swig_type_info*, void**)' defined but not used
                  libMEDMEM_Swig_wrap.cxx:216: warning: 'const char* SWIG_Python_TypeName(const swig_type_info*)' defined but not used
                  libMEDMEM_Swig_wrap.cxx:222: warning: 'swig_type_info* SWIG_Python_TypeQuery(const char*)' defined but not used
                  libMEDMEM_Swig_wrap.cxx:461: warning: 'void SWIG_Python_addvarlink(PyObject*, char*, PyObject*(*)(), int (*)(PyObject*))' defined but not used
                  libMEDMEM_Swig_wrap.cxx:568: warning: 'void* SWIG_Python_MustGetPtr(PyObject*, swig_type_info*, int, int)' defined but not used
                  libMEDMEM_Swig_wrap.cxx:576: warning: 'int SWIG_Python_ConvertPacked(PyObject*, void*, int, swig_type_info*, int)' defined but not used
                  make[3]: *** [libMEDMEM_Swig_wrap.lo] Error 1
                  make[3]: Leaving directory `/usr/local/salome/MED_BUILD/src/MEDMEM_SWIG'
                  make[2]: *** [lib_MEDMEM_SWIG] Error 2
                  make[2]: Leaving directory `/usr/local/salome/MED_BUILD/src'
                  make[1]: *** [lib_src] Error 2
                  make[1]: Leaving directory `/usr/local/salome/MED_BUILD'
                  make: *** [all] Error 2

                  and in GEOM:

                  PARTITION/Partition_Spliter.cxx: In copy constructor `Partition_Inter3d::Partition_Inter3d(const Partition_Inter3d&;)':
                  PARTITION/Partition_Spliter.cxx:226: error: within this context
                  PARTITION/Partition_Spliter.cxx:226: error: within this context
                  PARTITION/Partition_Spliter.cxx:226: error: within this context
                  PARTITION/Partition_Spliter.cxx:226: error: within this context
                  PARTITION/Partition_Spliter.cxx:226: error: within this context

                  Maybe all these problems are related to the version 2.2.2?
                  How can I retreive 2.2.6 or even better 2.2.7?

                  Thanks again for your help
                  • Re: Failed to compile Kernel on FC3

                    Posted by Erwan ADAM at December 16. 2005
                    Hi Christophe,

                    For the problems in MED, it seems that you have the same
                    problem that we encounter when going from swig 1.3.17
                    to swig 1.3.21. It is fixed in more recent releases.

                    If you want too,  you can try with my sources that I've put on cea
                    ftp server at the same place than kernel. The sources coorespond
                    to cvs head (I don't know if 2.2.7 has been tagged for the moment)

                    Cheers,

                                         E.A.

                    • Re: Failed to compile Kernel on FC3

                      Posted by Christophe Trophime at January 03. 2006
                      Thanks for your lastest message.
                      Now I can compile almost every module except SMESH and its depencies.
                      I end up with a compilation error:

                      In file included from /usr/local/salome/SMESH_SRC_2.2.7/src/SMDS/SMDS_MeshElementIDFactory.hxx:33,
                                       from /usr/local/salome/SMESH_SRC_2.2.7/src/SMDS/SMDS_MeshElement.hxx:33,
                                       from /usr/local/salome/SMESH_SRC_2.2.7/src/SMDS/SMDS_MeshElement.cxx:26:
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_DataMap.hxx:323: error: ISO C++ forbids declaration of `Iterator' with no type
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_DataMap.hxx:323: error: invalid use of undefined type `class NCollection_BaseCollection'
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_BaseCollection.hxx:36: error: declaration of `class NCollection_BaseCollection'
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_DataMap.hxx:323: error: expected `;' before '&' token
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_DataMap.hxx:327: error: expected `;' before '}' token
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_DataMap.hxx: In member function `void NCollection_DataMap::ReSize(Standard_Integer)':
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_DataMap.hxx:167: error: `myAllocator' undeclared (first use this function)
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_DataMap.hxx:167: error: (Each undeclared identifier is reported only once for each function it appears in.)
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_DataMap.hxx: In member function `Standard_Boolean NCollection_DataMap::Bind(const TheKeyType&, const TheItemType&;)':
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_DataMap.hxx:214: error: `myAllocator' undeclared (first use this function)
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_DataMap.hxx: In member function `Standard_Boolean NCollection_DataMap::UnBind(const TheKeyType&;)':
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_DataMap.hxx:254: error: `myAllocator' undeclared (first use this function)
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_DataMap.hxx: In member function `void NCollection_DataMap::Clear()':
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_DataMap.hxx:309: error: `myAllocator' undeclared (first use this function)
                      In file included from /usr/local/salome/SMESH_SRC_2.2.7/src/SMDS/SMDS_MeshElement.hxx:33,
                                       from /usr/local/salome/SMESH_SRC_2.2.7/src/SMDS/SMDS_MeshElement.cxx:26:
                      /usr/local/salome/SMESH_SRC_2.2.7/src/SMDS/SMDS_MeshElementIDFactory.hxx: At global scope:
                      /usr/local/salome/SMESH_SRC_2.2.7/src/SMDS/SMDS_MeshElementIDFactory.hxx:40: error: cannot declare field `SMDS_MeshElementIDFactory::myIDElements' to be of type `SMDS_IdElementMap'
                      /usr/local/salome/SMESH_SRC_2.2.7/src/SMDS/SMDS_MeshElementIDFactory.hxx:40: error:   because the following virtual functions are abstract:
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_BaseCollection.hxx:81: error:  NCollection_BaseCollection::Iterator& NCollection_BaseCollection::CreateIterator() const [with TheItemType = SMDS_MeshElement*]
                      In file included from /usr/local/salome/SMESH_SRC_2.2.7/src/SMDS/SMDS_MeshNode.hxx:32,
                                       from /usr/local/salome/SMESH_SRC_2.2.7/src/SMDS/SMDS_MeshElement.cxx:27:
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx:282: error: ISO C++ forbids declaration of `Iterator' with no type
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx:282: error: cannot declare member `NCollection_BaseCollection::Iterator' within `NCollection_List'
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx:282: error: expected `;' before '&' token
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx:287: error: expected `;' before '}' token
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx: In member function `virtual void NCollection_List::Assign(const NCollection_BaseCollection&;)':
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx:62: error: `anIter' undeclared (first use this function)
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx:66: error: `myAllocator' undeclared (first use this function)
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx: In member function `NCollection_List& NCollection_List::operator=(const NCollection_List&;)':
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx:80: error: `myAllocator' undeclared (first use this function)
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx: In member function `void NCollection_List::Clear()':
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx:89: error: `myAllocator' undeclared (first use this function)
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx: In member function `TheItemType& NCollection_List::Append(const TheItemType&;)':
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx:114: error: `myAllocator' undeclared (first use this function)
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx: In member function `void NCollection_List::Append(const TheItemType&, NCollection_TListIterator&;)':
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx:123: error: `myAllocator' undeclared (first use this function)
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx: In member function `void NCollection_List::Append(NCollection_List&;)':
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx:132: error: `myAllocator' undeclared (first use this function)
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx: In member function `TheItemType& NCollection_List::Prepend(const TheItemType&;)':
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx:155: error: `myAllocator' undeclared (first use this function)
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx: In member function `void NCollection_List::Prepend(NCollection_List&;)':
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx:165: error: `myAllocator' undeclared (first use this function)
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx: In member function `void NCollection_List::RemoveFirst()':
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx:188: error: `myAllocator' undeclared (first use this function)
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx: In member function `void NCollection_List::Remove(NCollection_TListIterator&;)':
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx:193: error: `myAllocator' undeclared (first use this function)
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx: In member function `void NCollection_List::InsertBefore(const TheItemType&, NCollection_TListIterator&;)':
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx:200: error: `myAllocator' undeclared (first use this function)
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx: In member function `void NCollection_List::InsertBefore(NCollection_List&, NCollection_TListIterator&;)':
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx:211: error: `myAllocator' undeclared (first use this function)
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx: In member function `void NCollection_List::InsertAfter(const TheItemType&, NCollection_TListIterator&;)':
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx:235: error: `myAllocator' undeclared (first use this function)
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx: In member function `void NCollection_List::InsertAfter(NCollection_List&, NCollection_TListIterator&;)':
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_List.hxx:248: error: `myAllocator' undeclared (first use this function)
                      In file included from /usr/local/salome/SMESH_SRC_2.2.7/src/SMDS/SMDS_MeshElement.cxx:27:
                      /usr/local/salome/SMESH_SRC_2.2.7/src/SMDS/SMDS_MeshNode.hxx: At global scope:
                      /usr/local/salome/SMESH_SRC_2.2.7/src/SMDS/SMDS_MeshNode.hxx:35: error: cannot declare field `SMDS_MeshNode::myInverseElements' to be of type `NCollection_List'
                      /usr/local/salome/SMESH_SRC_2.2.7/src/SMDS/SMDS_MeshNode.hxx:35: error:   because the following virtual functions are abstract:
                      /usr/local/OpenCASCADE5.2/ros/inc/NCollection_BaseCollection.hxx:81: error:  NCollection_BaseCollection::Iterator& NCollection_BaseCollection::CreateIterator() const [with TheItemType = const SMDS_MeshElement*]
                      make[3]: *** [SMDS_MeshElement.lo] Error 1
                      make[3]: Leaving directory `/usr/local/salome/SMESH_BUILD/src/SMDS'
                      make[2]: *** [lib_SMDS] Error 2
                      make[2]: Leaving directory `/usr/local/salome/SMESH_BUILD/src'
                      make[1]: *** [lib_src] Error 2
                      make[1]: Leaving directory `/usr/local/salome/SMESH_BUILD'
                      make: *** [all] Error 2


                      It looks like it has something to do with OpenCascade. I used the OCC patches distributed with Salome 2.2.2 directly from the download section.
                      Do I need some additionnal patch?

                      By the way I think I can build a rpm version of Salome 2.2.7 are you interested in having rpm package for Salome?
                      • Re: Failed to compile Kernel on FC3

                        Posted by Erwan ADAM at January 03. 2006
                        Hi Christophe,

                        Well, indeed OCC has been patched since 2.2.2 ...
                        Could you try with the cascade version I've put
                        on cea ftp site ...

                        I'm sorry for all these inconveniences 'cause if
                        you had the 2.2.6 binaries, it will be ok since
                        I've experienced them on a fc3 already.

                        Cheers,

                                        E.A.
                      • Re: Failed to compile Kernel on FC3

                        Posted by OTTINGER at January 04. 2006

                        Hy Cristhophe,

                        It will be very useful to have an rpm file of Salome for linux beginner user as I am ...

                        regards ...

                        Ottinger

Powered by Ploneboard
Document Actions