redex
redex copied to clipboard
Error when install on Ubuntu - RedundantMoveEliminationPass.o
I am using Linux mint 17 base on Ubuntu 14.04.5 LTS & gcc (Ubuntu 4.9.4-2ubuntu1~14.04.1) 4.9.4
but when I run make it was error:
opt/redundant_move_elimination/RedundantMoveEliminationPass.cpp:68:68: error: no matching function for call to ‘{anonymous}::RedundantStats::RedundantStats(<brace-enclosed initializer list>)’
replaced_sources + other.replaced_sources};
^
opt/redundant_move_elimination/RedundantMoveEliminationPass.cpp:68:68: note: candidates are:
opt/redundant_move_elimination/RedundantMoveEliminationPass.cpp:62:8: note: constexpr {anonymous}::RedundantStats::RedundantStats()
struct RedundantStats {
^
opt/redundant_move_elimination/RedundantMoveEliminationPass.cpp:62:8: note: candidate expects 0 arguments, 2 provided
opt/redundant_move_elimination/RedundantMoveEliminationPass.cpp:62:8: note: constexpr {anonymous}::RedundantStats::RedundantStats(const {anonymous}::RedundantStats&)
opt/redundant_move_elimination/RedundantMoveEliminationPass.cpp:62:8: note: candidate expects 1 argument, 2 provided
opt/redundant_move_elimination/RedundantMoveEliminationPass.cpp:62:8: note: constexpr {anonymous}::RedundantStats::RedundantStats({anonymous}::RedundantStats&&)
opt/redundant_move_elimination/RedundantMoveEliminationPass.cpp:62:8: note: candidate expects 1 argument, 2 provided
opt/redundant_move_elimination/RedundantMoveEliminationPass.cpp:69:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[1]: *** [opt/redundant_move_elimination/RedundantMoveEliminationPass.o] Error 1
It looks like that file uses a gnu++14 feature that's not supported in g++-4.9. I'll remove the use of that feature, but in the mean time, you could try again with g++ >= 5
See https://gcc.gnu.org/projects/cxx-status.html
Thanks for the report!
huh looks like we are pretty aggressive on compilers.
Yeah... I'm trying to figure out which version consistently works...