Menu

#1 Error building on Fedora 17

open
nobody
None
5
2012-08-30
2012-08-30
_blabla_
No

make all-recursive
make[1]: Entering directory `/home/alen/dev/mgizapp'
Making all in src
make[2]: Entering directory `/home/alen/dev/mgizapp/src'
Making all in mkcls
make[3]: Entering directory `/home/alen/dev/mgizapp/src/mkcls'
g++ -DHAVE_CONFIG_H -I. -I../.. -DNDEBUG -g -O2 -MT mkcls-KategProblemTest.o -MD -MP -MF .deps/mkcls-KategProblemTest.Tpo -c -o mkcls-KategProblemTest.o `test -f 'KategProblemTest.cpp' || echo './'`KategProblemTest.cpp
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.7.0/../../../../include/c++/4.7.0/ext/hash_map:61:0,
from mystl.h:31,
from StatVar.h:32,
from Problem.h:34,
from KategProblem.h:34,
from KategProblemTest.h:30,
from KategProblemTest.cpp:27:
/usr/lib/gcc/x86_64-redhat-linux/4.7.0/../../../../include/c++/4.7.0/backward/backward_warning.h:33:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
In file included from StatVar.h:33:0,
from Problem.h:34,
from KategProblem.h:34,
from KategProblemTest.h:30,
from KategProblemTest.cpp:27:
myleda.h: In instantiation of ‘B& leda_h_array<A, B>::operator[](const A&) [with A = std::basic_string<char>; B = int]’:
KategProblemTest.cpp:96:18: required from here
myleda.h:221:5: error: ‘insert’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
myleda.h:221:5: note: declarations in dependent base ‘__gnu_cxx::hash_map<std::basic_string<char>, int, my_hash<std::basic_string<char>, std::less<std::basic_string<char> > >, std::equal_to<std::basic_string<char> >, std::allocator<int> >’ are not found by unqualified lookup
myleda.h:221:5: note: use ‘this->insert’ instead
myleda.h: In instantiation of ‘B& leda_h_array<A, B>::operator[](const A&) [with A = std::pair<std::basic_string<char>, std::basic_string<char> >; B = int]’:
KategProblemTest.cpp:265:38: required from here
myleda.h:221:5: error: ‘insert’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
myleda.h:221:5: note: declarations in dependent base ‘__gnu_cxx::hash_map<std::pair<std::basic_string<char>, std::basic_string<char> >, int, my_hash<std::pair<std::basic_string<char>, std::basic_string<char> >, std::less<std::pair<std::basic_string<char>, std::basic_string<char> > > >, std::equal_to<std::pair<std::basic_string<char>, std::basic_string<char> > >, std::allocator<int> >’ are not found by unqualified lookup
myleda.h:221:5: note: use ‘this->insert’ instead
make[3]: *** [mkcls-KategProblemTest.o] Error 1
make[3]: Leaving directory `/home/alen/dev/mgizapp/src/mkcls'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/alen/dev/mgizapp/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/alen/dev/mgizapp'
make: *** [all] Error 2

Discussion

  • _blabla_

    _blabla_ - 2012-08-30

    trying with cmake helps in regards to pointing to the cause of errors:

    * MGiza - multi-threaded GIZA++
    ** description at External Tools page ("link":http://www.statmt.org/moses/?n=Moses.ExternalTools#ntoc2)
    ** homepage ("link":http://www.kyloo.net/software/doku.php/mgiza:overview)
    ** project on Sourceforge ("link":http://sourceforge.net/projects/mgizapp/)

     
  • _blabla_

    _blabla_ - 2012-08-30

    [alen@ub1868-4544 mgizapp]$ cmake .
    -- The C compiler identification is GNU 4.7.0
    -- The CXX compiler identification is GNU 4.7.0
    -- Check for working C compiler: /bin/gcc
    -- Check for working C compiler: /bin/gcc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler: /bin/c++
    -- Check for working CXX compiler: /bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- You have not set the install dir, default to './inst', if
    you want to set it, use cmake -DCMAKE_INSTALL_PREFIX to do so
    -- Performing Test TR1_SHARED_PTR_USE_TR1_MEMORY
    -- Performing Test TR1_SHARED_PTR_USE_TR1_MEMORY - Success
    -- Performing Test TR1_SHARED_PTR_USE_MEMORY
    -- Performing Test TR1_SHARED_PTR_USE_MEMORY - Failed
    -- Performing Test TR1_UNORDERED_MAP_USE_TR1_UNORDERED_MAP
    -- Performing Test TR1_UNORDERED_MAP_USE_TR1_UNORDERED_MAP - Success
    -- Performing Test TR1_UNORDERED_MAP_USE_UNORDERED_MAP
    -- Performing Test TR1_UNORDERED_MAP_USE_UNORDERED_MAP - Failed
    -- Could NOT find Boost
    CMake Error at CMakeLists.txt:59 (MESSAGE):
    Boost not found, please set the BOOST_ROOT and BOOST_LIBRARYDIR environment
    variables

     
  • _blabla_

    _blabla_ - 2012-08-30

    Added

    FIND_PACKAGE(Boost)
    IF (Boost_FOUND)
    message("*** boost found")
    INCLUDE_DIRECTORIES (${Boost_INCLUDE_DIR})
    ADD_DEFINITIONS("-DHAS_BOOST")
    ELSE()
    message("*** boost not found")
    ENDIF()

    and commented out the existing FIND_BOOST command. Now cmake completes.
    Running make after that builds some binaries but still ends up in error.

     

Log in to post a comment.

MongoDB Logo MongoDB