Problem with compilation on Ubuntu

Help
RobMar
2007-08-01
2013-04-16
  • RobMar
    RobMar
    2007-08-01

    My PNL's sources is patched for gcc 4.1!
    This is the error:

    g++ -DPACKAGE_NAME=\"pnl\" -DPACKAGE_TARNAME=\"pnl\" -DPACKAGE_VERSION=\"0.2.23\" -DPACKAGE_STRING=\"pnl\ 0.2.23\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"pnl\" -DVERSION=\"0.2.23\" -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  -I. -I. -I../../../cxcore/cxcore/include -I../../../c_pgmtk/include -I../../../c_pgmtk/src/include/cart -I../../../c_pgmtk/src/include -I./../include -I../../../trs/include -x c++    -g -O2 -c -o AGetParametersTest.o AGetParametersTest.cpp
    AGetParametersTest.cpp:385:2: warning: no newline at end of file
    g++ -DPACKAGE_NAME=\"pnl\" -DPACKAGE_TARNAME=\"pnl\" -DPACKAGE_VERSION=\"0.2.23\" -DPACKAGE_STRING=\"pnl\ 0.2.23\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"pnl\" -DVERSION=\"0.2.23\" -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  -I. -I. -I../../../cxcore/cxcore/include -I../../../c_pgmtk/include -I../../../c_pgmtk/src/include/cart -I../../../c_pgmtk/src/include -I./../include -I../../../trs/include -x c++    -g -O2 -c -o AGibbsInfEngine.o AGibbsInfEngine.cpp
    In file included from AGibbsInfEngine.cpp:8:
    ./../include/tCreateKjaerulffDBN.hpp:20:30: warning: no newline at end of file
    In file included from AGibbsInfEngine.cpp:9:
    ./../include/tCreateIncineratorBNet.hpp:20:33: warning: no newline at end of file
    AGibbsInfEngine.cpp:1425: internal compiler error: in value_format, at dwarf2out.c:6828
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:http://gcc.gnu.org/bugs.html> for instructions.
    For Debian GNU/Linux specific bug reporting instructions,
    see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.
    The bug is not reproducible, so it is likely a hardware or OS problem.
    make[4]: *** [AGibbsInfEngine.o] Error 1
    make[4]: Leaving directory `/home/formica/PNL/PNL/c_pgmtk/tests/src'
    make[3]: *** [check-am] Error 2
    make[3]: Leaving directory `/home/formica/PNL/PNL/c_pgmtk/tests/src'
    make[2]: *** [check-recursive] Error 1
    make[2]: Leaving directory `/home/formica/PNL/PNL/c_pgmtk/tests'
    make[1]: *** [check-recursive] Error 1
    make[1]: Leaving directory `/home/formica/PNL/PNL/c_pgmtk'
    make: *** [check-recursive] Error 1

    ANY IDEA?

     
    • RobMar
      RobMar
      2007-08-01

      And this is the final part of output of 'make check':

      <B>:[]
      <R>:[FAIL]
      <m>:[]
      <s>:[../../../checkfails.sum]
      �����������������������������������������������������������������������������Ŀ
      �<f>unction  : test1_LIMIDInfEngine                                           �
      �<t>est      : Provide First Test of LIMID                                    �
      �<c>lass     : Algorithm                                                      �
      �<T>est body : test1_LIMIDInfEngine                         line: 196         �
      �<S>ource    : ALIMIDInfEngine.cpp                                            �
      ������������������������������������������������������������������������������
      timing of CIDNet graph intialization 0
      timing of LIMID graph intialization 0
      timing of DoInferense function 0

      =====================
      Politics are:
      I have dense matrix with data. My matrix is:
      0 1 0 1
      I have dense matrix with data. My matrix is:
      1 0 0 1
      I have dense matrix with data. My matrix is:
      1 0 0 1

      Number of iterations is 6
      Expectation is 726.812
      timing of graph destruction 0

      -Next test.

      �����������������������������������������������������������������������������Ŀ
      �<f>unction  : testStructuralLearningEngineWithJTreeInference                 �
      �<t>est      : Provide Structural Learning                                    �
      �<c>lass     : Algorithm                                                      �
      �<T>est body : testStructLearnEngWithJTreeInf               line: 371         �
      �<S>ource    : AStructuralLearningWithJTreeInference.cpp                      �
      ������������������������������������������������������������������������������
      Net creation OK
      ./run_pnlcheck: line 1: 11861 Segmentation fault      (core dumped) ./tests_pnl_c -R FAIL -s ../../../checkfails.sum -m -B
      FAIL: run_pnlcheck
      ===================
      1 of 1 tests failed
      ===================
      make[4]: *** [check-TESTS] Error 1
      make[4]: Leaving directory `/home/formica/PNL/PNL/c_pgmtk/tests/src'
      make[3]: *** [check-am] Error 2
      make[3]: Leaving directory `/home/formica/PNL/PNL/c_pgmtk/tests/src'
      make[2]: *** [check-recursive] Error 1
      make[2]: Leaving directory `/home/formica/PNL/PNL/c_pgmtk/tests'
      make[1]: *** [check-recursive] Error 1
      make[1]: Leaving directory `/home/formica/PNL/PNL/c_pgmtk'
      make: *** [check-recursive] Error 1

       
    • Zeppe
      Zeppe
      2007-08-01

      it seems to be a gcc problem more than a problem of the program. Which gcc are you using?
      try to update to gcc version 4.1.2

       
    • RobMar
      RobMar
      2007-08-02

      My gcc is exactly 4.1.2. :(