Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MTEval Build error #6

Open
VikrantChauhan001 opened this issue Apr 9, 2020 · 0 comments
Open

MTEval Build error #6

VikrantChauhan001 opened this issue Apr 9, 2020 · 0 comments

Comments

@VikrantChauhan001
Copy link

Cloning into 'mteval'...
remote: Enumerating objects: 504, done.
remote: Total 504 (delta 0), reused 0 (delta 0), pack-reused 504
Receiving objects: 100% (504/504), 175.58 KiB | 454.00 KiB/s, done.
Resolving deltas: 100% (290/290), done.
-- The CXX compiler identification is GNU 9.2.1
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Boost version: 1.67.0
-- Found the following Boost libraries:
-- program_options
-- unit_test_framework
-- Boost include directory: /usr/include
-- Configuring done
-- Generating done
-- Build files have been written to: /home/vikrant/psgen_docker/try2/pseudogen/tools/mteval/build
Scanning dependencies of target mteval
[ 5%] Building CXX object mteval/CMakeFiles/mteval.dir/Dictionary.cc.o
[ 11%] Building CXX object mteval/CMakeFiles/mteval.dir/BLEUEvaluator.cc.o
[ 17%] Building CXX object mteval/CMakeFiles/mteval.dir/NISTEvaluator.cc.o
[ 23%] Building CXX object mteval/CMakeFiles/mteval.dir/EvaluatorFactory.cc.o
/home/vikrant/psgen_docker/try2/pseudogen/tools/mteval/mteval/BLEUEvaluator.cc: In member function ‘virtual MTEval::Statistics MTEval::BLEUEvaluator::map(const MTEval::Sample&) const’:
/home/vikrant/psgen_docker/try2/pseudogen/tools/mteval/mteval/BLEUEvaluator.cc:58:19: error: moving a local object in a return statement prevents copy elision [-Werror=pessimizing-move]
58 | return std::move(stats);
| ~~~~~~~~~^~~~~~~
/home/vikrant/psgen_docker/try2/pseudogen/tools/mteval/mteval/BLEUEvaluator.cc:58:19: note: remove ‘std::move’ call
/home/vikrant/psgen_docker/try2/pseudogen/tools/mteval/mteval/NISTEvaluator.cc: In member function ‘virtual MTEval::Statistics MTEval::NISTEvaluator::map(const MTEval::Sample&) const’:
/home/vikrant/psgen_docker/try2/pseudogen/tools/mteval/mteval/NISTEvaluator.cc:73:19: error: moving a local object in a return statement prevents copy elision [-Werror=pessimizing-move]
73 | return std::move(stats);
| ~~~~~~~~~^~~~~~~
/home/vikrant/psgen_docker/try2/pseudogen/tools/mteval/mteval/NISTEvaluator.cc:73:19: note: remove ‘std::move’ call
cc1plus: all warnings being treated as errors
make[2]: *** [mteval/CMakeFiles/mteval.dir/build.make:63: mteval/CMakeFiles/mteval.dir/BLEUEvaluator.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1plus: all warnings being treated as errors
make[2]: *** [mteval/CMakeFiles/mteval.dir/build.make:102: mteval/CMakeFiles/mteval.dir/NISTEvaluator.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:224: mteval/CMakeFiles/mteval.dir/all] Error 2
make: *** [Makefile:95: all] Error 2

@VikrantChauhan001 VikrantChauhan001 changed the title MtEval Build error MTEval Build error Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant